# Get ticket
You can return specific ticket details.
GET
/tickets/:id/
Attributes | Type | Required | Description |
---|---|---|---|
id | integer | yes | A unique identifier for the ticket which is given by User.com automatically. |
# 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/:id/"
Copied!
# Response
{ "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" } }
Copied!