Contact Variables
Required Permission: chatbots.contacts.variables.list
Resource: chatbots/:chatbotId
The Id of the chatbot.
The Id of the contact.
The list of contact variables.
Optional error message.
Insufficient permissions.
GET /v1/chatbots/{chatbotId}/contacts/variables/{contactId} HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Accept: */*
{
"variables": [
{
"id": "oxFRSIOBMF3gaiD3XRGK",
"name": "customer_name",
"type": "string",
"value": "Max Mustermann",
"updated": "2025-10-06T10:00:00Z"
}
],
"error": "text"
}Required Permission: chatbots.contacts.variables.delete
Resource: chatbots/:chatbotId
The Id of the chatbot.
The Id of the contact.
The deletion result.
Indicates whether the deletion operation was successful.
trueOptional error message.
Insufficient permissions.
DELETE /v1/chatbots/{chatbotId}/contacts/variables/{contactId} HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Accept: */*
{
"deleted": true,
"error": "text"
}Required Permission: chatbots.contacts.variables.get
Resource: chatbots/:chatbotId
The Id of the chatbot.
The Id of the variable.
The Id of the contact.
The requested variable.
Optional error message.
Insufficient permissions.
GET /v1/chatbots/{chatbotId}/contacts/variables/{contactId}/{variableId} HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Accept: */*
{
"variable": {
"id": "oxFRSIOBMF3gaiD3XRGK",
"name": "customer_name",
"type": "string",
"value": "Max Mustermann",
"updated": "2025-10-06T10:00:00Z"
},
"error": "text"
}Required Permission: chatbots.contacts.variables.edit
Resource: chatbots/:chatbotId
The Id of the chatbot.
The Id of the variable whose value is to be set.
The new value to be assigned to the variable.
Custom ValueThe id of the contact to assign the variable to.
fdnklxaCACfw92b01vThe updated variable.
Optional error message.
Invalid input data.
Insufficient permissions.
PUT /v1/chatbots/{chatbotId}/contacts/variables/{variableId} HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 57
{
"value": "Custom Value",
"contactId": "fdnklxaCACfw92b01v"
}{
"variable": {
"id": "oxFRSIOBMF3gaiD3XRGK",
"name": "customer_name",
"type": "string",
"value": "Max Mustermann",
"updated": "2025-10-06T10:00:00Z"
},
"error": "text"
}Last updated