> For the complete documentation index, see [llms.txt](https://docs.cekat.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cekat.ai/api-documentation/chat/broadcast/list-campaign-messages.md).

# 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`.

```json
{"openapi":"3.0.3","info":{"title":"Cekat Open API","version":"1.0.0"},"tags":[{"name":"Broadcast","description":"Use these endpoints to manage WhatsApp message templates, upload recipient lists, and run broadcast campaigns.\n\n## Typical flow\n1. **Create a template** with `POST /templates`. Meta reviews it; its `status` starts as `PENDING`.\n2. **Check approval** with `GET /api/templates`. Only templates with `status: APPROVED` can be sent. If you created or edited templates directly in Meta, call `POST /templates/sync` first to copy them into Cekat.\n3. **Send to one contact** with `POST /templates/send`, or continue below to send to many.\n4. **Upload a recipient list** with `POST /api/recipients`. Contacts are imported in the background; poll `GET /api/recipients` until the list's `total_contacts` matches the number returned by the upload.\n5. **Create a campaign** with `POST /api/campaigns`, using the template's `wa_template_id` as `template_id`. Leave out `schedule_at` to send right away.\n6. **Track results** with `GET /api/campaigns` for totals and `GET /api/v2/campaigns/{id}/messages` for each recipient's delivery status and replies.\n\nEvery step needs the `inbox_id` of a connected WhatsApp inbox. Get it from `GET /api/inboxes` (the `id` of an inbox whose `type` is `whatsapp`).\n"}],"servers":[{"url":"https://api.cekat.ai","description":"Production"}],"security":[{"CekatApiKey":[]},{"BearerAuth":[]}],"components":{"securitySchemes":{"CekatApiKey":{"type":"apiKey","in":"header","name":"api_key","description":"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."},"BearerAuth":{"type":"http","scheme":"bearer","description":"The same Cekat API key, sent as `Authorization: Bearer YOUR_API_KEY`. Accepted only by endpoints under `/api/...`."}},"parameters":{"Version":{"name":"version","in":"query","required":false,"description":"Response format version in `YYYY-MM-DD` format. Use `2026-05-22` or later to get `created_at` as an ISO 8601 UTC timestamp.","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}}},"schemas":{"CampaignMessageLegacy":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"campaign_id":{"type":"string","format":"uuid"},"conversation_id":{"type":"string"},"message":{"type":"string"},"status":{"type":"string","description":"Latest delivery status, for example `sent`, `delivered`, `read`, or `failed`."},"created_at":{"type":"string","description":"ISO 8601 UTC with `version=2026-05-22` or later; otherwise `YYYY-MM-DD HH:mm:ss` in Asia/Jakarta time."},"media_type":{"type":"string"},"media_url":{"type":"string","nullable":true},"sent_by":{"type":"string"},"sent_by_name":{"type":"string"},"sent_by_type":{"type":"string"},"additional_data":{"type":"object","additionalProperties":true,"description":"Includes the recipient as `to_phone` and `to_name`."},"error":{"nullable":true},"is_replied":{"type":"boolean"},"first_reply":{"type":"object","nullable":true,"properties":{"id":{"type":"string"},"message":{"type":"string"},"created_at":{"type":"string"},"media_type":{"type":"string"},"media_url":{"type":"string","nullable":true},"sent_by":{"type":"string"},"sent_by_name":{"type":"string"}}},"business_id":{"type":"string","format":"uuid"}}},"ApiError":{"type":"object","description":"Error body returned by the `/api/...` endpoints.","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"statusCode":{"type":"integer"},"error":{"type":"object","properties":{"message":{"type":"string"}}},"correlationId":{"type":"string","description":"Request ID. Include it when contacting Cekat support."}}},"RateLimitError":{"type":"object","properties":{"message":{"type":"string"}}}},"responses":{"ApiUnauthorized":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"ApiNotFound":{"description":"The resource was not found or does not belong to your business.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"TooManyRequests":{"description":"Rate limit exceeded. Wait and retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}}},"paths":{"/api/campaigns/{id}/messages":{"get":{"tags":["Broadcast"],"operationId":"ListCampaignMessages","summary":"List campaign messages","deprecated":true,"description":"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`.","parameters":[{"name":"id","in":"path","required":true,"description":"Campaign ID.","schema":{"type":"string","format":"uuid"}},{"name":"page","in":"query","required":true,"schema":{"type":"integer","minimum":1}},{"name":"limit","in":"query","required":true,"schema":{"type":"integer","minimum":1}},{"$ref":"#/components/parameters/Version"}],"responses":{"200":{"description":"A page of campaign messages and status totals.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/CampaignMessageLegacy"}},"metadata":{"type":"object","properties":{"pagination":{"type":"object","properties":{"current_page":{"type":"integer"},"total_page":{"type":"integer"},"limit_per_page":{"type":"integer"},"total_items":{"type":"integer"}}},"metrics":{"type":"object","description":"`total_data`, `total_replied`, and one `total_<status>` count per message status present (for example `total_sent`, `total_read`).","additionalProperties":{"type":"integer"}}}}}}}}},"400":{"description":"`version` is not in `YYYY-MM-DD` format.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"$ref":"#/components/responses/ApiUnauthorized"},"404":{"$ref":"#/components/responses/ApiNotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}}}}
```
