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

Delete Label

Deletes a label from your workspace. This action cannot be undone.

Request

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

Response

message
string
Success message confirming the label was deleted
{
  "message": "Label deleted successfully"
}

Code Examples

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

Error Codes

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