POST
/
public
/
api
/
v1
/
inboxes
/
{inbox_identifier}
/
contacts
/
{contact_identifier}
/
conversations
/
{conversation_id}
/
messages
Create a message
curl --request POST \
  --url https://app.chatwoot.com/public/api/v1/inboxes/{inbox_identifier}/contacts/{contact_identifier}/conversations/{conversation_id}/messages \
  --header 'Content-Type: application/json' \
  --data '{
  "content": "Hello, how can I help you?",
  "echo_id": "1234567890"
}'
{
  "id": "<string>",
  "content": "<string>",
  "message_type": "<string>",
  "content_type": "<string>",
  "content_attributes": "<string>",
  "created_at": "<string>",
  "conversation_id": "<string>",
  "attachments": [
    {}
  ],
  "sender": {}
}

Path Parameters

inbox_identifier
string
required

The identifier obtained from API inbox channel

contact_identifier
string
required

The source id of contact obtained on contact create

conversation_id
integer
required

The numeric ID of the conversation

Body

application/json
content
string

Content for the message

Example:

"Hello, how can I help you?"

echo_id
string

Temporary identifier which will be passed back via websockets

Example:

"1234567890"

Response

Success

id
string

Id of the message

content
string

Text content of the message

message_type
string

Denotes the message type

content_type
string

Content type of the message

content_attributes
string

Additional content attributes of the message

created_at
string

Created at time stamp of the message

conversation_id
string

Conversation Id of the message

attachments
object[]

Attachments if any

sender
object

Details of the sender