Create New Conversation
Creating a conversation in chatwoot requires a source id.
Learn more about source_id: https://www.chatwoot.com/hc/user-guide/articles/1677839703-how-to-create-an-api-channel-inbox#send-messages-to-the-api-channel
Email inboxes
When the target inbox is an Email inbox, a few extra fields control the subject line and the recipients of the outgoing email. They map to the fields an agent fills in when composing a new email conversation from the dashboard.cc_emails, bcc_emails and to_emails belong to the message object, not to
additional_attributes. They are only processed for Email inboxes and are ignored on every
other channel.- All three email lists take a comma-separated string, not an array. Whitespace around the addresses is stripped. If any address is not a valid email, the request fails with
Invalid email address. mail_subjectapplies to the whole conversation, not just the first message. The first email goes out with the subject as-is; from the second message onwards, replies are sent asRe: <subject>. Private notes and activity messages are not counted.- If you omit
mail_subject, Chatwoot falls back to[#<conversation_display_id>] New messages on this conversation. - The From address cannot be set per request. It is resolved from the inbox and channel configuration — for inboxes using SMTP or OAuth it is the channel’s email address, otherwise it is the inbox’s configured email address, falling back to the account’s support email.
Authorizations
This token can be obtained by visiting the profile page or via rails console. Provides access to endpoints based on the user permissions levels. This token can be saved by an external system when user is created via API, to perform activities on behalf of the user.
Path Parameters
The numeric ID of the account
Body
Conversation source id
"1234567890"
Id of inbox in which the conversation is created
Allowed Inbox Types: Website, Phone, Api, Email
1
Contact Id for which conversation is created
1
Lets you specify attributes like browser information
The object to save custom attributes for conversation, accepts custom attributes key and value
Specify the conversation whether it's pending, open, closed
open, resolved, pending "open"
Agent Id for assigning a conversation to an agent
1
Team Id for assigning a conversation to a team\
1
Snoozed until date time
"2030-07-21T17:32:28Z"
The initial message to be sent to the conversation

