List agents (v2)
이 페이지는 아직 한국어 언어로 제공되지 않습니다. 기본 언어(English)로 표시합니다.
List agents (v2)
https://api.cekat.ai/api/agents/v2Lists agents with search, sorting, and Chat or CRM access filters. With module=chat, each agent includes their Chat role, divisions and inboxes; otherwise their CRM access.
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
Matches name or email.
Only agents with access to this module.
chat, crmWith module=chat, send crm to exclude agents who also have CRM access; with module=crm, send chat to exclude agents who also have Chat access.
created_at, name, email, is_online"created_at"asc, desc"desc"1min: 120min: 1max: 100Response
A page of agents.
Show child attributes
False when the agent hasn't verified their email yet.
Show child attributes
Show child attributes
Show child attributes
With module=crm, the number of agents per CRM authority level.
module, sort_by, sort_order, page or limit is invalid.
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/agents/v2' \
--header 'api_key: YOUR_API_KEY'
const response = await fetch('https://api.cekat.ai/api/agents/v2', {
method: 'GET',
headers: { 'api_key': 'YOUR_API_KEY' },
});
const data = await response.json();
console.log(data);
import requests
url = "https://api.cekat.ai/api/agents/v2"
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/agents/v2',
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",
"name": "Jane Doe",
"email": "[email protected]",
"is_verified": true,
"chat": {
"role": "<string>",
"is_active": true,
"divisions": [
{}
],
"inboxes": [
{}
]
},
"crm": {
"is_active": true,
"authority": "<string>",
"role": {}
}
}
],
"pagination": {
"page": 1,
"limit": 1,
"total": 1,
"total_pages": 1
},
"authority_counts": {}
}
{
"success": true,
"message": "<string>",
"statusCode": 1,
"error": {
"message": "<string>"
},
"correlationId": "<string>"
}
{
"success": true,
"message": "<string>",
"statusCode": 1,
"error": {
"message": "<string>"
},
"correlationId": "<string>"
}
{
"message": "<string>"
}