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

アカウント

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


GET /v1/me

認証済みユーザーのプロフィールとアカウントのプランを返します。

レスポンス 200

{
  "user": {
    "id": "user_uuid",
    "email": "you@example.com",
    "display_name": "Your Name",
    "locale": "en",
    "theme": "system",
    "created_at": "2026-01-01T00:00:00Z"
  },
  "customer": {
    "id": "cust_uuid",
    "name": "Your Company",
    "plan": "starter",
    "trial_ends_at": null,
    "created_at": "2026-01-01T00:00:00Z"
  }
}

プラン: trial | starter | pro | gated


PATCH /v1/me

プロフィールの設定を更新します。

リクエストボディ

{
  "locale": "en",
  "theme": "dark"
}
フィールド値備考
locale"en" または "pt-BR" または "es"
theme"system" または "light" または "dark"

レスポンス 200

{
  "user": {
    "id": "user_uuid",
    "locale": "en",
    "theme": "dark"
  }
}

DELETE /v1/me/account

アカウントおよび関連するすべてのデータ(API キー、jobs、webhooks)を完全に削除します。取り消せません。

リクエストボディ

{
  "reason_code": "just_testing",
  "reason_freetext": "Optional freetext reason."
}
フィールド必須値
reason_codeはいtoo_expensive または missing_feature または too_complex または found_alternative または no_longer_needed または just_testing または other
reason_freetextいいえ最大 2000 文字。

レスポンス 204

コンテンツなし。アカウントは削除されました。