Create a ticket
Halaman ini belum tersedia dalam Bahasa Indonesia. Menampilkan bahasa default (English).
Create a ticket
https://api.cekat.ai/api/tickets/createCreates a ticket on a board from one of the board’s templates. status and priority default to the template’s defaults. If the template has a product field, send the products in products.
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
Must belong to board_id.
A status ID from the board. Defaults to the template's default status.
Defaults to the template's default priority.
0, 1, 2, 3Values for the template's fields.
Show child attributes
The field's name from the ticket template.
The value. Its format depends on the field type.
Agent IDs to assign.
Link the ticket to a conversation.
Attachment URLs.
Products, for templates with a product field.
Show child attributes
Response
Ticket created.
A ticket. List responses also include the template, products and conversation. Additional fields may be present.
Show child attributes
The ticket number shown in Cekat.
A status ID from the board's statuses, or done.
0 Low, 1 Medium, 2 High, 3 Urgent.
0, 1, 2, 3Show child attributes
The field's name from the ticket template.
The value. Its format depends on the field type.
Agent IDs assigned to the ticket.
Labels added to the linked conversation by the template, if any.
A required field is missing, the template doesn't belong to the board, no status or priority could be set, or a field value or product 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 POST \
--url 'https://api.cekat.ai/api/tickets/create' \
--header 'api_key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"title": "<string>",
"board_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ticket_template_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
const response = await fetch('https://api.cekat.ai/api/tickets/create', {
method: 'POST',
headers: { 'api_key': 'YOUR_API_KEY', 'Content-Type': 'application/json' },
body: JSON.stringify({
"title": "<string>",
"board_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ticket_template_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
})
});
const data = await response.json();
console.log(data);
import requests
url = "https://api.cekat.ai/api/tickets/create"
headers = {"api_key": "YOUR_API_KEY"}
payload = {
"title": "<string>",
"board_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ticket_template_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
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/tickets/create',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['api_key: YOUR_API_KEY', 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => json_encode([
'title' => '<string>',
'board_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'ticket_template_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]),
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{
"message": "<string>",
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"public_ticket_id": 1,
"board_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ticket_template_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"description": "<string>",
"status": "<string>",
"priority": 0,
"field_values": [
{
"field_name": "example_name",
"field_value": "<string>"
}
],
"assigned_to": [
"<string>"
],
"attachments": [
"<string>"
],
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_by": "<string>",
"created_at": "2026-01-15T09:30:00Z",
"updated_at": "2026-01-15T09:30:00Z"
},
"labels": "<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>"
}