Chatbot Intents
The ID of the chatbot.
List of all intents.
Optional error message.
Insufficient permissions.
GET /v1/chatbots/{chatbotId}/intents HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Accept: */*
{
"intents": [
{
"id": "69aBv7wzR9cxd1Pxyz",
"name": "Query order status",
"created": "2025-10-02T15:00:00Z",
"updated": "2025-10-02T15:05:00Z",
"confidenceScore": 0.75,
"state": "trained",
"trainingRequired": false,
"actor": {
"type": "flow",
"flowId": "Mq8BxZaJd2wZR9cxd1P",
"stepId": "l9aBv7wzR9cxd1Pxyz"
}
}
],
"error": "text"
}The ID of the chatbot.
The name of the new intent.
Register returnThe required minimum confidence score (0.0-1.0).
0.8Intent created successfully.
Optional error message.
Invalid input data.
Insufficient permissions.
POST /v1/chatbots/{chatbotId}/intents HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 133
{
"name": "Register return",
"confidenceScore": 0.8,
"actor": {
"type": "flow",
"flowId": "Mq8BxZaJd2wZR9cxd1P",
"stepId": "l9aBv7wzR9cxd1Pxyz"
}
}{
"intent": {
"id": "69aBv7wzR9cxd1Pxyz",
"name": "Query order status",
"created": "2025-10-02T15:00:00Z",
"updated": "2025-10-02T15:05:00Z",
"confidenceScore": 0.75,
"state": "trained",
"trainingRequired": false,
"actor": {
"type": "flow",
"flowId": "Mq8BxZaJd2wZR9cxd1P",
"stepId": "l9aBv7wzR9cxd1Pxyz"
}
},
"error": "text"
}The ID of the chatbot.
The ID of the intent to retrieve.
Details of the intent.
Optional error message.
Insufficient permissions.
GET /v1/chatbots/{chatbotId}/intents/{intentId} HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Accept: */*
{
"intent": {
"id": "69aBv7wzR9cxd1Pxyz",
"name": "Query order status",
"created": "2025-10-02T15:00:00Z",
"updated": "2025-10-02T15:05:00Z",
"confidenceScore": 0.75,
"state": "trained",
"trainingRequired": false,
"actor": {
"type": "flow",
"flowId": "Mq8BxZaJd2wZR9cxd1P",
"stepId": "l9aBv7wzR9cxd1Pxyz"
}
},
"error": "text"
}The ID of the chatbot.
The ID of the intent to delete.
Result of the deletion process.
Indicates whether the deletion was successful.
trueOptional error message.
Insufficient permissions.
DELETE /v1/chatbots/{chatbotId}/intents/{intentId} HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Accept: */*
{
"deleted": true,
"error": "text"
}The ID of the chatbot.
The ID of the intent to update.
The new name for the intent.
Returns and exchangesThe new confidence score for the intent.
0.85Whether the intent requires training.
trueIntent updated successfully.
Optional error message.
Invalid input data.
Insufficient permissions.
PATCH /v1/chatbots/{chatbotId}/intents/{intentId} HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 164
{
"name": "Returns and exchanges",
"confidenceScore": 0.85,
"trainingRequired": true,
"actor": {
"type": "flow",
"flowId": "Mq8BxZaJd2wZR9cxd1P",
"stepId": "l9aBv7wzR9cxd1Pxyz"
}
}{
"intent": {
"id": "69aBv7wzR9cxd1Pxyz",
"name": "Query order status",
"created": "2025-10-02T15:00:00Z",
"updated": "2025-10-02T15:05:00Z",
"confidenceScore": 0.75,
"state": "trained",
"trainingRequired": false,
"actor": {
"type": "flow",
"flowId": "Mq8BxZaJd2wZR9cxd1P",
"stepId": "l9aBv7wzR9cxd1Pxyz"
}
},
"error": "text"
}Last updated