List the agent's ticket fields
GET/v1/agents/:agentId/ticket-fields
x-scope: "tickets:read"
The agent's ticket form in display order. The field keyed status lists the agent's
ticket statuses as its options: one with final: true is a closing status, which
resolves a ticket (sets resolved_at), and new, where every ticket starts, can't be
removed. If the list has no status field, or that field has no options, the agent uses
new, in_progress, waiting_customer, resolved and cancelled. priority lists
normal and urgent. Fields with built_in: false are the ones your team added; their
keys are what custom_fields is for, and createTicketField, updateTicketField and
deleteTicketField change them. Of the built-in fields, which the API can't change,
description, category, priority and status are the ticket's writable properties,
assigned_to is set with assignTicket, number, created_at and resolved_at are
read-only, and notes is the contact's timeline (listContactNotes). A value written to
a number, currency, boolean, date, datetime or timestamp field must fit that
type (422 invalid_request); keys, options and required are not checked, so validate
those before you write.
Request
Responses
- 200
- 401
- 403
- 404
- 429
- 500
- 503
Every ticket field.
Response Headers
Correlation id for this request — paste into support tickets.
Authentication failed. Single code (invalid_api_key) covers every
sub-case: missing header, wrong scheme, malformed, unknown, revoked or
expired key. The message field disambiguates for humans debugging.
One exception: when the key could not be checked because of a server-side
fault, the status is still 401 but type is internal_error and code
is internal_server_error; retry with backoff.
Response Headers
Correlation id for this request — paste into support tickets.
Authenticated, but not allowed: insufficient_scope (the key lacks the scope in this
operation's x-scope) or agent_not_authorized (the key is limited to other agents).
Response Headers
Correlation id for this request — paste into support tickets.
agent_not_found when the agent is not one of your company's agents (the API never confirms
whether another company's agent exists); endpoint_not_found for a path or method no
endpoint serves, including an id that is not a UUID.
Response Headers
Correlation id for this request — paste into support tickets.
Per-key rate limit hit. Default is 60/min/key; an endpoint with an
x-rate-limit-per-minute of its own counts in a budget of its own
(today the WhatsApp template endpoints, sendBroadcast, retryBroadcast, inviteMember,
resendInvitation, uploadAttachmentMedia, importAttachmentMedia, createUpload and
importSavedReplyMedia, which share one that allows 10/min/key,
sendConversationMessage, which allows 20/min/key; putUploadContent takes no key and
allows the default 60/min per IP address), and its 429
reports that limit in X-RateLimit-Limit. Retry-After tells you when to retry;
X-RateLimit-Reset is the Unix timestamp of the next window.
Per-success-response
X-RateLimit-*headers are a known gap; on 2xx responses these headers are NOT currently emitted. Customers should rely on 429 +Retry-Afterfor backoff signals.
Response Headers
Correlation id for this request — paste into support tickets.
Seconds to wait before retrying.
The per-minute request limit of the endpoint called. Every key has the same limits today.
Remaining requests in the current window. 0 on rejection.
Unix timestamp at which the current window resets.
Unexpected server-side failure. Retry with exponential backoff. If
the failure persists, send us the correlation_id.
Response Headers
Correlation id for this request — paste into support tickets.
Mojeeb couldn't check access because of a temporary fault: the key's,
or on assignLead and assignConversation the teammate's. Nothing was
changed. Retry with backoff.
Response Headers
Correlation id for this request — paste into support tickets.