Get campaign details

Halaman ini belum tersedia dalam Bahasa Indonesia. Menampilkan bahasa default (English).

Get campaign details

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

Lists every recipient’s message in a campaign, newest first, with delivery status, failure reason, and whether they replied or tapped a button. Recommended over GET /api/campaigns/{id}/messages.

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

pageinteger
default: 1min: 1
limitinteger
default: 20min: 1max: 100

Response

200
400
401
404
429

A page of campaign messages.

successboolean
dataCampaignMessage[]
Show child attributes
idstring

Message ID.

campaign_idstring<uuid>
campaign_namestring
conversation_idstring
phone_numberstring
namestring
messagestring

The text that was sent, with variables filled in.

media_typestring
media_urlstring
template_categorystring
sent_bystring
sent_by_namestring
sent_by_typestring
created_atstring<date-time>
date_sentstring

When the message was sent; empty if it has not been sent.

last_statusstring

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

last_status_atstring
sentboolean
deliveredboolean
readboolean
failedboolean
errorstring

Failure reason when failed is true.

repliedboolean
is_repliedboolean

Same as replied.

button_clickedboolean
agent_repliedboolean
first_reply_idstring
first_reply_messagestring
first_reply_sent_bystring
first_reply_sent_by_namestring
first_reply_media_urlstring
first_reply_media_typestring
first_reply_created_atstring
metadataobject
Show child attributes

page or limit is out of range.

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/v2/campaigns/{id}/messages
cURL
JavaScript
Python
PHP
curl --request GET \
  --url 'https://api.cekat.ai/api/v2/campaigns/3c90c3cc-0d44-4b50-8888-8dd25736052a/messages' \
  --header 'api_key: YOUR_API_KEY'
const response = await fetch('https://api.cekat.ai/api/v2/campaigns/3c90c3cc-0d44-4b50-8888-8dd25736052a/messages', {
  method: 'GET',
  headers: { 'api_key': 'YOUR_API_KEY' },
});

const data = await response.json();
console.log(data);
import requests

url = "https://api.cekat.ai/api/v2/campaigns/3c90c3cc-0d44-4b50-8888-8dd25736052a/messages"
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/v2/campaigns/3c90c3cc-0d44-4b50-8888-8dd25736052a/messages',
  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",
      "campaign_name": "example_name",
      "conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "phone_number": "6281234567890",
      "name": "Jane Doe",
      "message": "<string>",
      "media_type": "<string>",
      "media_url": "https://example.com",
      "template_category": "<string>",
      "sent_by": "<string>",
      "sent_by_name": "example_name",
      "sent_by_type": "<string>",
      "created_at": "2026-01-15T09:30:00Z",
      "date_sent": "<string>",
      "last_status": "<string>",
      "last_status_at": "2026-01-15T09:30:00Z",
      "sent": true,
      "delivered": true,
      "read": true,
      "failed": true,
      "error": "<string>",
      "replied": true,
      "is_replied": true,
      "button_clicked": true,
      "agent_replied": true,
      "first_reply_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "first_reply_message": "<string>",
      "first_reply_sent_by": "<string>",
      "first_reply_sent_by_name": "example_name",
      "first_reply_media_url": "https://example.com",
      "first_reply_media_type": "<string>",
      "first_reply_created_at": "2026-01-15T09:30:00Z"
    }
  ],
  "metadata": {
    "pagination": {
      "current_page": 1,
      "total_page": 1,
      "limit_per_page": 1,
      "total_items": 1
    }
  }
}
{
  "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>"
}