Create a ticket
Creates a support ticket for a user. If the user already has an active ticket, that existing ticket is returned instead of creating a duplicate (create-or-find).
| Query Parameters |
|---|
bot string — REQUIREDThe unique ID of the bot. |
| Request Body — REQUIRED | ||||
|---|---|---|---|---|
requester object — REQUIREDIdentifies the end user. At least one of email, phone, or external_id is required; the first present (in that order) becomes the ticket uid.
| ||||
source string — REQUIREDPossible values: [ Channel the ticket originates from. Required. | ||||
subject stringTicket subject text. Alias | ||||
priority stringPriority. Common aliases are mapped: normal→MEDIUM, urgent→HIGH. Accepted: LOW, MEDIUM, HIGH (or low/normal/high/urgent). | ||||
tags string[]Tags to set on the ticket. Must be an array. | ||||
category stringGroup/category code to assign. Alias | ||||
assignedTo stringAgent to assign the ticket to. Alias | ||||
customFields objectKey-value custom fields. Keys must be configured in the bot's support settings; unknown keys are rejected. The legacy array format ( |
| Responses | ||
|---|---|---|
200An active ticket already exists for this user; the existing ticket is returned.
| ||
201Ticket created.
| ||
400Validation error (missing requester uid, invalid email/phone/source/priority, tags not an array, or an unknown custom-field key).
| ||
401Missing/invalid API key, or the bot is not authorized to use this route.
| ||
429Rate limit exceeded.
| ||
500Internal server error.
|