Delete Label
Deletes a label from your workspace. This action cannot be undone.
Request
The ID of the label to delete
curl -X DELETE "https://postsyncer.com/api/v1/labels/123" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Response
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
Missing or invalid API token
Token does not have ‘labels’ permission
Label not found or user does not have access to the label’s workspace
Invalid label ID provided