Skip to main content
GET/tickets/

Get tickets

You can return a list of all your tickets or return tickets which have specific status.

Returns up to 100 tickets per page. To get the rest, follow next (see Response pagination).

Parameters names that are possible to get tickets with specifc status are - active, closed, archived and draft.

Request​

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

Response examples​

{
"count": 2,
"next": null,
"previous": null,
"results": [
{
"id": 3,
"status": "draft",
"name": "Example name",
"description": "Example description",
"created_at": "2026-06-15T13:46:57.769040Z",
"updated_at": "2026-06-15T13:46:57.769057Z",
"due_date": null,
"assigned_to": ,3 fields
"user_id": null,
"company_id": null,
"priority": null,
"participants": [],
"segments": ,1 item
"attachments": null,
"agent_id": 3 fields
},
{
"id": 2,
"status": "draft",
"name": "Example name",
"description": "Example description",
"created_at": "2025-04-09T11:22:15.307585Z",
"updated_at": "2025-04-09T11:22:15.307608Z",
"due_date": null,
"assigned_to": null,
"user_id": null,
"company_id": null,
"priority": null,
"participants": [],
"segments": ,1 item
"attachments": null,
"agent_id": null
}
]
}

Response fields​

Fields returned in the 200 OK response body.

countinteger
Number of results across all pages. It can lag behind recent changes; see Response pagination.
nextstring (URL)nullable
URL of the next page of results. null on the last page.
previousstring (URL)nullable
URL of the previous page of results. null on the first page.
resultsarray of objects
Results on this page.
results[].idinteger
A unique identifier for the ticket which is given by User automatically.
results[].statusstring
A current status of the ticket (draft, active, closed or archived).
results[].namestring
A ticket name.
results[].descriptionstring
A ticket description.
results[].created_atstring (date-time)
When the ticket was created, ISO 8601.
results[].updated_atstring (date-time)
When the ticket was last updated, ISO 8601.
results[].due_datestringnullable
A date in the future by which the task should be completed. Compliance with ISO 8601 standard format.
results[].assigned_toobjectnullable
A unique identifier for the agent which is given by User automatically.
results[].assigned_to.idinteger
A unique identifier for the ticket which is given by User automatically.
results[].assigned_to.namestring
A ticket name.
results[].assigned_to.avatarstring (URL)
URL of the agent group's avatar; a default image if it has none.
results[].user_idintegernullable
A unique identifier for the user which is given by User automatically.
results[].company_idintegernullable
A unique identifier for the company which is given by User automatically.
results[].priorityobjectnullable
A priority of your ticket.
results[].priority.idinteger
A unique identifier for the ticket which is given by User automatically.
results[].priority.namestring
A ticket name.
results[].priority.orderinteger
Sort position of the priority, up to 1000.
results[].priority.descriptionstringnullable
A ticket description.
results[].participantsarray
A list of users' ids.
results[].segmentsarray of objects
Ticket segments the ticket is in, each with id, name and description.
results[].segments[].idinteger
A unique identifier for the ticket which is given by User automatically.
results[].segments[].namestring
A ticket name.
results[].segments[].descriptionstring
A ticket description.
results[].attachmentsobjectnullable
An attachment for a ticket (gif, jpg, pdf).
results[].agent_idobjectnullable
Agent group of the agent who created the ticket, with id, name and avatar; null if not set.
results[].agent_id.idinteger
A unique identifier for the ticket which is given by User automatically.
results[].agent_id.namestring
A ticket name.
results[].agent_id.avatarstring (URL)
URL of the creator's agent group avatar; a default image if it has none.
note

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