# Get tickets
You can return a list of all your tickets or return tickets which have specific status.
Parameters names that are possible to get tickets with specifc status are - active, closed, archived and draft.
GET
/tickets/
# Request
- CURL
- JavaScript
- PHP
- Python
curl -X GET -H "Authorization: Token <your_64_char_api_key>"
-H "Accept: */*; version=2"
"https://<your_app_subdomain>.user.com/api/public/tickets/"
# Response
{
"count": 2,
"next": null,
"previous": null,
"results": [
{
"id": 1,
"status": "closed",
"name": "Ticket 1",
"description": "Ticket description",
"created_at": "2020-11-18T08:06:56.871986Z",
"updated_at": "2020-11-18T08:06:56.872014Z",
"due_date": "2020-11-25T00:00:00Z",
"assigned_to": {
"id": 1,
"name": "Agent Bob",
"avatar": "http://some.user.com/static/img/agent.svg"
},
"person": null,
"company": null,
"priority": {
"id": 1,
"name": "High",
"order": 1
},
"participants": [],
"segments": [
{
"name": "Closed",
"url": "/tickets/?segment=13"
}
],
"attachments": null,
"author": {
"id": 1,
"name": "Agent Bob",
"avatar": "http://some.user.com/static/img/agent.svg"
}
},
{
"id": 2,
"status": "active",
"name": "Ticket 2",
"description": "Ticket 2 description",
"created_at": "2020-11-19T08:06:56.871986Z",
"updated_at": "2020-11-19T08:06:56.872014Z",
"due_date": "2020-11-26T00:00:00Z",
"assigned_to": {
"id": 2,
"name": "Agent Alice",
"avatar": "http://some.user.com/static/img/agent.svg"
},
"person": null,
"company": null,
"priority": {
"id": 1,
"name": "High",
"order": 1
},
"participants": [],
"segments": [],
"attachments": null,
"author": {
"id": 1,
"name": "Agent Bob",
"avatar": "http://some.user.com/static/img/agent.svg"
}
}
]
}