Skip to main content
GET
/
api
/
tickets
/
{codigo}
Get Ticket by Code
curl --request GET \
  --url https://api.example.com/api/tickets/{codigo}
{
  "IdTicket": "<string>",
  "Codigo": "<string>",
  "Titulo": "<string>",
  "Descripcion": "<string>",
  "Area": "<string>",
  "Prioridad": "<string>",
  "Estado": "<string>",
  "FechaCreacion": "<string>",
  "FechaActualizacion": "<string>"
}

Authentication

This endpoint requires JWT authentication. Include the bearer token in the Authorization header.
Authentication is currently commented out in the controller but should be enabled in production.

Path Parameters

codigo
string
required
The tracking code of the ticket to retrieve

Response

Returns a single ticket object with detailed information.
IdTicket
string
Unique identifier (GUID) for the ticket
Codigo
string
Tracking code for the ticket
Titulo
string
Title of the ticket
Descripcion
string
Detailed description of the ticket
Area
string
Name of the area/department
Prioridad
string
Priority level name
Estado
string
Current status name
FechaCreacion
string
Timestamp when the ticket was created (ISO 8601 format)
FechaActualizacion
string
Timestamp when the ticket was last updated (ISO 8601 format)

Example Request

curl -X GET https://api.example.com/api/tickets/TKT-2024-001234 \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"

Example Response

200 - Success
{
  "IdTicket": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
  "Codigo": "TKT-2024-001234",
  "Titulo": "Cannot access dashboard",
  "Descripcion": "I am unable to log into the dashboard. The page returns a 500 error.",
  "Area": "Technical Support",
  "Prioridad": "High",
  "Estado": "Open",
  "FechaCreacion": "2024-03-15T10:30:00Z",
  "FechaActualizacion": "2024-03-15T10:30:00Z"
}
404 - Not Found
{
  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.4",
  "title": "Not Found",
  "status": 404
}
401 - Unauthorized
{
  "type": "https://tools.ietf.org/html/rfc7235#section-3.1",
  "title": "Unauthorized",
  "status": 401
}

Build docs developers (and LLMs) love