Inbox Answers
Authorizations
x-chatcaptain-keystringRequired
Path parameters
chatbotIdstringRequired
The ID of the chatbot.
Responses
200
List of all response snippets.
application/json
errorstringOptional
Optional error message.
403
Insufficient permissions.
get/v1/inbox/{chatbotId}/answers
GET /v1/inbox/{chatbotId}/answers HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Accept: */*
{
"answers": [
{
"id": "mUfMNyuVSPSVgNVPdhLm",
"created": "2025-10-06T12:00:00Z",
"updated": "2025-10-06T12:05:00Z",
"name": "Salutation",
"message": "Best regards, your support team"
}
],
"error": "text"
}Authorizations
x-chatcaptain-keystringRequired
Path parameters
chatbotIdstringRequired
The ID of the chatbot.
Body
namestringRequiredExample:
The name/title of the text snippet.
Opening hoursmessagestringRequiredExample:
The content of the text snippet.
We are open Monday to Friday from 9 AM to 5 PM.Responses
201
Response snippet created successfully.
application/json
errorstringOptional
Optional error message.
400
Invalid input data.
403
Insufficient permissions.
post/v1/inbox/{chatbotId}/answers
POST /v1/inbox/{chatbotId}/answers HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 84
{
"name": "Opening hours",
"message": "We are open Monday to Friday from 9 AM to 5 PM."
}{
"answer": {
"id": "mUfMNyuVSPSVgNVPdhLm",
"created": "2025-10-06T12:00:00Z",
"updated": "2025-10-06T12:05:00Z",
"name": "Salutation",
"message": "Best regards, your support team"
},
"error": "text"
}Authorizations
x-chatcaptain-keystringRequired
Path parameters
chatbotIdstringRequired
The ID of the chatbot.
answerIdstringRequired
The ID of the response snippet to update.
Body
namestringRequiredExample:
The new name of the text snippet.
New opening hoursmessagestringRequiredExample:
The new content of the text snippet.
Our new opening hours are from 8 AM to 6 PM.Responses
200
Response snippet updated successfully.
application/json
errorstringOptional
Optional error message.
400
Invalid input data.
403
Insufficient permissions.
put/v1/inbox/{chatbotId}/answers/{answerId}
PUT /v1/inbox/{chatbotId}/answers/{answerId} HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 85
{
"name": "New opening hours",
"message": "Our new opening hours are from 8 AM to 6 PM."
}{
"answer": {
"id": "mUfMNyuVSPSVgNVPdhLm",
"created": "2025-10-06T12:00:00Z",
"updated": "2025-10-06T12:05:00Z",
"name": "Salutation",
"message": "Best regards, your support team"
},
"error": "text"
}Authorizations
x-chatcaptain-keystringRequired
Path parameters
chatbotIdstringRequired
The ID of the chatbot.
answerIdstringRequired
The ID of the response snippet to delete.
Responses
200
Response snippet deleted successfully.
application/json
errorstringOptional
Optional error message.
403
Insufficient permissions.
delete/v1/inbox/{chatbotId}/answers/{answerId}
DELETE /v1/inbox/{chatbotId}/answers/{answerId} HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Accept: */*
{
"error": "text"
}Last updated