Update a contact

Halaman ini belum tersedia dalam Bahasa Indonesia. Menampilkan bahasa default (English).

Update a contact

PUThttps://api.cekat.ai/api/crm/contact/{contact_id}

Updates a contact’s standard fields and labels. Send only the fields you want to change. To change custom property values, use PUT /api/crm/contact/{id}/property.

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

contact_idstring<uuid>required

Body application/jsonrequired

display_namestring
phone_numberstring
emailstring<email>
notestring
additional_dataobject

Replaces the contact's additional data.

company_idstring<uuid>
stage_idstring<uuid>
contact_owner_idstring<uuid>

Agent ID of the new contact owner. The agent must be active.

label_idsstring<uuid>[]

Contact label IDs to add.

Response

200
400
401
404
409
429

The updated contact.

messagestring
dataContact

A contact with its standard fields, relations and custom property values. Additional fields may be present.

Show child attributes
idstring<uuid>
display_namestring
phone_numberstring | null
country_codestring | null
emailstring | null
typestring

Channel the contact came from, for example whatsapp.

platform_idstring | null
notestring | null
additional_dataobject | null
stage_idstring<uuid> | null
agent_idstring<uuid> | null

The contact owner's agent ID.

company_idstring<uuid> | null
created_atstring<date-time>
updated_atstring<date-time> | null
created_by_namestring
businessNamedRef | null
Show child attributes
idstring<uuid>
namestring
stageNamedRef | null
Show child attributes
idstring<uuid>
namestring
agentNamedRef | null
Show child attributes
idstring<uuid>
namestring
pipeline_statusNamedRef | null
Show child attributes
idstring<uuid>
namestring
companyobject | null
conversationsobject[]

The contact's conversations, one per inbox.

crm_columnobject

Custom property values, keyed by property (column) name.

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 contact, company, stage, owner or label was not found.

successboolean
messagestring
statusCodeinteger
errorobject
Show child attributes
messagestring
correlationIdstring

Request ID. Include it when contacting Cekat support.

The new phone number or email already belongs to another contact.

statusCodeinteger
errorobject
Show child attributes
phone_errorstring
email_errorstring
contact_idstring<uuid>

The existing contact with this email, when the email conflicts.

contact_namestring

Rate limit exceeded. Wait and retry.

messagestring
PUT/api/crm/contact/{contact_id}
cURL
JavaScript
Python
PHP
curl --request PUT \
  --url 'https://api.cekat.ai/api/crm/contact/3c90c3cc-0d44-4b50-8888-8dd25736052a' \
  --header 'api_key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "display_name": "Jane Doe",
  "phone_number": "6281234567890",
  "email": "[email protected]",
  "note": "<string>",
  "additional_data": {},
  "company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "stage_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "contact_owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "label_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ]
}'
const response = await fetch('https://api.cekat.ai/api/crm/contact/3c90c3cc-0d44-4b50-8888-8dd25736052a', {
  method: 'PUT',
  headers: { 'api_key': 'YOUR_API_KEY', 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "display_name": "Jane Doe",
    "phone_number": "6281234567890",
    "email": "[email protected]",
    "note": "<string>",
    "additional_data": {},
    "company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "stage_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "contact_owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "label_ids": [
      "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    ]
  })
});

const data = await response.json();
console.log(data);
import requests

url = "https://api.cekat.ai/api/crm/contact/3c90c3cc-0d44-4b50-8888-8dd25736052a"
headers = {"api_key": "YOUR_API_KEY"}
payload = {
    "display_name": "Jane Doe",
    "phone_number": "6281234567890",
    "email": "[email protected]",
    "note": "<string>",
    "additional_data": {},
    "company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "stage_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "contact_owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "label_ids": [
        "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    ]
}

response = requests.put(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/3c90c3cc-0d44-4b50-8888-8dd25736052a',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_CUSTOMREQUEST => 'PUT',
  CURLOPT_HTTPHEADER => ['api_key: YOUR_API_KEY', 'Content-Type: application/json'],
  CURLOPT_POSTFIELDS => json_encode([
    'display_name' => 'Jane Doe',
    'phone_number' => '6281234567890',
    'email' => '[email protected]',
    'note' => '<string>',
    'additional_data' => [],
    'company_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
    'stage_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
    'contact_owner_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
    'label_ids' => ['3c90c3cc-0d44-4b50-8888-8dd25736052a']
  ]),
]);

$response = curl_exec($curl);
curl_close($curl);
echo $response;
Response
200
400
401
404
409
429
{
  "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>"
}