Skip to main content
POST
Create Conversation

Authorizations

Authorization
string
header
required

Basic authentication using base64 encoded API key and secret. Format: Authorization: Basic <base64(api_key:api_secret)>

Body

application/json

Conversation creation details

content
string
required

Initial message content (Accepts HTML as well)

inbox_id
integer
required

Inbox ID for the conversation

contact_email
string<email>
required

Contact's email address

first_name
string
required

Contact's first name

initiator
enum<string>
required

Who initiated the conversation. 'contact' means the first message is treated as an incoming message from the contact; 'agent' means the first message is an outgoing reply from the agent. Automation rules are only evaluated for contact-initiated conversations (incoming messages); agent-initiated conversations skip automation rule evaluation.

Available options:
agent,
contact
subject
string

Conversation subject

team_id
integer | null

Team ID to be assigned when conversation is created

agent_id
integer | null

Agent ID to be assigned when conversation is created

last_name
string

Contact's last name

external_user_id
string

External identifier for the contact in your own system

Example:

"crm-9f3a21"

attachments
integer[]

Array of attachment IDs

custom_attributes
object

Arbitrary key-value custom attributes to set on the conversation

Example:

Response

Conversation created successfully

status
string
Example:

"success"

data
object