List ticket templates
List ticket templates
此页面暂无中文版本。显示默认语言(English)。
List ticket templates
GET
https://api.cekat.ai/api/ticket_templatesLists your ticket templates with their fields, default status and priority, and board.
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:
100min: 1max: 1000sort_directionstring
Sort by creation date.
Available options:
asc, descdefault:
"desc"Response
200
400
401
429
A page of templates.
messagestring
dataTicketTemplate[]
Show child attributes
idstring<uuid>
Template ID. Use it as ticket_template_id.
namestring
board_idstring<uuid>
typestring | null
default_statusstring | null
Status used when a ticket is created without one.
default_priorityinteger | null
Priority used when a ticket is created without one.
fieldsobject[] | null
The template's custom fields. Send values for them in field_values, using each field's name.
business_idstring<uuid>
created_atstring<date-time>
metadataobject
Show child attributes
paginationPageLimitPagination
Show child attributes
pageinteger
limitinteger
total_datainteger
total_pagesinteger
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/ticket_templates
cURL
JavaScript
Python
PHP
curl --request GET \
--url 'https://api.cekat.ai/api/ticket_templates' \
--header 'api_key: YOUR_API_KEY'
const response = await fetch('https://api.cekat.ai/api/ticket_templates', {
method: 'GET',
headers: { 'api_key': 'YOUR_API_KEY' },
});
const data = await response.json();
console.log(data);
import requests
url = "https://api.cekat.ai/api/ticket_templates"
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/ticket_templates',
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
{
"message": "<string>",
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Jane Doe",
"board_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>",
"default_status": "<string>",
"default_priority": 1,
"fields": [
{}
],
"business_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2026-01-15T09:30:00Z"
}
],
"metadata": {
"pagination": {
"page": 1,
"limit": 1,
"total_data": 1,
"total_pages": 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>"
}