Skip to content
会nokai.studio

Support tickets

Auth: Authorization: Bearer zpk_... required.


POST /v1/support/tickets

Open a new support ticket.

Request body

{
  "subject": "Job stuck in queuing for 10 minutes",
  "category": "bug",
  "severity": "high",
  "description": "Task ID task_01abc... has been in queuing state for over 10 minutes. Expected completion in under 2 minutes based on docs."
}
FieldTypeRequiredNotes
subjectstringyes3-200 chars.
categorystringyesbug or question or feature_request or billing or integration or other
severitystringnolow or medium or high or critical. Defaults to medium.
descriptionstringyes20-2000 chars. Include task IDs, error codes, request IDs.

Response 201

Returns a SupportTicketDetail with the ticket and an empty messages[] array.


GET /v1/support/tickets

List your support tickets.

Response 200

{
  "data": [
    {
      "id": "ticket_uuid",
      "customer_id": "cust_uuid",
      "user_id": "user_uuid",
      "subject": "Job stuck in queuing for 10 minutes",
      "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"
    }
  ]
}

Ticket statuses: open | in_progress | waiting_on_customer | resolved | closed


GET /v1/support/tickets/:id

Get ticket detail including the full message thread.

Response 200

Same as list item plus messages[]:

{
  "messages": [
    {
      "id": "msg_uuid",
      "ticket_id": "ticket_uuid",
      "author_type": "customer",
      "author_id": "user_uuid",
      "body": "Task ID task_01abc... has been in queuing state...",
      "created_at": "2026-05-29T12:00:00Z"
    }
  ]
}

POST /v1/support/tickets/:id/messages

Reply to a ticket.

Request body

{ "body": "Here is the request_id from the error: req_01xyz..." }
FieldRequiredNotes
bodyyes1-4000 chars.

Response 201

Returns the created message.