Inbox Tags
Authorizations
x-chatcaptain-keystringRequired
Path parameters
chatbotIdstringRequired
The ID of the chatbot.
Responses
200
List of all tags.
application/json
errorstringOptional
Optional error message.
403
Insufficient permissions.
get/v1/inbox/{chatbotId}/tags
GET /v1/inbox/{chatbotId}/tags HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Accept: */*
{
"tags": [
{
"id": "kMA97ZQweaES0FGU25cl",
"created": "2025-10-06T18:00:00Z",
"updated": "2025-10-06T18:05:00Z",
"name": "Important",
"color": "#FF0000"
}
],
"error": "text"
}Authorizations
x-chatcaptain-keystringRequired
Path parameters
chatbotIdstringRequired
The ID of the chatbot.
Body
namestringRequiredExample:
The name of the new tag.
VIP CustomercolorstringRequiredExample:
The color of the tag.
blueResponses
201
Tag created successfully.
application/json
errorstringOptional
Optional error message.
400
Invalid input data.
403
Insufficient permissions.
post/v1/inbox/{chatbotId}/tags
POST /v1/inbox/{chatbotId}/tags HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 38
{
"name": "VIP Customer",
"color": "blue"
}{
"tag": {
"id": "kMA97ZQweaES0FGU25cl",
"created": "2025-10-06T18:00:00Z",
"updated": "2025-10-06T18:05:00Z",
"name": "Important",
"color": "#FF0000"
},
"error": "text"
}Authorizations
x-chatcaptain-keystringRequired
Path parameters
chatbotIdstringRequired
The ID of the chatbot.
tagIdstringRequired
The ID of the tag to retrieve.
Responses
200
Details of the tag.
application/json
errorstringOptional
Optional error message.
403
Insufficient permissions.
404
Tag not found.
get/v1/inbox/{chatbotId}/tags/{tagId}
GET /v1/inbox/{chatbotId}/tags/{tagId} HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Accept: */*
{
"tag": {
"id": "kMA97ZQweaES0FGU25cl",
"created": "2025-10-06T18:00:00Z",
"updated": "2025-10-06T18:05:00Z",
"name": "Important",
"color": "#FF0000"
},
"error": "text"
}Authorizations
x-chatcaptain-keystringRequired
Path parameters
chatbotIdstringRequired
The ID of the chatbot.
tagIdstringRequired
The ID of the tag to delete.
Responses
200
Tag deleted successfully.
No content
403
Insufficient permissions.
delete/v1/inbox/{chatbotId}/tags/{tagId}
DELETE /v1/inbox/{chatbotId}/tags/{tagId} HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Accept: */*
No content
Authorizations
x-chatcaptain-keystringRequired
Path parameters
chatbotIdstringRequired
The ID of the chatbot.
tagIdstringRequired
The ID of the tag to update.
Body
namestringRequiredExample:
The new name of the tag.
High PrioritycolorstringRequiredExample:
The new color of the tag.
dark_greenResponses
200
Tag updated successfully.
application/json
errorstringOptional
Optional error message.
403
Insufficient permissions.
patch/v1/inbox/{chatbotId}/tags/{tagId}
PATCH /v1/inbox/{chatbotId}/tags/{tagId} HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 45
{
"name": "High Priority",
"color": "dark_green"
}{
"tag": {
"id": "kMA97ZQweaES0FGU25cl",
"created": "2025-10-06T18:00:00Z",
"updated": "2025-10-06T18:05:00Z",
"name": "Important",
"color": "#FF0000"
},
"error": "text"
}Last updated