List campaign messages

此页面暂无中文版本。显示默认语言(English)。

List campaign messages

GEThttps://api.cekat.ai/api/campaigns/{id}/messages

Older 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

api_keystringheaderrequired

Your Cekat API key, from Settings → Developers & API in the Cekat dashboard.

Authorizationstringheader

Alternative to api_key: send the same key as Bearer YOUR_API_KEY.

Path parameters

idstring<uuid>required

Campaign ID.

Query parameters

pageintegerrequired
min: 1
limitintegerrequired
min: 1
versionstring

Response format version in YYYY-MM-DD format. Use 2026-05-22 or later to get created_at as an ISO 8601 UTC timestamp.

pattern: ^\d{4}-\d{2}-\d{2}$

Response

200
400
401
404
429

A page of campaign messages and status totals.

successboolean
dataCampaignMessageLegacy[]
Show child attributes
idstring
campaign_idstring<uuid>
conversation_idstring
messagestring
statusstring

Latest delivery status, for example sent, delivered, read, or failed.

created_atstring

ISO 8601 UTC with version=2026-05-22 or later; otherwise YYYY-MM-DD HH:mm:ss in Asia/Jakarta time.

media_typestring
media_urlstring | null
sent_bystring
sent_by_namestring
sent_by_typestring
additional_dataobject

Includes the recipient as to_phone and to_name.

errorany | null
is_repliedboolean
first_replyobject | null
Show child attributes
idstring
messagestring
created_atstring
media_typestring
media_urlstring | null
sent_bystring
sent_by_namestring
business_idstring<uuid>
metadataobject
Show child attributes
metricsobject

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.

successboolean
messagestring
statusCodeinteger
errorobject
Show child attributes
messagestring
correlationIdstring

Request ID. Include it when contacting Cekat support.

The API key is missing or invalid.

successboolean
messagestring
statusCodeinteger
errorobject
Show child attributes
messagestring
correlationIdstring

Request ID. Include it when contacting Cekat support.

The resource was not found or does not belong to your business.

successboolean
messagestring
statusCodeinteger
errorobject
Show child attributes
messagestring
correlationIdstring

Request ID. Include it when contacting Cekat support.

Rate limit exceeded. Wait and retry.

messagestring
GET/api/campaigns/{id}/messages
cURL
JavaScript
Python
PHP
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;
Response
200
400
401
404
429
{
  "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>"
}