Get campaign details
このページは 日本語 ではまだ利用できません。デフォルトの言語 (English) で表示しています。
Get campaign details
https://api.cekat.ai/api/v2/campaigns/{id}/messagesLists 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
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
1min: 120min: 1max: 100Response
A page of campaign messages.
Show child attributes
Message ID.
The text that was sent, with variables filled in.
When the message was sent; empty if it has not been sent.
Latest delivery status, for example sent, delivered, read, or failed.
Failure reason when failed is true.
Same as replied.
Show child attributes
Show child attributes
page or limit is out of range.
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/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;
{
"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>"
}