Skip to main content

Delete a tag

Delete a tag from your account. It is also removed from every conversation that has it. This can't be undone.

To take a tag off a single conversation and keep it in the account, use Remove Tag from Conversation instead.

Endpoint​

DELETE https://api.p.2chat.io/open/tags/<tag-uuid>

<tag-uuid> is the UUID of the tag, e.g. TAGd37f22fa-fe01-4a90-b57d-7e83ccc6a05a.

Authentication​

Include your API key in the X-User-API-Key header. Learn more about authentication.

Invocation​

curl --location --request DELETE 'https://api.p.2chat.io/open/tags/TAGd37f22fa-fe01-4a90-b57d-7e83ccc6a05a' \
--header 'X-User-API-Key: your_api_key_here'

Response​

Success (HTTP 200 OK)​

{
"success": true
}

Error (HTTP 404 Not Found)​

There is no tag with that UUID in your account.

{
"success": false,
"error": true,
"error_message": "Resource Not Found"
}