Profiles
Delete
Soft-delete an empty profile.
Endpoint
DELETE https://api.postpeer.dev/v1/profiles/{id}Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | Profile ID |
Empty profiles only
The API returns 409 Conflict while active integrations belong to the profile. Move them to another profile, move them to Default, or disconnect them before deleting the profile.
Example
curl -X DELETE "https://api.postpeer.dev/v1/profiles/65ab123" \
-H "x-access-key: YOUR_API_KEY"import PostPeer from '@postpeer/node';
const client = new PostPeer();
await client.profiles.delete({ path: { id: '65ab123' } });from postpeer import PostPeer
with PostPeer() as client:
client.profiles.delete(id="65ab123")Response
{
"success": true,
"message": "Profile deleted."
}Status Codes
| Code | Meaning |
|---|---|
200 | Profile deleted |
400 | Invalid profile id |
404 | Profile not found |
409 | Profile has active integrations |