Chatbot Flows
The ID of the chatbot.
List of all flows.
Optional error message.
Insufficient permissions.
GET /v1/chatbots/{chatbotId}/flows HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Accept: */*
{
"flows": [
{
"id": "Kq8BxZaJd2wZR9cxd1P",
"name": "Order Process",
"created": "2025-10-02T14:00:00Z",
"updated": "2025-10-02T14:05:00Z",
"type": "default",
"parent": {
"flowId": "Kq8BxZaJd2wZR9cxd1P",
"stepId": "59aBv7wzR9cxd1Pxyz"
},
"isStandard": "false"
}
],
"error": "text"
}The ID of the chatbot.
The name of the new flow.
Return ProcessThe ID of the parent flow, if a sub-flow is being created.
Kq8BxZaJd2wZR9cxd1PThe ID of the step in the parent flow, if a sub-flow is being created.
59aBv7wzR9cxd1PxyzIndicates whether the flow is a standard flow or not.
falseFlow created successfully.
Invalid input data.
Insufficient permissions.
POST /v1/chatbots/{chatbotId}/flows HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 119
{
"name": "Return Process",
"parentFlowId": "Kq8BxZaJd2wZR9cxd1P",
"parentStepId": "59aBv7wzR9cxd1Pxyz",
"isStandard": "false"
}{
"flow": {
"id": "Kq8BxZaJd2wZR9cxd1P",
"name": "Order Process",
"created": "2025-10-02T14:00:00Z",
"updated": "2025-10-02T14:05:00Z",
"type": "default",
"parent": {
"flowId": "Kq8BxZaJd2wZR9cxd1P",
"stepId": "59aBv7wzR9cxd1Pxyz"
},
"isStandard": "false"
}
}The ID of the chatbot.
The ID of the flow to retrieve.
Details of the flow.
Optional error message.
Insufficient permissions.
GET /v1/chatbots/{chatbotId}/flows/{flowId} HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Accept: */*
{
"flow": {
"id": "Kq8BxZaJd2wZR9cxd1P",
"name": "Order Process",
"created": "2025-10-02T14:00:00Z",
"updated": "2025-10-02T14:05:00Z",
"type": "default",
"parent": {
"flowId": "Kq8BxZaJd2wZR9cxd1P",
"stepId": "59aBv7wzR9cxd1Pxyz"
},
"isStandard": "false"
},
"error": "text"
}The ID of the chatbot.
The ID of the flow to delete.
Result of the deletion process.
Indicates whether the deletion operation was successful.
trueInsufficient permissions.
DELETE /v1/chatbots/{chatbotId}/flows/{flowId} HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Accept: */*
{
"deleted": true
}The ID of the chatbot.
The ID of the flow to update.
The new name of the flow.
Returns & Exchange ProcessThe new ID of the parent flow, if a sub-flow is being updated.
Kq8BxZaJd2wZR9cxd1PThe new ID of the step in the parent flow, if a sub-flow is being updated.
59aBv7wzR9cxd1PxyzFlow updated successfully.
Invalid input data.
Insufficient permissions.
PATCH /v1/chatbots/{chatbotId}/flows/{flowId} HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 110
{
"name": "Returns & Exchange Process",
"parentFlowId": "Kq8BxZaJd2wZR9cxd1P",
"parentStepId": "59aBv7wzR9cxd1Pxyz"
}{
"flow": {
"id": "Kq8BxZaJd2wZR9cxd1P",
"name": "Order Process",
"created": "2025-10-02T14:00:00Z",
"updated": "2025-10-02T14:05:00Z",
"type": "default",
"parent": {
"flowId": "Kq8BxZaJd2wZR9cxd1P",
"stepId": "59aBv7wzR9cxd1Pxyz"
},
"isStandard": "false"
}
}Last updated