Skip to main content
POST
Send a message to a Bot

Authorizations

Authorization
string
header
required

Bearer API key for server-to-server access. Session auth is also supported in first-party UI flows.

Path Parameters

botId
string
required

Query Parameters

organizationId
string

Required with session authentication. Otherwise use the authenticated organization.

Maximum string length: 120

Body

application/json
message
string
required
Required string length: 1 - 40000
requestId
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$

Response

The message was accepted by the durable Bot queue.

runId
string
required
Pattern: ^bot-message:[0-9a-f-]{36}$
threadId
string
required