Create a conversation
cURL
curl --request POST \ --url https://app.chatwoot.com/public/api/v1/inboxes/{inbox_identifier}/contacts/{contact_identifier}/conversations \ --header 'Content-Type: application/json' \ --data ' { "custom_attributes": {} } '
{ "id": 123, "inbox_id": "<string>", "messages": [ { "id": 123, "content": "<string>", "account_id": 123, "inbox_id": 123, "conversation_id": 123, "message_type": 0, "created_at": 123, "updated_at": 123, "private": true, "status": "sent", "source_id": "<string>", "content_type": "text", "content_attributes": {}, "sender_type": "contact", "sender_id": 123, "external_source_ids": {}, "additional_attributes": {}, "processed_message_content": "<string>", "sentiment": {}, "conversation": {}, "attachment": {}, "sender": {} } ], "contact": {} }
The identifier obtained from API inbox channel
The source id of contact obtained on contact create
Custom attributes of the conversation
{}
Success
Id of the conversation
The inbox id of the conversation
Messages in the conversation
Show child attributes
The ID of the message
The text content of the message
The ID of the account
The ID of the inbox
The ID of the conversation
The type of the message
0
1
2
The time at which message was created
The time at which message was updated
The flags which shows whether the message is private or not
The status of the message
sent
delivered
read
failed
The source ID of the message
The type of the template message
text
input_select
cards
form
The content attributes for each content_type
The type of the sender
contact
agent
agent_bot
The ID of the sender
The external source IDs of the message
The additional attributes of the message
The processed message content
The sentiment of the message
The conversation object
The file object attached to the image
User/Agent/AgentBot object
The contact information associated to the conversation