Account
Auth: 需要 Authorization: Bearer zpk_...。
GET /v1/me
返回已认证的用户资料和账户套餐。
Response 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
更新资料偏好设置。
Request body
{
"locale": "en",
"theme": "dark"
}| 字段 | 取值 | 备注 |
|---|---|---|
locale | "en" 或 "pt-BR" 或 "es" | |
theme | "system" 或 "light" 或 "dark" |
Response 200
{
"user": {
"id": "user_uuid",
"locale": "en",
"theme": "dark"
}
}DELETE /v1/me/account
永久删除账户及所有关联数据(API keys、jobs、webhooks)。不可恢复。
Request body
{
"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 字符。 |
Response 204
无内容。账户已删除。