Org settings, dashboards & reporting
Send Message
Validates an AI session token, then runs the message through the Anthropic-backed conversation service with tools.
POSThttps://api.toku.com/platform/send-message
Not available to API keys.
curl --request POST \
--url 'https://api.toku.com/platform/send-message' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"sessionToken": "string",
"message": "string"
}'200 response
{
"response": {
"type": "text",
"content": "string",
"isStreaming": true,
"metadata": {
"tokensUsed": 0,
"toolCalls": [
"string"
],
"toolsUsed": [
{
"name": "string",
"description": "string"
}
],
"allowedLinks": [
"string"
]
}
}
}Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is an access token from a Toku sign-in. See Authentication in the API reference.
Body
application/json
sessionTokenstringrequiredAllowed: 1 to 512 characters
messagestringrequiredNOTE(ck): a .refine() rule is not mirrored here; TGA still enforces it
Allowed: at most 16000 characters
Response
200Successful response
responseobjectrequiredShow child attributes
typestringrequiredAvailable options: text, tool_display, stream
contentstringrequiredtoolDataanyisStreamingbooleanmetadataobjectShow child attributes
tokensUsednumbertoolCallsstring[]toolsUsedobject[]Show child attributes
namestringrequireddescriptionstringrequiredallowedLinksstring[]400Bad request
401Unauthorized
403Forbidden
404Not found
409Conflict
429Response 429
Was this page helpful? Suggest edits