Tickets de soporte
Auth: Authorization: Bearer zpk_... requerido.
POST /v1/support/tickets
Abre un nuevo ticket de soporte.
Cuerpo de la solicitud
{
"subject": "Job bloqueado en queuing por 10 minutos",
"category": "bug",
"severity": "high",
"description": "El task ID task_01abc... lleva más de 10 minutos en estado queuing. Se esperaba completar en menos de 2 minutos según la documentación."
}| Campo | Tipo | Requerido | Notas |
|---|---|---|---|
subject | string | sí | 3-200 chars. |
category | string | sí | bug o question o feature_request o billing o integration o other |
severity | string | no | low o medium o high o critical. Por defecto: medium. |
description | string | sí | 20-2000 chars. Incluye task IDs, códigos de error, request IDs. |
Respuesta 201
Devuelve un SupportTicketDetail con el ticket y un array messages[] vacío.
GET /v1/support/tickets
Lista tus tickets de soporte.
Respuesta 200
{
"data": [
{
"id": "ticket_uuid",
"customer_id": "cust_uuid",
"user_id": "user_uuid",
"subject": "Job bloqueado en queuing por 10 minutos",
"category": "bug",
"severity": "high",
"status": "open",
"description": "...",
"last_message_at": null,
"message_count": 0,
"created_at": "2026-05-29T12:00:00Z",
"updated_at": "2026-05-29T12:00:00Z"
}
]
}Estados de ticket: open | in_progress | waiting_on_customer | resolved | closed
GET /v1/support/tickets/:id
Obtiene el detalle del ticket incluyendo el hilo completo de mensajes.
Respuesta 200
Mismo formato que el elemento de listado más messages[]:
{
"messages": [
{
"id": "msg_uuid",
"ticket_id": "ticket_uuid",
"author_type": "customer",
"author_id": "user_uuid",
"body": "El task ID task_01abc... lleva en estado queuing...",
"created_at": "2026-05-29T12:00:00Z"
}
]
}POST /v1/support/tickets/:id/messages
Responde a un ticket.
Cuerpo de la solicitud
{ "body": "Aquí está el request_id del error: req_01xyz..." }| Campo | Requerido | Notas |
|---|---|---|
body | sí | 1-4000 chars. |
Respuesta 201
Devuelve el mensaje creado.