Create a ticket
Creates a ticket on behalf of a customer. Unless an assignee is provided, the ticket is auto-assigned via the agent’s routing rules.
Authorizations
API key from your account settings
Path Parameters
The agent ID
1"5QHA6VB-DIAbBhxwqxfdi"
Body
Ticket subject (1-500 characters)
1 - 500"Export failing with 500"
The first message body, written as a reply authored by the customer (1-10,000 characters)
1 - 10000"Customer cannot export orders."
ID of an existing status for this agent. Provide at most one of statusId / statusCategory.
Status category; resolves to that category's default status. Provide at most one of statusId / statusCategory. Defaults to the "new" category default when neither is provided.
new, on_you, on_customer, on_hold, closed, cancelled "new"
Platform user id of the agent to assign. Provide at most one of assigneeId / assigneeEmail. Pass null to explicitly create the ticket unassigned (suppresses auto-assignment); omit to let auto-assignment apply.
Email of the agent to assign (case-insensitive). Provide at most one of assigneeId / assigneeEmail.
"sam@example.com"
ID of an existing team for this agent. When provided without any assignee field, an agent is picked within this team using the team's own assignment strategy, and routing rules are skipped. When provided together with assigneeId/assigneeEmail, including assigneeId: null, no auto-assignment runs and the team is written as given.
Response
The created ticket
The ticket number
123
Ticket subject
Ticket description
Status category driving color/ordering semantics
new, on_you, on_customer, on_hold, closed, cancelled "on_customer"
ID of the ticket status. Resolve label/color via /ticket-statuses.
ID of the assigned agent user, or null when unassigned
Arbitrary extra fields captured on the ticket
Channel the ticket originated from
helpdesk, iframe, email, whatsapp, api, messenger, instagram, center_stage, phone "email"
ID of the linked conversation, if any
ID of the assigned team, or null. Resolve via /teams.
ISO 8601 creation timestamp
"2026-07-20T12:34:56.000Z"
ISO 8601 timestamp of the last update
"2026-07-21T09:00:00.000Z"
ISO 8601 timestamp of the most recent message, or null if the ticket has no messages
"2026-07-21T08:55:00.000Z"
