Create a ticket
POST/api/v1/ticketstickets:write
Filed on the requester's behalf by the key's creator, with the body as its first public message. Counts toward the plan's tickets per month.
Parameters
Idempotency-Keyheader, string
Retry safely: the same key and request within 24 hours replays the first answer.
201: The new ticket. (Ticket)
Fields
idstring (uuid)required
numberintegerrequired
subjectstringrequired
status"new" | "open" | "pending" | "on_hold" | "solved" | "closed" | "spam" | "deleted"required
priority"low" | "normal" | "high" | "urgent"required
type"question" | "incident" | "problem" | "task"required
channel"web" | "email" | "portal" | "api"required
urlstring (uri)required
The ticket in the agent workspace.
requesterobjectrequired
assigneeobject | nullrequired
idstring (uuid)required
namestringrequired
teamobject | nullrequired
idstring (uuid)required
namestringrequired
tagsstring[]required
custom_fieldsobject[]required
created_atstring (date-time)required
updated_atstring (date-time)required
Errors
400 The request is malformed or fails validation.401 Missing, malformed, unknown or revoked API key.403 The key lacks the scope, or the plan does not include the API.409 Conflicts with the current state, or an Idempotency-Key still in use.413 The body is over 262144 bytes.415 The body is not application/json.422 Well formed but not allowed: a rule of the workspace refuses it.429 Over the daily or per-minute limit. See Retry-After.
Update a ticket
PATCH/api/v1/tickets/{number}tickets:write
Status, priority, assignee and team; send only what changes. Changing the assignee or team needs a creator whose role may assign tickets.
Parameters
numberpath, integerrequired
1 to 2147483647.
Idempotency-Keyheader, string
Retry safely: the same key and request within 24 hours replays the first answer.
Body
status"open" | "pending" | "on_hold" | "solved"
priority"low" | "normal" | "high" | "urgent"
assignee_idstring (uuid) | null
team_idstring (uuid) | null
200: The ticket as it is now. (Ticket)
Fields
idstring (uuid)required
numberintegerrequired
subjectstringrequired
status"new" | "open" | "pending" | "on_hold" | "solved" | "closed" | "spam" | "deleted"required
priority"low" | "normal" | "high" | "urgent"required
type"question" | "incident" | "problem" | "task"required
channel"web" | "email" | "portal" | "api"required
urlstring (uri)required
The ticket in the agent workspace.
requesterobjectrequired
assigneeobject | nullrequired
idstring (uuid)required
namestringrequired
teamobject | nullrequired
idstring (uuid)required
namestringrequired
tagsstring[]required
custom_fieldsobject[]required
created_atstring (date-time)required
updated_atstring (date-time)required
Errors
400 The request is malformed or fails validation.401 Missing, malformed, unknown or revoked API key.403 The key lacks the scope, or the plan does not include the API.404 Not found, including anything that belongs to another workspace.409 Conflicts with the current state, or an Idempotency-Key still in use.413 The body is over 262144 bytes.415 The body is not application/json.422 Well formed but not allowed: a rule of the workspace refuses it.429 Over the daily or per-minute limit. See Retry-After.
Add a reply or note
POST/api/v1/tickets/{number}/messagestickets:write
A public reply (emailed to the requester and CCs, as from the agent workspace) or an internal note, written as the key's creator.
Parameters
numberpath, integerrequired
1 to 2147483647.
Idempotency-Keyheader, string
Retry safely: the same key and request within 24 hours replays the first answer.
201: The new message. (Message)
Fields
idstring (uuid)required
visibility"public" | "internal"required
author_type"agent" | "contact" | "system" | "api"required
author_namestringrequired
body_textstringrequired
created_atstring (date-time)required
attachmentsobject[]required
Errors
400 The request is malformed or fails validation.401 Missing, malformed, unknown or revoked API key.403 The key lacks the scope, or the plan does not include the API.404 Not found, including anything that belongs to another workspace.409 Conflicts with the current state, or an Idempotency-Key still in use.413 The body is over 262144 bytes.415 The body is not application/json.422 Well formed but not allowed: a rule of the workspace refuses it.429 Over the daily or per-minute limit. See Retry-After.