Create New Message
POST
/api/v1/accounts/{account_id}/conversations/{conversation_id}/messages
Messages
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v1/accounts//conversations//messages' \
--header 'Content-Type: application/json; charset=utf-8' \
--data-raw '{
"content": "string",
"message_type": "outgoing",
"private": true,
"content_type": "text",
"content_attributes": {},
"template_params": {
"name": "sample_issue_resolution",
"category": "UTILITY",
"language": "en_US",
"processed_params": {
"1": "Chatwoot"
}
}
}'
Response Response Example
200 - Example 1
{
"id": 0,
"content": "string",
"content_type": "text",
"content_attributes": {},
"message_type": "incoming",
"created_at": 0,
"private": true,
"attachment": {},
"sender": {},
"conversation_id": 0
}
Request
Path Params
account_id
stringÂ
required
conversation_id
stringÂ
required
Body Params application/json; charset=utf-8