List campaigns

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

List campaigns

GEThttps://api.cekat.ai/api/campaigns

Lists your campaigns, newest first, with delivery and engagement totals for each.

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.

Query parameters

pageinteger
default: 1min: 1
limitinteger
default: 10min: 1
start_datestring<date>

Only include items created on or after this date (YYYY-MM-DD). Cannot be combined with start_datetime.

end_datestring<date>

Only include items created on or before the end of this date (YYYY-MM-DD). Cannot be combined with end_datetime.

start_datetimestring

Only include items created at or after this time (YYYY-MM-DDTHH:mm:ss, optional offset such as +07:00 or Z). Cannot be combined with start_date.

end_datetimestring

Only include items created at or before this time (YYYY-MM-DDTHH:mm:ss, optional offset). Cannot be combined with end_date.

Headers

X-User-Timezonestring

IANA time zone used to read date filters that have no offset. Defaults to Asia/Jakarta.

Response

200
400
401
429

A page of campaigns.

successboolean
dataCampaignListItem[]
Show child attributes
idstring<uuid>

Campaign ID.

campaign_namestring
inbox_idstring<uuid>
inbox_namestring
template_idstring<uuid>

Cekat's internal template ID. This is not the wa_template_id used when creating a campaign.

template_namestring
template_categorystring
recipient_list_idstring<uuid>
recipient_list_namestring
statusstring
Available options: scheduled, processing, completed, partially completed, failed
send_atstring<date-time>

When the campaign starts (or started) sending.

created_atstring<date-time>
total_recipientinteger

Number of recipients the campaign targets.

totalinteger

Number of campaign messages created so far.

sentinteger

Messages whose latest status is sent.

deliveredinteger

Messages whose latest status is delivered (not yet read).

readinteger

Messages whose latest status is read.

failedinteger

Messages that failed to send.

repliedinteger

Recipients who replied after receiving the message.

buttonClickedinteger

Recipients who tapped a template button.

agentRepliedinteger

Conversations where an agent replied after the campaign message.

metadataobject
Show child attributes

The request is invalid.

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.

Rate limit exceeded. Wait and retry.

messagestring
GET/api/campaigns
cURL
JavaScript
Python
PHP
curl --request GET \
  --url 'https://api.cekat.ai/api/campaigns' \
  --header 'api_key: YOUR_API_KEY'
const response = await fetch('https://api.cekat.ai/api/campaigns', {
  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"
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',
  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
429
{
  "success": true,
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "campaign_name": "example_name",
      "inbox_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "inbox_name": "example_name",
      "template_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "template_name": "example_name",
      "template_category": "<string>",
      "recipient_list_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "recipient_list_name": "example_name",
      "status": "scheduled",
      "send_at": "2026-01-15T09:30:00Z",
      "created_at": "2026-01-15T09:30:00Z",
      "total_recipient": 1,
      "total": 1,
      "sent": 1,
      "delivered": 1,
      "read": 1,
      "failed": 1,
      "replied": 1,
      "buttonClicked": 1,
      "agentReplied": 1
    }
  ],
  "metadata": {
    "pagination": {
      "current_page": 1,
      "total_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>"
}
{
  "message": "<string>"
}