ChatofyDevelopers
REST APIMCP Server (AI)New
API KeysWebhooks
Chatofy API
/
Getting Started
API Resources
API v1.0 Live
Developer APICRM Pipelines & DealsAdd or Remove Contact Tag

Add or Remove Contact Tag

Attaches or detaches a tag from a contact identified by phone number or contact ID.

POST/api/v1/contact/tags

Request Body Schema

application/json
phonestringoptional

Contact phone number (E.164)

Example:+919876543210
contact_iduuidoptional

Contact UUID

actionstringrequired

"add" or "remove"

Example:add
tag_namestringoptional

Name of the tag (auto-creates if missing on add)

Example:Qualified Lead
tag_iduuidoptional

UUID of an existing tag

Response Payload

200 OKapplication/json
statusstring

"1" = Success, "0" = Failure.

messageobject

The response data payload.

Code Snippets & Examples

1curl -X POST "https://app.chatofy.in/api/v1/contact/tags" \
2 -H "Authorization: Bearer YOUR_API_KEY" \
3 -H "Content-Type: application/json" \
4 -d '{"phone":"+919876543210","action":"add","tag_name":"Qualified Lead"}'

Was this endpoint guide helpful?

Previous Endpoint
List Contact Tags
Next Endpoint
Delete Contact
© 2026 Chatofy Cloud Platform. All rights reserved.
1curl -X POST "https://app.chatofy.in/api/v1/contact/tags" \
2 -H "Authorization: Bearer YOUR_API_KEY" \
3 -H "Content-Type: application/json" \
4 -d '{"phone":"+919876543210","action":"add","tag_name":"Qualified Lead"}'
200 OKapplication/json
1{
2 "success": true,
3 "data": {
4 "contact_id": "c1111111-2222-3333-4444-555555555555",
5 "phone": "+919876543210",
6 "tag_id": "t2222222-3333-4444-5555-666666666666",
7 "tag_name": "Qualified Lead",
8 "action": "added"
9 },
10 "message": "Tag added to contact successfully"
11}