Create a contact
此页面暂无中文版本。显示默认语言(English)。
Create a contact
https://api.cekat.ai/api/crm/contactCreates a contact. Phone numbers and email addresses must be unique within your business; a duplicate returns 409 with the existing contact’s details.
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.
Body application/jsonrequired
7 to 15 digits including the country code, optionally starting with +. Must not start with 0.
Free-form extra data saved on the contact.
Pipeline stage ID.
Agent ID of the contact owner. The agent must be active.
Contact label IDs to add.
Custom property values. Columns with a default value are filled in automatically when left out.
Show child attributes
The value, in the format for the column's type. See Board for value formats.
Response
Contact created.
Show child attributes
Channel the contact came from, for example whatsapp.
The contact owner's agent ID.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
The contact's conversations, one per inbox.
Custom property values, keyed by property (column) name.
A required field is missing, the phone number is invalid, or a value 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.
The company, stage, owner or label was not found.
Show child attributes
Request ID. Include it when contacting Cekat support.
The phone number or email already belongs to a contact.
Show child attributes
The existing contact with this email, when the email conflicts.
Rate limit exceeded. Wait and retry.
curl --request POST \
--url 'https://api.cekat.ai/api/crm/contact' \
--header 'api_key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"display_name": "Jane Doe",
"phone_number": "6281234567890"
}'
const response = await fetch('https://api.cekat.ai/api/crm/contact', {
method: 'POST',
headers: { 'api_key': 'YOUR_API_KEY', 'Content-Type': 'application/json' },
body: JSON.stringify({
"display_name": "Jane Doe",
"phone_number": "6281234567890"
})
});
const data = await response.json();
console.log(data);
import requests
url = "https://api.cekat.ai/api/crm/contact"
headers = {"api_key": "YOUR_API_KEY"}
payload = {
"display_name": "Jane Doe",
"phone_number": "6281234567890"
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.cekat.ai/api/crm/contact',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['api_key: YOUR_API_KEY', 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => json_encode([
'display_name' => 'Jane Doe',
'phone_number' => '6281234567890'
]),
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{
"message": "<string>",
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"display_name": "Jane Doe",
"phone_number": "6281234567890",
"country_code": "<string>",
"email": "[email protected]",
"type": "<string>",
"platform_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"note": "<string>",
"additional_data": {},
"stage_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2026-01-15T09:30:00Z",
"updated_at": "2026-01-15T09:30:00Z",
"created_by_name": "example_name",
"business": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Jane Doe"
},
"stage": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Jane Doe"
},
"agent": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Jane Doe"
},
"pipeline_status": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Jane Doe"
},
"company": {},
"conversations": [
{}
],
"crm_column": {}
}
]
}
{
"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>"
}
{
"statusCode": 1,
"error": {
"phone_error": "6281234567890",
"email_error": "[email protected]",
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"contact_name": "Jane Doe"
}
}
{
"message": "<string>"
}