List recipient lists
List recipient lists
Halaman ini belum tersedia dalam Bahasa Indonesia. Menampilkan bahasa default (English).
List recipient lists
GET
https://api.cekat.ai/api/recipientsLists your recipient lists, newest first, with the number of contacts in each.
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
pageinteger
default:
1min: 1limitinteger
default:
10min: 1max: 500Response
200
400
401
429
A page of recipient lists.
successboolean
dataRecipientList[]
Show child attributes
idstring<uuid>
namestring
total_contactsinteger
Number of contacts imported into the list so far.
metadataobject
Show child attributes
paginationPagination
Show child attributes
current_pageinteger
total_pageinteger
total_itemsinteger
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.
Rate limit exceeded. Wait and retry.
messagestring
GET/api/recipients
cURL
JavaScript
Python
PHP
curl --request GET \
--url 'https://api.cekat.ai/api/recipients' \
--header 'api_key: YOUR_API_KEY'
const response = await fetch('https://api.cekat.ai/api/recipients', {
method: 'GET',
headers: { 'api_key': 'YOUR_API_KEY' },
});
const data = await response.json();
console.log(data);
import requests
url = "https://api.cekat.ai/api/recipients"
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/recipients',
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",
"name": "Jane Doe",
"total_contacts": 1
}
],
"metadata": {
"pagination": {
"current_page": 1,
"total_page": 1,
"total_items": 1
}
}
}
{
"success": true,
"message": "<string>",
"statusCode": 1,
"error": {
"message": "<string>"
},
"correlationId": "<string>"
}
{
"success": true,
"message": "<string>",
"statusCode": 1,
"error": {
"message": "<string>"
},
"correlationId": "<string>"
}
{
"message": "<string>"
}