Skip to main content
This endpoint requires authentication. Include a valid Bearer token in the Authorization header.

Request

GET /api/tickets/dashboard No request body or query parameters. The response is automatically filtered based on the role and area stored in your JWT token.

Role-based filtering

RoleTickets returned
ADMINAll tickets across all areas.
MESAAll tickets across all areas.
AREAOnly tickets assigned to your area.
Results are sourced from the database function fn_dashboard_tickets_full_filtrado.

Response

Returns a 200 OK with an array of ticket summary objects.
ticket_uuid
string
required
Internal UUID of the ticket.
label
string
required
Human-readable ticket reference (e.g. TKT-2026-00042).
categoria
string
required
Category the ticket was filed under.
correo
string
required
Email address of the requester.
estado_code
string
required
Current status code of the ticket (e.g. ABIERTO, EN_PROCESO, CERRADO).
prioridad_nom
string
required
Name of the ticket’s priority level.
area_asignada
string
required
Name of the area the ticket is currently assigned to.
actualizado_en
string
required
ISO 8601 timestamp of the last update to the ticket.
sla_horas
number
required
Total SLA hours allocated to this ticket based on its priority.
horas_restantes
number
required
Floating-point number of hours remaining before the SLA deadline. Negative values indicate an overdue ticket.
vencido
boolean
required
true if the SLA deadline has passed, false otherwise.

Error codes

StatusDescription
401Missing or invalid authentication token.
curl --request GET \
  --url https://api.example.com/api/tickets/dashboard \
  --header 'Authorization: Bearer <your_token>'
[
  {
    "ticket_uuid": "e3b2c1d4-5a6f-7890-abcd-ef1234567890",
    "label": "TKT-2026-00042",
    "categoria": "Sistemas",
    "correo": "[email protected]",
    "estado_code": "EN_PROCESO",
    "prioridad_nom": "ALTA",
    "area_asignada": "TECNOLOGIA",
    "actualizado_en": "2026-03-24T10:30:00Z",
    "sla_horas": 4,
    "horas_restantes": 2.75,
    "vencido": false
  },
  {
    "ticket_uuid": "a1b2c3d4-e5f6-7890-abcd-000000000001",
    "label": "TKT-2026-00039",
    "categoria": "Facturación",
    "correo": "[email protected]",
    "estado_code": "ABIERTO",
    "prioridad_nom": "MEDIA",
    "area_asignada": "MESA",
    "actualizado_en": "2026-03-23T16:00:00Z",
    "sla_horas": 8,
    "horas_restantes": -1.5,
    "vencido": true
  }
]

Build docs developers (and LLMs) love