コンテンツへスキップ
会nokai.studio

サポートチケット

Auth: Authorization: Bearer zpk_... が必要です。


POST /v1/support/tickets

新しいサポートチケットを開きます。

リクエストボディ

{
  "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."
}
フィールド型必須備考
subjectstringはい3-200 文字。
categorystringはいbug または question または feature_request または billing または integration または other
severitystringいいえlow または medium または high または critical。デフォルトは medium。
descriptionstringはい20-2000 文字。task ID、エラーコード、request ID を含めてください。

レスポンス 201

チケットと空の messages[] 配列を含む SupportTicketDetail を返します。


GET /v1/support/tickets

サポートチケットを一覧します。

レスポンス 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"
    }
  ]
}

チケットのステータス: open | in_progress | waiting_on_customer | resolved | closed


GET /v1/support/tickets/:id

完全なメッセージスレッドを含むチケットの詳細を取得します。

レスポンス 200

一覧の項目と同じ内容に加えて 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

チケットに返信します。

リクエストボディ

{ "body": "Here is the request_id from the error: req_01xyz..." }
フィールド必須備考
bodyはい1-4000 文字。

レスポンス 201

作成されたメッセージを返します。