List campaign messages
Halaman ini belum tersedia dalam Bahasa Indonesia. Menampilkan bahasa default (English).
List campaign messages
https://api.cekat.ai/api/campaigns/{id}/messagesOlder version of campaign details, kept for existing integrations. Returns raw campaign messages plus a status breakdown. New integrations should use GET /api/v2/campaigns/{id}/messages.
This endpoint is deprecated.
Authorization
Your Cekat API key, from Settings → Developers & API in the Cekat dashboard.
Alternative to api_key: send the same key as Bearer YOUR_API_KEY.
Path parameters
Campaign ID.
Query parameters
11Response format version in YYYY-MM-DD format. Use 2026-05-22 or later to get created_at as an ISO 8601 UTC timestamp.
^\d{4}-\d{2}-\d{2}$Response
A page of campaign messages and status totals.
Show child attributes
Latest delivery status, for example sent, delivered, read, or failed.
ISO 8601 UTC with version=2026-05-22 or later; otherwise YYYY-MM-DD HH:mm:ss in Asia/Jakarta time.
Includes the recipient as to_phone and to_name.
Show child attributes
Show child attributes
Show child attributes
total_data, total_replied, and one total_<status> count per message status present (for example total_sent, total_read).
version is not in YYYY-MM-DD format.
Show child attributes
Request ID. Include it when contacting Cekat support.
The API key is missing or invalid.
Show child attributes
Request ID. Include it when contacting Cekat support.
The resource was not found or does not belong to your business.
Show child attributes
Request ID. Include it when contacting Cekat support.
Rate limit exceeded. Wait and retry.
curl --request GET \
--url 'https://api.cekat.ai/api/campaigns/3c90c3cc-0d44-4b50-8888-8dd25736052a/messages?page=1&limit=1' \
--header 'api_key: YOUR_API_KEY'
const response = await fetch('https://api.cekat.ai/api/campaigns/3c90c3cc-0d44-4b50-8888-8dd25736052a/messages?page=1&limit=1', {
method: 'GET',
headers: { 'api_key': 'YOUR_API_KEY' },
});
const data = await response.json();
console.log(data);
import requests
url = "https://api.cekat.ai/api/campaigns/3c90c3cc-0d44-4b50-8888-8dd25736052a/messages?page=1&limit=1"
headers = {"api_key": "YOUR_API_KEY"}
response = requests.get(url, headers=headers)
print(response.json())
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.cekat.ai/api/campaigns/3c90c3cc-0d44-4b50-8888-8dd25736052a/messages?page=1&limit=1',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => ['api_key: YOUR_API_KEY'],
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{
"success": true,
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"campaign_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"message": "<string>",
"status": "<string>",
"created_at": "2026-01-15T09:30:00Z",
"media_type": "<string>",
"media_url": "https://example.com",
"sent_by": "<string>",
"sent_by_name": "example_name",
"sent_by_type": "<string>",
"additional_data": {},
"error": "<string>",
"is_replied": true,
"first_reply": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"message": "<string>",
"created_at": "2026-01-15T09:30:00Z",
"media_type": "<string>",
"media_url": "https://example.com",
"sent_by": "<string>",
"sent_by_name": "example_name"
},
"business_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"metadata": {
"pagination": {
"current_page": 1,
"total_page": 1,
"limit_per_page": 1,
"total_items": 1
},
"metrics": {}
}
}
{
"success": true,
"message": "<string>",
"statusCode": 1,
"error": {
"message": "<string>"
},
"correlationId": "<string>"
}
{
"success": true,
"message": "<string>",
"statusCode": 1,
"error": {
"message": "<string>"
},
"correlationId": "<string>"
}
{
"success": true,
"message": "<string>",
"statusCode": 1,
"error": {
"message": "<string>"
},
"correlationId": "<string>"
}
{
"message": "<string>"
}