Skip to main content

Remove a tag from a conversation

Take a tag off a conversation. The tag stays in your account and on every other conversation that has it.

Endpoint​

DELETE https://api.p.2chat.io/open/tags/<tag-uuid>/sessions/<session-key>
  • <tag-uuid> is the UUID of the tag, e.g. TAGd37f22fa-fe01-4a90-b57d-7e83ccc6a05a.
  • <session-key> is the session_key of the conversation, e.g. WA-WAN8fd3442f-e111-4fed-9323-1824fd7546c9-14085550176. See where to get it.

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/sessions/WA-WAN8fd3442f-e111-4fed-9323-1824fd7546c9-14085550176' \
--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, or the conversation doesn't have the tag.

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