Models

此页面暂无中文版本。显示默认语言(English)。

Models

The Error object

Error body returned by the /templates endpoints.

Field Type Description
success boolean
status_code integer
error object

The ApiError object

Error body returned by the /api/... endpoints.

Field Type Description
success boolean
message string
statusCode integer
error object
correlationId string Request ID. Include it when contacting Cekat support.

The RateLimitError object

Field Type Description
message string

The Pagination object

Field Type Description
current_page integer
total_page integer
total_items integer

The TemplateInbox object

Field Type Description
id string (uuid)
name string
type string
status string
business_id string (uuid)

The Inbox object

A connected channel (inbox).

Field Type Description
id string (uuid) Inbox ID. Use it as inbox_id in other endpoints.
business_id string (uuid)
name string
description string | null
phone_number string | null The channel’s phone number, for WhatsApp inboxes.
type whatsapp | whatsapp_mobile | livechat | instagram | messenger | tokopedia | shopee | custom_api | instagram_comment | facebook_comment | email | tiktok_business_messaging | google_play_review Channel type.
status active | inactive | processing
is_whatsapp_coexistence boolean | null True when the WhatsApp number is also used in the WhatsApp Business app (coexistence).
auto_reassign boolean | null
ai_agent_id string (uuid) | null AI agent assigned to the inbox, if any.
ai_agent_name string | null
flow_mode boolean | null True when the inbox replies with a flow instead of an AI agent.
flow_id string (uuid) | null
flow_name string | null
created_at string Creation time. ISO 8601 UTC with version=2026-05-22 or later; otherwise Asia/Jakarta local time without an offset.

The Template object

A WhatsApp message template. Additional fields may be present.

Field Type Description
id string (uuid) Cekat’s internal template ID.
created_at string Creation time. See Versioning for the format.
wa_template_id string Meta’s template ID. Use this value to send, delete, or run a campaign with the template.
name string
category AUTHENTICATION | MARKETING | UTILITY
language string
status string Meta review status, for example APPROVED, PENDING, or REJECTED. Only APPROVED templates can be sent.
body string
body_placeholder array of string Sample values for the body variables, as submitted to Meta.
header_type TEXT | DOCUMENT | IMAGE | VIDEO | None
header string | null Header text, for templates with a text header.
file_url string | null URL of the header media, for templates with a media header.
footer string | null
buttons array of object
inbox_id string (uuid)
business_id string (uuid)
inbox TemplateInbox

The RecipientList object

Field Type Description
id string (uuid)
name string
total_contacts integer Number of contacts imported into the list so far.

The CampaignListItem object

Field Type Description
id string (uuid) Campaign ID.
campaign_name string
inbox_id string (uuid)
inbox_name string
template_id string (uuid) Cekat’s internal template ID. This is not the wa_template_id used when creating a campaign.
template_name string
template_category string
recipient_list_id string (uuid)
recipient_list_name string
status scheduled | processing | completed | partially completed | failed
send_at string (date-time) When the campaign starts (or started) sending.
created_at string (date-time)
total_recipient integer Number of recipients the campaign targets.
total integer Number of campaign messages created so far.
sent integer Messages whose latest status is sent.
delivered integer Messages whose latest status is delivered (not yet read).
read integer Messages whose latest status is read.
failed integer Messages that failed to send.
replied integer Recipients who replied after receiving the message.
buttonClicked integer Recipients who tapped a template button.
agentReplied integer Conversations where an agent replied after the campaign message.

The CampaignMessage object

One recipient’s campaign message and what happened to it. Empty strings mean “not available”.

Field Type Description
id string Message ID.
campaign_id string (uuid)
campaign_name string
conversation_id string
phone_number string
name string
message string The text that was sent, with variables filled in.
media_type string
media_url string
template_category string
sent_by string
sent_by_name string
sent_by_type string
created_at string (date-time)
date_sent string When the message was sent; empty if it has not been sent.
last_status string Latest delivery status, for example sent, delivered, read, or failed.
last_status_at string
sent boolean
delivered boolean
read boolean
failed boolean
error string Failure reason when failed is true.
replied boolean
is_replied boolean Same as replied.
button_clicked boolean
agent_replied boolean
first_reply_id string
first_reply_message string
first_reply_sent_by string
first_reply_sent_by_name string
first_reply_media_url string
first_reply_media_type string
first_reply_created_at string

The CampaignMessageLegacy object

Field Type Description
id string
campaign_id string (uuid)
conversation_id string
message string
status string Latest delivery status, for example sent, delivered, read, or failed.
created_at string ISO 8601 UTC with version=2026-05-22 or later; otherwise YYYY-MM-DD HH:mm:ss in Asia/Jakarta time.
media_type string
media_url string | null
sent_by string
sent_by_name string
sent_by_type string
additional_data object Includes the recipient as to_phone and to_name.
error object | null
is_replied boolean
first_reply object | null
business_id string (uuid)

The SentMessage object

Field Type Description
id string (uuid) Message ID.
message string The text that was sent, with variables filled in.
conversation_id string (uuid)
status sent | failed
error string | null Why the message failed, when status is failed.
platform_mid string | null WhatsApp message ID returned by Meta.
media_type string
media_url string | null
is_template boolean
template_id string The template’s wa_template_id.
template_category string
sent_by string ID of the agent the message is sent as.
sent_by_name string
sent_by_type string
additional_data object | null Billing details for the message.
business_id string (uuid)

The TemplateBilling object

Field Type Description
billing_mode string How the message is billed, for example credit_card or credit_line_prepaid.
is_balance_locked boolean True when balance was reserved for this message.
estimated_price number
currency_code string
to_country_code string | null
template_id string
template_category string
inbox_id string (uuid)
wa_business_id string | null
billing_settlement_status string | null
billing_lock_reference_type string | null
billing_lock_reference_id string | null

The CrmConflictError object

Returned when the email or phone number already belongs to another contact.

Field Type Description
statusCode integer
error object

The NamedRef object

Field Type Description
id string (uuid)
name string

The ContactListItem object

Field Type Description
id string (uuid)
contact_name string
email string | null
phone_number string | null
platform_id string | null The contact’s ID on its channel (for example a WhatsApp business-scoped user ID).
username string | null
platform string Channel type, for example whatsapp or instagram.
created_at string (date-time)
additional_data object | null
inboxes array of object Inboxes the contact has conversations in.

The Contact object

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

Field Type Description
id string (uuid)
display_name string
phone_number string | null
country_code string | null
email string | null
type string Channel the contact came from, for example whatsapp.
platform_id string | null
note string | null
additional_data object | null
stage_id string (uuid) | null
agent_id string (uuid) | null The contact owner’s agent ID.
company_id string (uuid) | null
created_at string (date-time)
updated_at string (date-time) | null
created_by_name string
business NamedRef
stage NamedRef
agent NamedRef
pipeline_status NamedRef
company object | null
conversations array of object The contact’s conversations, one per inbox.
crm_column object Custom property values, keyed by property (column) name.

The CrmColumnLabel object

Field Type Description
id string Label ID. Use it as the value for select and dropdown columns.
name string
color string

The CrmColumn object

A board column (field) or contact property.

Field Type Description
id string (uuid)
board_id string (uuid)
name string
type text | long_text | email | phone | number | timeline | date | checkbox | select | dropdown | file | files | reference | references | agents | contacts | conversation | order | orders | companies | subscriptions | item_deals
settings object Type-specific settings. select and dropdown columns list their options in labels.
default_value string | null
is_required boolean
is_visible boolean
is_unique boolean
read_only boolean
position number
created_at string (date-time)
updated_at string (date-time) | null

The CrmGroup object

Field Type Description
id string (uuid)
board_id string (uuid)
name string
color string | null
position number
created_at string (date-time)

The CrmBoard object

Field Type Description
id string (uuid)
name string
business_id string (uuid)
icon string | null
item_display string | null
column_name string Label used for the item name column, for example Item or Deal.
visibility public | private | restricted
position number
type string
created_by object | null The board’s creator. An agent ID in the board list, and an object with id and name in the board details.
created_at string (date-time)
updated_at string (date-time) | null

The CrmBoardDetail object

The CrmItem object

A board item. Each column’s value appears as an extra field named after the column.

Field Type Description
item_id string (uuid)
item_name string
group_id string (uuid)
group_name string
created_at string (date-time)
created_by object | null The agent who created the item, when known.

The CrmItemWriteResult object

Field Type Description
message success | success_with_failures success_with_failures when some column values were rejected. The item is still saved.
failed array of object Column values that were not saved.
data CrmItem

The QnaDocument object

Field Type Description
id string (uuid)
question string
answer string
ai_agent_id string (uuid)
created_at string (date-time)
updated_at string (date-time) | null

The LegacyInbox object

Field Type Description
id string (uuid)
created_at string (date-time)
business_id string (uuid)
name string
description string | null
phone_number string | null
status string
type string
image_url string | null
ai_agent_id string (uuid) | null
ai_agent object | null

The ChatMessage object

A message in a conversation. Additional fields may be present.

Field Type Description
id string
conversation_id string (uuid)
message string | null
sent_by string | null ID of the sender (agent, AI agent, contact or system).
sent_by_name string | null
sent_by_type string Who sent the message, for example user (the contact), agent, api or system.
media_type string | null
media_url string | null
platform_mid string | null The channel’s message ID, for example the WhatsApp message ID.
status string | null Delivery status, for example sent, delivered, read or failed.
is_template boolean | null
created_at string ISO 8601 UTC with version=2026-05-22 or later; otherwise YYYY-MM-DD HH:mm:ss in Asia/Jakarta time.
updated_at string | null
chat_credits_used number | null AI credits used to generate the message, for AI replies.
location object | null
action object | null
additional_data object | null Extra data, such as the ad referral for messages that came from a click-to-WhatsApp ad.
contact object
inbox object

The MessageSnippet object

Field Type Description
message string
created_at string (date-time) | null

The ConversationListItem object

Field Type Description
id string (uuid)
stage_status open | pending | assigned | resolved
inbox_id string (uuid)
inbox_name string
platform_type string
contact_id string (uuid)
contact_name string
contact_phone string | null
contact_platform_id string | null
contact_username string | null
handled_by_id string (uuid) | null The human agent handling the conversation.
handled_by_name string | null
resolved_at string (date-time) | null
resolved_by_id string (uuid) | null
resolved_by_name string | null
created_at string (date-time)
notes string | null The contact’s notes.
additional_data object | null
labels array of object
first_message object
last_message MessageSnippet

The ConversationDetail object

Field Type Description
id string (uuid)
stage_status open | pending | assigned | resolved
notes string | null
labels array of object
pipeline object | null
collaborators array of NamedRef Agents added to the conversation as collaborators.
inbox_id string (uuid)
inbox_name string
platform_type string
contact_id string (uuid)
contact_name string
contact_phone string | null
created_at string (date-time)
resolved_at string (date-time) | null
handled_by_id string (uuid) | null
handled_by_name string | null
resolved_by_id string (uuid) | null
resolved_by_name string | null
additional_data object | null
first_message object
last_message object
last_message_by_human object | null The last message sent by a human agent, if any.

The Agent object

Field Type Description
id string (uuid)
name string
email string
role string
is_online boolean
created_at string Creation time in Asia/Jakarta local time, without an offset.
division array of NamedRef

The AgentV2 object

An agent. Includes chat when module=chat, and crm otherwise.

Field Type Description
id string (uuid)
name string
email string
is_verified boolean False when the agent hasn’t verified their email yet.
chat object
crm object

The OrderProduct object

Field Type Description
id string (uuid)
product_id string (uuid) | null
product_name string
quantity integer
price number

The Invoice object

Field Type Description
id string
status PENDING | PAID | EXPIRED | SETTLED
amount number
payment_link string | null Xendit payment link, for xendit orders.
pdf_link string | null Invoice PDF, or your own invoice URL for custom orders.
is_sent boolean | null
expiry_date string | null
paid_at string | null
created_at string (date-time)

The Order object

An order with its contact, products and invoices. Additional fields may be present.

Field Type Description
id string (uuid)
order_number integer
created_at string (date-time)
order_status pending | processing | shipping | cancelled | completed
payment_method manual | xendit | custom
subtotal number
discount number
shipping_fee number
vat number
grand_total number
currency string | null
address string | null
notes string | null
contact_id string (uuid)
conversation_id string (uuid) | null
contact object
cekat_orders_products array of OrderProduct
invoices array of Invoice The order’s invoices, newest first.

The TicketFieldValue object

Field Type Description
field_name string The field’s name from the ticket template.
field_value object The value. Its format depends on the field type.

The Ticket object

A ticket. List responses also include the template, products and conversation. Additional fields may be present.

Field Type Description
id string (uuid)
public_ticket_id integer The ticket number shown in Cekat.
board_id string (uuid)
ticket_template_id string (uuid)
title string
description string | null
status string A status ID from the board’s statuses, or done.
priority 0 | 1 | 2 | 3 0 Low, 1 Medium, 2 High, 3 Urgent.
field_values array of TicketFieldValue
assigned_to array of string Agent IDs assigned to the ticket.
attachments array of string
conversation_id string (uuid) | null
created_by string | null
created_at string (date-time)
updated_at string (date-time)

The TicketBoard object

Field Type Description
id string (uuid) Board ID. Use it as board_id.
business_id string (uuid)
board_name string
statuses array of object The board’s statuses. Use a status id when creating or updating tickets.
default_template_id string | null
created_at string (date-time)

The TicketTemplate object

Field Type Description
id string (uuid) Template ID. Use it as ticket_template_id.
name string
board_id string (uuid)
type string | null
default_status string | null Status used when a ticket is created without one.
default_priority integer | null Priority used when a ticket is created without one.
fields array of object The template’s custom fields. Send values for them in field_values, using each field’s name.
business_id string (uuid)
created_at string (date-time)

The PageLimitPagination object

Field Type Description
page integer
limit integer
total_data integer
total_pages integer