Fetch a single support ticket by its auto-incremented numeric ID. Use this endpoint to display full ticket details in the Admin Dashboard, poll for status changes after creation, or retrieve the AI-generated response for display to the customer.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/yocxy2/2a/llms.txt
Use this file to discover all available pages before exploring further.
Request
GET /api/v1/tickets/:id
Path Parameters
The ticket’s numeric ID. This is the
id value returned when the ticket was created via POST /api/v1/tickets. Must be a valid integer — non-integer values will result in a database lookup for NaN and typically return 404.Example
Response (200 OK)
Returns a single Ticket object.Auto-incremented ticket ID.
The original customer problem description submitted at creation time.
AI-assigned support category. One of:
Billing, Technical, Shipping, Returns, Account, or Other. null if classification has not yet run.GPT-4o-mini response enriched with knowledge base article snippets and GraphRAG entity context.
null if classification has not yet run.AI classification confidence between
0.0 and 1.0. Tickets with score ≥ 0.7 are auto-resolved.Current lifecycle status:
ai_resolved, pending_agent, or closed.ISO 8601 UTC timestamp recording when the ticket was first created.
ISO 8601 UTC timestamp of the most recent update to this ticket.
Example Response
Error Responses
| HTTP Status | Condition |
|---|---|
404 Not Found | No ticket with the given ID exists in the database. Response: {"error": "Ticket not found"} |
500 Internal Server Error | A database error or other unhandled server-side failure occurred. Response: {"error": "Internal server error"} |