Send message to a session
POST/v1/desks/:desk_id/sessions/:session_id/message
Send a message to an active chat session. Messages are recorded in Analytics and incur usage charges. Permissions - desks.read and sessions.write. API keys - manage, use.
Request
Responses
- 200
- 400
- 401
- 404
- 409
- 500
Message response. When the session is flagged as spam, the body is an empty object: the message is dropped and no reply is sent.
BadRequest
Response Headers
Unique identifier for the API request, useful for debugging and tracking.
abc123xyz789Unauthorized
Response Headers
Unique identifier for the API request, useful for debugging and tracking.
abc123xyz789The specified resource was not found
Response Headers
Unique identifier for the API request, useful for debugging and tracking.
abc123xyz789An external runtime owns the session's turns (external_runtime_active). Send the message after the leg ends.
Internal Server Error
Response Headers
Unique identifier for the API request, useful for debugging and tracking.
abc123xyz789