Skip to main content
POST
Toggle Label on Contact

JSON Example


📝 Field Requirements


🔄 Behavior

This endpoint toggles a label on a contact:
  • If the label is not currently assigned to the contact, it will be added
  • If the label is already assigned to the contact, it will be removed

✅ Success Response

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspace
string<uuid>
required

ID of the workspace.

contact
string<uuid>
required

ID of the contact.

Body

application/json
label_id
integer
required

ID of the label to toggle.

Response

Label toggled successfully

status
integer
Example:

200

message
string
Example:

"Contact label toggled successfully"

data
null