Chatbot Api Keys
Authorizations
x-chatcaptain-keystringRequired
Path parameters
chatbotIdstringRequired
The ID of the chatbot.
indexnumberRequired
The index of the key (e.g., 1 or 2)
workspaceIdstringRequired
The ID of the workspace.
Responses
200
The API key.
application/json
apiKeystringOptionalExample:
The generated API key. Only fully displayed upon creation.
CCSB-a1b2c3d4-e5f6g7h8i9j0errorstringOptional
Optional error message.
403
Insufficient permissions.
get/v1/workspaces/{workspaceId}/chatbots/{chatbotId}/api/{index}
GET /v1/workspaces/{workspaceId}/chatbots/{chatbotId}/api/{index} HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Accept: */*
{
"apiKey": "CCSB-a1b2c3d4-e5f6g7h8i9j0",
"error": "text"
}Authorizations
x-chatcaptain-keystringRequired
Path parameters
chatbotIdstringRequired
The ID of the chatbot.
indexnumberRequired
The index of the key (e.g., 1 or 2)
workspaceIdstringRequired
The ID of the workspace.
Responses
201
The newly generated API key.
application/json
apiKeystringOptionalExample:
The generated API key. Only fully displayed upon creation.
CCSB-a1b2c3d4-e5f6g7h8i9j0errorstringOptional
Optional error message.
403
Insufficient permissions.
post/v1/workspaces/{workspaceId}/chatbots/{chatbotId}/api/{index}
POST /v1/workspaces/{workspaceId}/chatbots/{chatbotId}/api/{index} HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Accept: */*
{
"apiKey": "CCSB-a1b2c3d4-e5f6g7h8i9j0",
"error": "text"
}Last updated