List conversations
このページは 日本語 ではまだ利用できません。デフォルトの言語 (English) で表示しています。
List conversations
https://api.cekat.ai/api/conversationsLists 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
Your Cekat API key, from Settings → Developers & API in the Cekat dashboard.
Alternative to api_key: send the same key as Bearer YOUR_API_KEY.
Query parameters
20min: 1max: 100next_cursor.cursor_id from the previous page.
next_cursor.cursor_ts from the previous page.
Only include items created on or after this date (YYYY-MM-DD). Cannot be combined with start_datetime.
Only include items created on or before the end of this date (YYYY-MM-DD). Cannot be combined with end_datetime.
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.
Only include items created at or before this time (YYYY-MM-DDTHH:mm:ss, optional offset). Cannot be combined with end_date.
Headers
IANA time zone used to read date filters that have no offset. Defaults to Asia/Jakarta.
Response
A page of conversations.
Show child attributes
open, pending, assigned, resolvedThe human agent handling the conversation.
The contact's notes.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
A filter is invalid, or limit is above 100.
Show child attributes
Request ID. Include it when contacting Cekat support.
The API key is missing or invalid.
Show child attributes
Request ID. Include it when contacting Cekat support.
Rate limit exceeded. Wait and retry.
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;
{
"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>"
}