Skip to main content

Overview

Sends a message from the authenticated agent into a conversation. The message is delivered to the customer via the conversation’s channel adapter (e.g. live chat widget, WhatsApp, email). SLA first-response time is recorded on the first agent message.
Your plan’s monthly message limit applies. If you exceed your plan’s max_messages_per_month, this endpoint returns an error. Upgrade your plan to increase the limit.

Request

Method: POST URL: /api/v1/conversations/{conversation_id}/messages

Headers

Path parameters

string (UUID)
required
The UUID of the conversation to send a message in.

Body parameters

string
required
The text content of the message.
array
Optional list of attachment objects. Upload files first using POST /api/v1/conversations/{conversation_id}/upload to obtain URLs, then reference them here. Defaults to an empty array.

Response

Returns the created message object.
string (UUID)
Unique identifier for the message.
string (UUID)
The conversation this message belongs to.
string
Always "agent" for messages sent via this endpoint.
string (UUID) | null
UUID of the authenticated agent who sent the message.
string
The text content of the message.
array
List of attachment objects included with the message.
string (ISO 8601)
Timestamp when the message was sent.

Example

Response example

Errors