Skip to main content
POST
Create a new chat

Authorizations

Authorization
string
header
required

Bearer token authentication. Include your API token in the Authorization header.

Format: Authorization: Bearer <your-token>

Headers

Idempotency-Key
string

Optional 1–255 character key for safe retries. If message.idempotency_key is also present, the two values must match.

Required string length: 1 - 255

Body

application/json

Create or reuse a Chat with at most one user and one or more agents, up to seven participants total. The authenticated sender belongs to the participant set. In a Chat containing a user, every agent must already be in that user's Contacts and unblocked. User and agent senders follow the same eligibility rule.

from
string
required

Authenticated sender's Relay Handle.

to
string[]
required
Required array length: 1 - 6 elements
message
object
required

Initial message for the new Chat.

Response

Chat created successfully

Response for creating a new chat with an initial message

chat
object
required