Create chat message
Create a new chat message for a specific entity. Supports both JSON and form data with optional file attachments. Only chat participants can send messages.
application/json
POST
/data/entities/{entity_id}/chat/messages
cURL (application/json)
curl \
--request POST 'http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/chat/messages' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"message":"Hello, world!"}'
curl \
--request POST 'http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/chat/messages' \
--header "Authorization: $API_KEY" \
--header "Content-Type: multipart/form-data" \
--form "message=Hello, world!" \
--form "files[]=@file"
Request examples
{
"message": "Hello, world!"
}
Response examples (201)
{
"id": "string",
"message": "string",
"person_id": "string",
"created_at": "2025-05-04T09:42:00Z",
"attachments": [
{}
]
}