v10

latestOpenAPI 3.0.2Apache 2.0raw.githubusercontent.com2026-05-07302486.6 KB

Send a message to the assistant

send a message

post/v1/Assistants/{id}/Messages

Path parameters

idstring required

the Assistant ID.

Request body

identitystring required

The unique identity of user for the session.

session_idstring

The unique name for the session.

bodystring required

The query to ask the assistant.

webhookstring

The webhook url to call after the assistant has generated a response or report an error.

modestring

one of the modes 'chat', 'email' or 'voice'

Response

OK

statusstring required

success or failure based on whether the request successfully generated a response.

flaggedboolean

If successful, this property will denote whether the response was flagged or not.

abortedboolean

This property will denote whether the request was aborted or not.

session_idstring required

The unique name for the session.

account_sidstring required

The SID of the Account that sent the Message.

bodystring

If successful, the body of the generated response

errorstring

The error message if generation was not successful

All 30 operations