Send a customer message to an assistant
curl --request POST \
--url https://platform.crescendo.ai/api/v1/assistant/tenants/{tenantId}/bots/{botId}/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"conversationId": "customer-chat-42",
"message": "Where is my order?",
"messageId": "customer-message-8",
"orderNumber": "ORDER-123",
"context": {
"locale": "en",
"customer": {
"loyaltyTier": "gold"
}
}
}
'import requests
url = "https://platform.crescendo.ai/api/v1/assistant/tenants/{tenantId}/bots/{botId}/messages"
payload = {
"conversationId": "customer-chat-42",
"message": "Where is my order?",
"messageId": "customer-message-8",
"orderNumber": "ORDER-123",
"context": {
"locale": "en",
"customer": { "loyaltyTier": "gold" }
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
conversationId: 'customer-chat-42',
message: 'Where is my order?',
messageId: 'customer-message-8',
orderNumber: 'ORDER-123',
context: {locale: 'en', customer: {loyaltyTier: 'gold'}}
})
};
fetch('https://platform.crescendo.ai/api/v1/assistant/tenants/{tenantId}/bots/{botId}/messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://platform.crescendo.ai/api/v1/assistant/tenants/{tenantId}/bots/{botId}/messages",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'conversationId' => 'customer-chat-42',
'message' => 'Where is my order?',
'messageId' => 'customer-message-8',
'orderNumber' => 'ORDER-123',
'context' => [
'locale' => 'en',
'customer' => [
'loyaltyTier' => 'gold'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://platform.crescendo.ai/api/v1/assistant/tenants/{tenantId}/bots/{botId}/messages"
payload := strings.NewReader("{\n \"conversationId\": \"customer-chat-42\",\n \"message\": \"Where is my order?\",\n \"messageId\": \"customer-message-8\",\n \"orderNumber\": \"ORDER-123\",\n \"context\": {\n \"locale\": \"en\",\n \"customer\": {\n \"loyaltyTier\": \"gold\"\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://platform.crescendo.ai/api/v1/assistant/tenants/{tenantId}/bots/{botId}/messages")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"conversationId\": \"customer-chat-42\",\n \"message\": \"Where is my order?\",\n \"messageId\": \"customer-message-8\",\n \"orderNumber\": \"ORDER-123\",\n \"context\": {\n \"locale\": \"en\",\n \"customer\": {\n \"loyaltyTier\": \"gold\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform.crescendo.ai/api/v1/assistant/tenants/{tenantId}/bots/{botId}/messages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"conversationId\": \"customer-chat-42\",\n \"message\": \"Where is my order?\",\n \"messageId\": \"customer-message-8\",\n \"orderNumber\": \"ORDER-123\",\n \"context\": {\n \"locale\": \"en\",\n \"customer\": {\n \"loyaltyTier\": \"gold\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"conversationId": "customer-chat-42",
"messageId": "customer-message-8",
"state": "active",
"handoff": false,
"message": "I can help you check your order.",
"tags": [
"c7o"
]
}Assistants
Send a customer message to an assistant
Send a customer message to an assistant using a tenant API key with assistant:write or an existing equivalent write scope. The complete JSON body is limited to 10 MiB. Each processing call has a default 55-second response budget; HTTP parsing and authentication occur before that budget starts. Timeout does not cancel conversation work. Retries can execute again, and concurrent calls may produce partial/empty replies.
POST
/
api
/
v1
/
assistant
/
tenants
/
{tenantId}
/
bots
/
{botId}
/
messages
Send a customer message to an assistant
curl --request POST \
--url https://platform.crescendo.ai/api/v1/assistant/tenants/{tenantId}/bots/{botId}/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"conversationId": "customer-chat-42",
"message": "Where is my order?",
"messageId": "customer-message-8",
"orderNumber": "ORDER-123",
"context": {
"locale": "en",
"customer": {
"loyaltyTier": "gold"
}
}
}
'import requests
url = "https://platform.crescendo.ai/api/v1/assistant/tenants/{tenantId}/bots/{botId}/messages"
payload = {
"conversationId": "customer-chat-42",
"message": "Where is my order?",
"messageId": "customer-message-8",
"orderNumber": "ORDER-123",
"context": {
"locale": "en",
"customer": { "loyaltyTier": "gold" }
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
conversationId: 'customer-chat-42',
message: 'Where is my order?',
messageId: 'customer-message-8',
orderNumber: 'ORDER-123',
context: {locale: 'en', customer: {loyaltyTier: 'gold'}}
})
};
fetch('https://platform.crescendo.ai/api/v1/assistant/tenants/{tenantId}/bots/{botId}/messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://platform.crescendo.ai/api/v1/assistant/tenants/{tenantId}/bots/{botId}/messages",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'conversationId' => 'customer-chat-42',
'message' => 'Where is my order?',
'messageId' => 'customer-message-8',
'orderNumber' => 'ORDER-123',
'context' => [
'locale' => 'en',
'customer' => [
'loyaltyTier' => 'gold'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://platform.crescendo.ai/api/v1/assistant/tenants/{tenantId}/bots/{botId}/messages"
payload := strings.NewReader("{\n \"conversationId\": \"customer-chat-42\",\n \"message\": \"Where is my order?\",\n \"messageId\": \"customer-message-8\",\n \"orderNumber\": \"ORDER-123\",\n \"context\": {\n \"locale\": \"en\",\n \"customer\": {\n \"loyaltyTier\": \"gold\"\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://platform.crescendo.ai/api/v1/assistant/tenants/{tenantId}/bots/{botId}/messages")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"conversationId\": \"customer-chat-42\",\n \"message\": \"Where is my order?\",\n \"messageId\": \"customer-message-8\",\n \"orderNumber\": \"ORDER-123\",\n \"context\": {\n \"locale\": \"en\",\n \"customer\": {\n \"loyaltyTier\": \"gold\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform.crescendo.ai/api/v1/assistant/tenants/{tenantId}/bots/{botId}/messages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"conversationId\": \"customer-chat-42\",\n \"message\": \"Where is my order?\",\n \"messageId\": \"customer-message-8\",\n \"orderNumber\": \"ORDER-123\",\n \"context\": {\n \"locale\": \"en\",\n \"customer\": {\n \"loyaltyTier\": \"gold\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"conversationId": "customer-chat-42",
"messageId": "customer-message-8",
"state": "active",
"handoff": false,
"message": "I can help you check your order.",
"tags": [
"c7o"
]
}Authorizations
bearerAuthbearerTokenQuery
Path Parameters
Body
application/json
All other root fields are arbitrary business input and are preserved. No business-key allowlist.
Response
Public assistant reply, tags and handoff outcome; partial/empty text and retained-handoff null text are valid.

