Overview
Creates a new conversation under your business. Optionally link an existing customer and include an opening message from the agent. The conversation is associated with your business’s default channel.Request
Method:POST
URL: /api/v1/conversations/
Headers
| Header | Value |
|---|---|
| Authorization | Bearer |
| Content-Type | application/json |
Body parameters
The UUID of your business. Must match the business associated with your account.
UUID of an existing customer to associate with this conversation. Optional — leave unset if the customer is unknown at creation time.
An optional opening message from the agent. If provided, a message record is created with
sender_type: "agent".Response
Returns the newly created conversation object.Unique identifier for the conversation.
The business this conversation belongs to.
The associated customer, or
null if not linked.The assigned agent, or
null if unassigned.Set to
"open" on creation.The channel type derived from the resolved channel record.
The channel this conversation is linked to.
Timestamp when the conversation was created.
Timestamp when the conversation was last updated.
Timestamp of the first agent response. Populated immediately if
initial_message is provided.Embedded customer object if a
customer_id was provided.Array of messages. Contains the initial message if one was provided.
Example
Response example
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid channel — the channel_id does not exist or does not belong to your business |
| 401 | Unauthorized — missing or invalid Bearer token |
| 422 | Validation error — missing required fields |