For the complete documentation index, see llms.txt. This page is also available as Markdown.

List campaign 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.

Deprecated
get
Authorizations
api_keystringRequired

Your business's Cekat API key, from Settings → Developers & API in the Cekat dashboard (https://chat.cekat.ai/developers?section=apikeys). Available on the Business and Enterprise plans.

Path parameters
idstring · uuidRequired

Campaign ID.

Query parameters
pageinteger · min: 1RequiredExample: 1
limitinteger · min: 1RequiredExample: 20
versionstringOptional

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

Example: 2026-05-22Pattern: ^\d{4}-\d{2}-\d{2}$
Responses
200

A page of campaign messages and status totals.

application/json
successbooleanOptional
get/api/campaigns/{id}/messages
GET /api/campaigns/{id}/messages?page=1&limit=20 HTTP/1.1
Host: api.cekat.ai
api_key: YOUR_API_KEY
Accept: */*
{
  "success": true,
  "data": [
    {
      "id": "6f5e4d3c-2b1a-4098-8f7e-6d5c4b3a2918",
      "campaign_id": "c4b3a291-8f7e-4d6c-b5a4-93827160f5e4",
      "conversation_id": "3a4b5c6d-7e8f-4a0b-9c1d-2e3f4a5b6c7d",
      "message": "Halo Jane Doe, ada diskon 10% untuk Anda bulan ini!",
      "status": "read",
      "created_at": "2026-10-20T02:00:05.000Z",
      "media_type": "image",
      "media_url": "https://cdn.example.com/promo.png",
      "sent_by": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
      "sent_by_name": "Admin Toko",
      "sent_by_type": "agent",
      "additional_data": {
        "to_phone": "6281234567890",
        "to_name": "Jane Doe"
      },
      "error": null,
      "is_replied": true,
      "first_reply": {
        "id": "9a8b7c6d-5e4f-4a3b-2c1d-0e9f8a7b6c5d",
        "message": "Masih berlaku sampai kapan?",
        "created_at": "2026-10-20T02:16:10.000Z",
        "media_type": "text",
        "media_url": null,
        "sent_by": "5c6d7e8f-9a0b-4c1d-2e3f-4a5b6c7d8e9f",
        "sent_by_name": "Jane Doe"
      },
      "business_id": "2f7431e4-cd89-4daf-a40d-a5d779b3dd1e"
    }
  ],
  "metadata": {
    "pagination": {
      "current_page": 1,
      "total_page": 63,
      "limit_per_page": 20,
      "total_items": 1250
    },
    "metrics": {
      "total_data": 1250,
      "total_sent": 40,
      "total_delivered": 310,
      "total_read": 880,
      "total_failed": 20,
      "total_replied": 95
    }
  }
}

Last updated