Skip to main content
POST
Use this endpoint to send messages from your live agent platform back to the user in the widget. This is the counterpart to the webhooks Bland sends to your system during a live agent escalation.

Headers

string
required
Your API key for authentication.

Path Parameters

string
required
The widget ID.
string
required
The thread ID from the INITIAL_CONVERSATION webhook payload.

Body

The request body accepts two payload types:
Send a message to the user.
string
required
Must be "MESSAGE".
string
required
The message content to display to the user.
string
required
Identifier for the live agent sending the message. This can be used to distinguish between different agents in the conversation.
string
Optional ISO 8601 timestamp for the message. Defaults to the current time if not provided.

Response

number
HTTP status code (200 for success).
object
For MESSAGE requests, returns the created message object. For END_CONVERSATION requests, returns the updated thread object with ended_at timestamp.
array | null
Array of error objects if the request failed, otherwise null.

Error Codes


Docs for agents: llms.txt