Skip to main content
GET/tickets/:id/

Get ticket

You can return specific ticket details.

Attributes

Optional unless marked required

idintegerrequired
A unique identifier for the ticket which is given by User automatically.

Request​

curl -X GET "https://<your_app_subdomain>.user.com/api/public/tickets/:id/" \
-H "Authorization: Token <your_64_char_api_key>" \
-H "Accept: */*; version=2"

Response examples​

{
"id": 398,
"status": "draft",
"name": "Login page error",
"description": "Login page error: reported through the REST API.",
"created_at": "2026-11-10T13:24:16.935160Z",
"updated_at": "2026-11-10T13:24:16.935173Z",
"due_date": "2026-11-24T13:24:16Z",
"assigned_to": {
"id": 9,
"name": "Jane Agent",
"avatar": "https://<your_app_subdomain>.user.com/avatars/Roman_yAGMXC4.jpg"
},
"user_id": {
"id": 1909,
"name": "jane-doe",
"avatar": null
},
"company_id": {
"id": 778,
"name": "Northwind Traders"
},
"priority": {
"id": 1,
"name": "High",
"order": 1,
"description": null
},
"participants": [],
"segments": [],
"attachments": null,
"agent_id": null
}

Response fields​

Fields returned in the 200 OK response body.

idinteger
A unique identifier for the ticket which is given by User automatically.
statusstring
A current status of the ticket (draft, active, closed or archived).
namestring
A ticket name.
descriptionstring
A ticket description.
created_atstring (date-time)
When the ticket was created, ISO 8601.
updated_atstring (date-time)
When the ticket was last updated, ISO 8601.
due_datestring (date-time)
A date in the future by which the task should be completed. Compliance with ISO 8601 standard format.
assigned_toobject
A unique identifier for the agent which is given by User automatically.
assigned_to.idinteger
A unique identifier for the ticket which is given by User automatically.
assigned_to.namestring
A ticket name.
assigned_to.avatarstring (URL)
URL of the agent group's avatar; a default image if it has none.
user_idobject
A unique identifier for the user which is given by User automatically.
user_id.idinteger
A unique identifier for the ticket which is given by User automatically.
user_id.namestring
A ticket name.
user_id.avatarstring (URL)nullable
URL of the contact's avatar, or null if there is none.
company_idobject
A unique identifier for the company which is given by User automatically.
company_id.idinteger
A unique identifier for the ticket which is given by User automatically.
company_id.namestring
A ticket name.
priorityobject
A priority of your ticket.
priority.idinteger
A unique identifier for the ticket which is given by User automatically.
priority.namestring
A ticket name.
priority.orderinteger
Sort position of the priority, up to 1000.
priority.descriptionstringnullable
A ticket description.
participantsarray
A list of users' ids.
segmentsarray
Ticket segments the ticket is in, each with id, name and description.
attachmentsobjectnullable
An attachment for a ticket (gif, jpg, pdf).
agent_idobjectnullable
Agent group of the agent who created the ticket, with id, name and avatar; null if not set.
note

Errors that can come from any endpoint (401, 429, 500, 502, 504) are described in HTTP response codes.