Skip to main content
DELETE
https://postsyncer.com/api/v1
accounts
/
{id}
curl -X DELETE "https://postsyncer.com/api/v1/accounts/123" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "message": "Account deleted successfully"
}

Delete Account

Deletes a social media account from your workspace. This action cannot be undone and will remove the account from all future posts.

Request

id
integer
required
The ID of the account to delete
curl -X DELETE "https://postsyncer.com/api/v1/accounts/123" \
  -H "Authorization: Bearer YOUR_API_TOKEN"

Response

message
string
Account deleted successfully
{
  "message": "Account deleted successfully"
}

Code Examples

curl -X DELETE "https://postsyncer.com/api/v1/accounts/123" \
  -H "Authorization: Bearer YOUR_API_TOKEN"

Error Codes

401
Unauthorized
Missing or invalid API token
403
Forbidden
Token does not have ‘accounts’ permission
404
Not Found
Account not found or user does not have access to the account’s workspace
422
Unprocessable Entity
Invalid account ID provided