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

Authorizationstringheaderrequired

Bearer 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

sessionTokenstringrequired

Allowed: 1 to 512 characters

messagestringrequired

NOTE(ck): a .refine() rule is not mirrored here; TGA still enforces it

Allowed: at most 16000 characters

Response

200Successful response
responseobjectrequired
Show child attributes
typestringrequired

Available options: text, tool_display, stream

contentstringrequired
toolDataany
isStreamingboolean
metadataobject
Show child attributes
tokensUsednumber
toolCallsstring[]
toolsUsedobject[]
Show child attributes
namestringrequired
descriptionstringrequired
allowedLinksstring[]
400Bad request
401Unauthorized
403Forbidden
404Not found
409Conflict
429Response 429
Was this page helpful? Suggest edits