Chatbot Versions
The ID of the chatbot.
List of all versions.
Optional error message.
Insufficient permissions.
GET /v1/chatbots/{chatbotId}/versions HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Accept: */*
{
"versions": [
{
"id": "By4hQWBaJaRrwvxg5fWz",
"name": "Version 1.2.3",
"created": "2025-10-04T10:00:00Z",
"deployed": "2025-10-04T10:05:00Z",
"modelId": "modl_Kq8BxZaJd2wZR9cxd1P",
"versionNumber": "1.2.3",
"stats": {
"steps": 42,
"events": 15,
"intents": 28,
"entities": 12,
"flows": 8,
"triggers": 5
},
"description": "Initial release",
"environment": "dev",
"deploymentId": "OI03ITtm1nSliNJGJ5HV",
"hasActiveDeployment": true,
"resettable": true
}
],
"error": "text"
}The ID of the chatbot.
An optional description for the new version.
Release for Q4 CampaignThe name of the new version (often automatically generated).
Version 1.2.4The environment for which this version is created. None being dev, as no deployment is needed.
testPossible values: Version created successfully.
Optional error message.
Invalid input data.
Insufficient permissions.
POST /v1/chatbots/{chatbotId}/versions HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 85
{
"description": "Release for Q4 Campaign",
"name": "Version 1.2.4",
"environment": "test"
}{
"version": {
"id": "By4hQWBaJaRrwvxg5fWz",
"name": "Version 1.2.3",
"created": "2025-10-04T10:00:00Z",
"deployed": "2025-10-04T10:05:00Z",
"modelId": "modl_Kq8BxZaJd2wZR9cxd1P",
"versionNumber": "1.2.3",
"stats": {
"steps": 42,
"events": 15,
"intents": 28,
"entities": 12,
"flows": 8,
"triggers": 5
},
"description": "Initial release",
"environment": "dev",
"deploymentId": "OI03ITtm1nSliNJGJ5HV",
"hasActiveDeployment": true,
"resettable": true
},
"error": "text"
}The ID of the chatbot.
The Id of the version to be deleted.
Indicates whether the version was successfully deleted.
trueOptional error message.
Insufficient permissions.
DELETE /v1/chatbots/{chatbotId}/versions/{versionId} 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 version to be deployed.
The target environment for the deployment.
prodPossible values: Deployment process started.
Indicates whether the deployment was successfully started.
trueOptional error message.
Insufficient permissions.
POST /v1/chatbots/{chatbotId}/versions/{versionId}/deploy HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 22
{
"environment": "prod"
}{
"started": true,
"error": "text"
}The ID of the chatbot.
The Id of the version to roll back on.
Result of the rollback operation.
Indicates whether the rollback was successful.
trueOptional error message.
Insufficient permissions.
POST /v1/chatbots/{chatbotId}/versions/{versionId}/rollback HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 27
{
"excludeComponents": [
0,
1
]
}{
"rolledBack": true,
"error": "text"
}Last updated