List messages in a conversation
Lists every message in one conversation, newest first. Use GET /api/messages to search across conversations or by date.
get
Authorizations
api_keystringRequired
Your business's Cekat API key, from Settings → Developers & API in the Cekat dashboard (https://chat.cekat.ai/developers?section=apikeys). Available on the Business and Enterprise plans.
Query parameters
conversation_idstring · uuidRequired
pageinteger · min: 1OptionalDefault:
1limitinteger · min: 1OptionalDefault:
1000Responses
200
The conversation's messages.
application/json
successbooleanOptional
status_codeintegerOptional
400
conversation_id is missing.
application/json
401
The API key is missing or invalid.
application/json
404
The conversation was not found.
application/json
429
Rate limit exceeded. Wait and retry.
application/json
get/messages
GET /messages?conversation_id=123e4567-e89b-12d3-a456-426614174000 HTTP/1.1
Host: api.cekat.ai
api_key: YOUR_API_KEY
Accept: */*
{
"success": true,
"status_code": 1,
"data": [
{
"id": "text",
"conversation_id": "123e4567-e89b-12d3-a456-426614174000",
"message": "text",
"sent_by": "text",
"sent_by_name": "text",
"sent_by_type": "text",
"media_type": "text",
"media_url": "text",
"platform_mid": "text",
"status": "text",
"is_template": true,
"created_at": "text",
"updated_at": "text",
"chat_credits_used": 1,
"location": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"action": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"additional_data": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"contact": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"display_name": "text",
"phone_number": "text",
"platform_id": "text",
"username": "text",
"type": "text"
},
"inbox": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"business_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"phone_number": "text",
"type": "text"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
}
]
}Last updated