List conversations

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

List conversations

GEThttps://api.cekat.ai/api/conversations

Lists conversations, most recently active first, with the contact, handling agent, labels, and first and last messages.

This list uses cursor pagination. To get the next page, send metadata.next_cursor.cursor_id and metadata.next_cursor.cursor_ts from the previous response. Stop when data is empty.

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

limitinteger
default: 20min: 1max: 100
cursor_idstring<uuid>

next_cursor.cursor_id from the previous page.

cursor_tsstring

next_cursor.cursor_ts from the previous page.

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 conversations.

successboolean
dataConversationListItem[]
Show child attributes
idstring<uuid>
stage_statusstring
Available options: open, pending, assigned, resolved
inbox_idstring<uuid>
inbox_namestring
platform_typestring
contact_idstring<uuid>
contact_namestring
contact_phonestring | null
contact_platform_idstring | null
contact_usernamestring | null
handled_by_idstring<uuid> | null

The human agent handling the conversation.

handled_by_namestring | null
resolved_atstring<date-time> | null
resolved_by_idstring<uuid> | null
resolved_by_namestring | null
created_atstring<date-time>
notesstring | null

The contact's notes.

additional_dataobject | null
labelsobject[]
Show child attributes
idstring<uuid>
namestring
first_messageobject
Show child attributes
messagestring
last_messageMessageSnippet
Show child attributes
messagestring
created_atstring<date-time> | null
metadataobject
Show child attributes
next_cursorobject
Show child attributes
cursor_idstring | null
cursor_tsstring | null

A filter is invalid, or limit is above 100.

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/conversations
cURL
JavaScript
Python
PHP
curl --request GET \
  --url 'https://api.cekat.ai/api/conversations' \
  --header 'api_key: YOUR_API_KEY'
const response = await fetch('https://api.cekat.ai/api/conversations', {
  method: 'GET',
  headers: { 'api_key': 'YOUR_API_KEY' },
});

const data = await response.json();
console.log(data);
import requests

url = "https://api.cekat.ai/api/conversations"
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/conversations',
  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",
      "stage_status": "open",
      "inbox_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "inbox_name": "example_name",
      "platform_type": "<string>",
      "contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "contact_name": "Jane Doe",
      "contact_phone": "6281234567890",
      "contact_platform_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "contact_username": "example_name",
      "handled_by_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "handled_by_name": "example_name",
      "resolved_at": "2026-01-15T09:30:00Z",
      "resolved_by_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "resolved_by_name": "example_name",
      "created_at": "2026-01-15T09:30:00Z",
      "notes": "<string>",
      "additional_data": {},
      "labels": [
        {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "name": "Jane Doe"
        }
      ],
      "first_message": {
        "message": "<string>"
      },
      "last_message": {
        "message": "<string>",
        "created_at": "2026-01-15T09:30:00Z"
      }
    }
  ],
  "metadata": {
    "next_cursor": {
      "cursor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "cursor_ts": "<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>"
}