Skip to main content
This endpoint requires authentication. Only users with the ADMIN, MESA, or AREA role may access it. AREA agents can only retrieve tickets assigned to their own area.

Request

GET /api/tickets/{ticket_id}

Path parameters

ticket_id
string
required
UUID of the ticket to retrieve (e.g. e3b2c1d4-5a6f-7890-abcd-ef1234567890).

Response

Returns a 200 OK with the full ticket detail bundle sourced from fn_ticket_detalle_bundle. The bundle includes the ticket record, requester information, full history log, and any attached notes or responses. The exact shape of the bundle matches the internal service output. Key top-level sections are described below.
ticket
object
required
Core ticket record.
solicitante
object
required
Information about the requester.
historial
object[]
required
Chronological list of all actions taken on this ticket.

Error codes

StatusDescription
401Missing or invalid authentication token.
403Your role does not permit access, or (for AREA agents) the ticket is assigned to a different area.
404No ticket found with the specified UUID.
curl --request GET \
  --url https://api.example.com/api/tickets/e3b2c1d4-5a6f-7890-abcd-ef1234567890 \
  --header 'Authorization: Bearer <your_token>'
{
  "ticket": {
    "uuid": "e3b2c1d4-5a6f-7890-abcd-ef1234567890",
    "label": "TKT-2026-00042",
    "tipo_solicitud": "INCIDENTE",
    "categoria": "Sistemas",
    "subcategoria": "Correo electrónico",
    "asunto": "No puedo acceder al correo corporativo",
    "descripcion": "Desde esta mañana no puedo iniciar sesión en el correo corporativo. El sistema muestra error 403.",
    "estado": "EN_PROCESO",
    "prioridad": "ALTA",
    "area_asignada": "TECNOLOGIA",
    "sla_horas": 4,
    "fecha_limite_sla": "2026-03-24T13:15:00Z",
    "creado_en": "2026-03-24T09:15:00Z",
    "actualizado_en": "2026-03-24T10:30:00Z"
  },
  "solicitante": {
    "nombre": "Ana García",
    "email": "[email protected]",
    "telefono": "3001234567",
    "tieneWhatsapp": true,
    "documento": null,
    "empresaDepartamento": "Recursos Humanos"
  },
  "historial": [
    {
      "fecha": "2026-03-24T10:30:00Z",
      "accion": "CAMBIO_ESTADO",
      "motivo": "Escalado a infraestructura",
      "actor_nombre": "Carlos Méndez",
      "actor_rol": "MESA",
      "estado_antes": "ABIERTO",
      "estado_despues": "EN_PROCESO",
      "prioridad_antes": null,
      "prioridad_despues": null,
      "area_antes": "MESA",
      "area_despues": "TECNOLOGIA"
    }
  ]
}

Build docs developers (and LLMs) love