Inbox Widgets
Authorizations
x-chatcaptain-keystringRequired
Path parameters
chatbotIdstringRequired
The Id of the chatbot.
Responses
200Success
application/json
403
Insufficient permissions.
get/v1/inbox/{chatbotId}/widgets
GET /v1/inbox/{chatbotId}/widgets HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Accept: */*
{
"inboxWidgets": [
{
"id": "U0LXi1GyLR2Nj11Nt43J",
"title": "Customer Info",
"fields": [
{
"label": "Customer Name",
"variable": "dcq55wcucbiwa212v",
"type": 0,
"readonly": false,
"options": [
"Option A",
"Option B"
],
"position": 0
}
],
"created": "2025-10-07T14:00:00Z",
"updated": "2025-10-07T14:05:00Z"
}
]
}Authorizations
x-chatcaptain-keystringRequired
Path parameters
chatbotIdstringRequired
The Id of the chatbot.
Body
titlestringRequiredExample:
The title of the widget.
Customer InfoResponses
201Success
application/json
403
Insufficient permissions.
post/v1/inbox/{chatbotId}/widgets
POST /v1/inbox/{chatbotId}/widgets HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 166
{
"title": "Customer Info",
"fields": [
{
"label": "Customer Name",
"variable": "dcq55wcucbiwa212v",
"type": 0,
"readonly": false,
"options": [
"Option A",
"Option B"
],
"position": 0
}
]
}{
"inboxWidget": {
"id": "U0LXi1GyLR2Nj11Nt43J",
"title": "Customer Info",
"fields": [
{
"label": "Customer Name",
"variable": "dcq55wcucbiwa212v",
"type": 0,
"readonly": false,
"options": [
"Option A",
"Option B"
],
"position": 0
}
],
"created": "2025-10-07T14:00:00Z",
"updated": "2025-10-07T14:05:00Z"
}
}Authorizations
x-chatcaptain-keystringRequired
Path parameters
chatbotIdstringRequired
The Id of the chatbot.
widgetIdstringRequired
The Id of the widget.
Responses
200Success
application/json
403
Insufficient permissions.
get/v1/inbox/{chatbotId}/widgets/{widgetId}
GET /v1/inbox/{chatbotId}/widgets/{widgetId} HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Accept: */*
{
"inboxWidget": {
"id": "U0LXi1GyLR2Nj11Nt43J",
"title": "Customer Info",
"fields": [
{
"label": "Customer Name",
"variable": "dcq55wcucbiwa212v",
"type": 0,
"readonly": false,
"options": [
"Option A",
"Option B"
],
"position": 0
}
],
"created": "2025-10-07T14:00:00Z",
"updated": "2025-10-07T14:05:00Z"
}
}Authorizations
x-chatcaptain-keystringRequired
Path parameters
chatbotIdstringRequired
The Id of the chatbot.
widgetIdstringRequired
The Id of the widget.
Responses
200Success
application/json
deletedbooleanOptionalExample:
Whether the widget was successfully deleted.
true403
Insufficient permissions.
delete/v1/inbox/{chatbotId}/widgets/{widgetId}
DELETE /v1/inbox/{chatbotId}/widgets/{widgetId} HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Accept: */*
{
"deleted": true
}Authorizations
x-chatcaptain-keystringRequired
Path parameters
chatbotIdstringRequired
The Id of the chatbot.
widgetIdstringRequired
The Id of the widget.
Body
titlestringOptionalExample:
The updated title of the widget.
Updated Customer InfoResponses
200Success
application/json
403
Insufficient permissions.
patch/v1/inbox/{chatbotId}/widgets/{widgetId}
PATCH /v1/inbox/{chatbotId}/widgets/{widgetId} HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 174
{
"title": "Updated Customer Info",
"fields": [
{
"label": "Customer Name",
"variable": "dcq55wcucbiwa212v",
"type": 0,
"readonly": false,
"options": [
"Option A",
"Option B"
],
"position": 0
}
]
}{
"inboxWidget": {
"id": "U0LXi1GyLR2Nj11Nt43J",
"title": "Customer Info",
"fields": [
{
"label": "Customer Name",
"variable": "dcq55wcucbiwa212v",
"type": 0,
"readonly": false,
"options": [
"Option A",
"Option B"
],
"position": 0
}
],
"created": "2025-10-07T14:00:00Z",
"updated": "2025-10-07T14:05:00Z"
}
}Authorizations
x-chatcaptain-keystringRequired
Path parameters
chatbotIdstringRequired
The Id of the chatbot.
widgetIdstringRequired
The Id of the widget.
Query parameters
conversationIdstringRequired
The Id of the conversation.
contactIdstringRequired
The Id of the contact.
Responses
200Success
application/json
fieldValuesobject[]Required
The widget values.
403
Insufficient permissions.
get/v1/inbox/{chatbotId}/widgets/{widgetId}/values
GET /v1/inbox/{chatbotId}/widgets/{widgetId}/values?conversationId=text&contactId=text HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Accept: */*
{
"fieldValues": [
{}
]
}Last updated