Skip to main content
POST
Create a Helpdesk ticket

Authorizations

Authorization
string
header
required

A workspace API key from Workspace settings > API keys, sent as Authorization: Bearer cl_api_.... A Read only key can call the GET endpoints; every other method needs a Full access key.

Headers

Idempotency-Key
string
required

Between 1 and 128 characters. A retry with the same key and body gets the first answer back and writes nothing; the same key with another body is refused with 409.

Required string length: 1 - 128

Path Parameters

agentId
string
required

Agent ID in the authenticated workspace.

Required string length: 1 - 128

Body

application/json
customer
object
required
description
string
required
Required string length: 1 - 10000
subject
string
required
Required string length: 1 - 500
assigneeEmail
string<email>

An active Helpdesk member email. Do not combine with assigneeId.

Maximum string length: 320
assigneeId
string | null

An active Helpdesk member ID, or null to suppress automatic assignment. Do not combine with assigneeEmail.

Required string length: 1 - 128
customFields
object

Up to 50 active custom fields keyed by field ID. Dropdown values use option IDs. Dates use YYYY-MM-DD.

statusCategory
enum<string>

Uses the agent's default status for this category. Defaults to new. Do not combine with statusId.

Available options:
new,
on_you,
on_customer,
on_hold,
closed,
cancelled
statusId
string

An active status belonging to this agent. Do not combine with statusCategory.

Required string length: 1 - 128
teamId
string

A team belonging to this agent. The default team is used when omitted.

Required string length: 1 - 128

Response

The new or idempotently replayed ticket.

ticketNumber
integer
required
id
string
required
subject
string
required
description
string
required
statusCategory
enum<string>
required
Available options:
new,
on_you,
on_customer,
on_hold,
closed,
cancelled
statusId
string
required
assigneeId
string | null
required
teamId
string | null
required
priority
enum<string>
required
Available options:
none,
low,
normal,
high,
urgent
tags
string[]
required
channel
enum<string>
required

Where the ticket came from. api for one created here.

Available options:
chat_bubble,
email,
whatsapp,
api,
messenger,
instagram,
slack,
center_stage,
phone,
help_desk,
sms
conversationId
string | null
required

The conversation the ticket came from, when there is one.

channelConversationId
string | null
required
customer
object
required
customFields
object
required

Values keyed by field ID. Dropdowns answer the option ID, numbers a string, dates YYYY-MM-DD and images a download link.

createdAt
string<date-time>
required
updatedAt
string<date-time>
required
lastMessageAt
string<date-time> | null
required