Skip to main content
GET
/
api
/
tickets
List Tickets
curl --request GET \
  --url https://api.example.com/api/tickets
{
  "tickets": [
    {
      "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.

Response

Returns an array of ticket objects with detailed information including area, priority, and status names.
tickets
array
Array of ticket objects

Example Request

curl -X GET https://api.example.com/api/tickets \
  -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"
  },
  {
    "IdTicket": "8d4f7780-8536-51ef-c4gd-3d184e2a01bf8",
    "Codigo": "TKT-2024-001235",
    "Titulo": "Feature request: Dark mode",
    "Descripcion": "Would like to have a dark mode option in the application.",
    "Area": "Product",
    "Prioridad": "Low",
    "Estado": "In Progress",
    "FechaCreacion": "2024-03-14T14:20:00Z",
    "FechaActualizacion": "2024-03-15T09:15:00Z"
  }
]
401 - Unauthorized
{
  "type": "https://tools.ietf.org/html/rfc7235#section-3.1",
  "title": "Unauthorized",
  "status": 401
}

Build docs developers (and LLMs) love