Aller au contenu principal

POST /contacts/:uuid/bot

Changes the status of the bot associated with a specific contact. This can be used to stop or restart the bot for a specific contact.

Required Parameters

ParameterTypeDescription
statusstringThe status of the bot. Accepts either bot_start or bot_end.

Example Request

  curl -X POST "https://api.callbell.eu/v1/contacts/414a6d692bd645ed803f2e7ce360d4c8/bot" \
-H "Authorization: Bearer test_gshuPaZoeEG6ovbc8M79w0QyM" \
-H "Content-Type: application/json" \
-d '{
"status": "bot_start"
}'

Response

ParameterTypeDescription
botBotThe object representing the bot.

Example Response

response.json
{
"bot": {
"uuid": "f7155fc557b74597b429bd3dbb5ca677",
"name": "My Bot",
"status": "started",
"conversationStartedAt": null,
"version": 5,
"latestBotVersion": true
}
}