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

List messages

Lists messages across your business, or in one conversation, with each message's contact and inbox.

Without date filters, only today's messages are returned (in your X-User-Timezone, default Asia/Jakarta). With only a start date, results run to the end of today.

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.

Query parameters
conversation_idstring · uuidOptional
pageinteger · min: 1OptionalDefault: 1
limitinteger · min: 1 · max: 2000OptionalDefault: 100
sort_orderstring · enumOptionalDefault: descPossible values:
is_adsbooleanOptional

true to return only contact messages that came from a click-to-WhatsApp ad.

Default: false
is_templatebooleanOptional

true for template messages only, false to exclude them.

start_datestring · dateOptional

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

Example: 2026-10-01
end_datestring · dateOptional

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

Example: 2026-10-31
start_datetimestringOptional

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.

Example: 2026-10-01T08:00:00+07:00
end_datetimestringOptional

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

Example: 2026-10-31T23:59:59+07:00
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}$
Header parameters
X-User-TimezonestringOptional

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

Example: Asia/Jakarta
Responses
200

A page of messages.

application/json
successbooleanOptional
get/api/messages
GET /api/messages HTTP/1.1
Host: api.cekat.ai
api_key: YOUR_API_KEY
Accept: */*
{
  "success": true,
  "data": [
    {
      "id": "9a8b7c6d-5e4f-4a3b-2c1d-0e9f8a7b6c5d",
      "conversation_id": "3a4b5c6d-7e8f-4a0b-9c1d-2e3f4a5b6c7d",
      "message": "Masih berlaku sampai kapan?",
      "sent_by": "5c6d7e8f-9a0b-4c1d-2e3f-4a5b6c7d8e9f",
      "sent_by_name": "Jane Doe",
      "sent_by_type": "user",
      "media_type": "text",
      "media_url": null,
      "platform_mid": "wamid.HBgNNjI4MTIzNDU2Nzg5MBUCABIYFjNFQjA",
      "status": "read",
      "is_template": null,
      "created_at": "2026-10-20T02:16:10.000Z",
      "updated_at": "2026-10-20T02:16:10.000Z",
      "business_id": "2f7431e4-cd89-4daf-a40d-a5d779b3dd1e",
      "chat_credits_used": null,
      "location": null,
      "action": null,
      "additional_data": null,
      "contact": {
        "id": "5c6d7e8f-9a0b-4c1d-2e3f-4a5b6c7d8e9f",
        "display_name": "Jane Doe",
        "phone_number": "6281234567890",
        "platform_id": "6281234567890",
        "username": null,
        "type": "whatsapp"
      },
      "inbox": {
        "id": "0f9e8d7c-6b5a-4c3d-2e1f-0a9b8c7d6e5f",
        "business_id": "2f7431e4-cd89-4daf-a40d-a5d779b3dd1e",
        "name": "Toko Utama",
        "phone_number": "6281200000000",
        "type": "whatsapp"
      }
    }
  ],
  "metadata": {
    "pagination": {
      "current_page": 1,
      "current_items": 1,
      "total_page": 1,
      "total_items": 1
    }
  }
}

Last updated