Get a conversation

此页面暂无中文版本。显示默认语言(English)。

Get a conversation

GEThttps://api.cekat.ai/api/conversations/{conversation_id}

Returns a conversation with its labels, pipeline stage, collaborators, and the last message from the contact side and from a human agent.

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.

Path parameters

conversation_idstring<uuid>required

Response

200
400
401
404
429

The conversation.

successboolean
dataConversationDetail
Show child attributes
idstring<uuid>
stage_statusstring
Available options: open, pending, assigned, resolved
notesstring | null
labelsobject[]
Show child attributes
idstring<uuid>
namestring
colorstring
pipelineobject | null
Show child attributes
idstring<uuid>
namestring
collaboratorsNamedRef[]

Agents added to the conversation as collaborators.

Show child attributes
idstring<uuid>
namestring
inbox_idstring<uuid>
inbox_namestring
platform_typestring
contact_idstring<uuid>
contact_namestring
contact_phonestring | null
created_atstring<date-time>
resolved_atstring<date-time> | null
handled_by_idstring<uuid> | null
handled_by_namestring | null
resolved_by_idstring<uuid> | null
resolved_by_namestring | null
additional_dataobject | null
first_messageobject
Show child attributes
messagestring
last_messageobject
Show child attributes
messagestring
created_atstring<date-time> | null
sent_by_typestring

Who sent the last message.

last_message_by_humanobject | null

The last message sent by a human agent, if any.

Show child attributes
messagestring
created_atstring<date-time>
sent_by_typestring

The request is invalid.

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.

The resource was not found or does not belong to your business.

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/{conversation_id}
cURL
JavaScript
Python
PHP
curl --request GET \
  --url 'https://api.cekat.ai/api/conversations/3c90c3cc-0d44-4b50-8888-8dd25736052a' \
  --header 'api_key: YOUR_API_KEY'
const response = await fetch('https://api.cekat.ai/api/conversations/3c90c3cc-0d44-4b50-8888-8dd25736052a', {
  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/3c90c3cc-0d44-4b50-8888-8dd25736052a"
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/3c90c3cc-0d44-4b50-8888-8dd25736052a',
  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
404
429
{
  "success": true,
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "stage_status": "open",
    "notes": "<string>",
    "labels": [
      {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "name": "Jane Doe",
        "color": "<string>"
      }
    ],
    "pipeline": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "Jane Doe"
    },
    "collaborators": [
      {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "name": "Jane Doe"
      }
    ],
    "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",
    "created_at": "2026-01-15T09:30:00Z",
    "resolved_at": "2026-01-15T09:30:00Z",
    "handled_by_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "handled_by_name": "example_name",
    "resolved_by_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "resolved_by_name": "example_name",
    "additional_data": {},
    "first_message": {
      "message": "<string>"
    },
    "last_message": {
      "message": "<string>",
      "created_at": "2026-01-15T09:30:00Z",
      "sent_by_type": "<string>"
    },
    "last_message_by_human": {
      "message": "<string>",
      "created_at": "2026-01-15T09:30:00Z",
      "sent_by_type": "<string>"
    }
  }
}
{
  "success": true,
  "message": "<string>",
  "statusCode": 1,
  "error": {
    "message": "<string>"
  },
  "correlationId": "<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>"
}