控制台账户 API
用控制台账户 API 管理 SIWE 登录后的身份、API key、套餐、余额、用量与充值记录,可查询或调整套餐以及账户设置,账户请求需带 SIWE 返回的会话令牌,产品接口不依赖这些接口。
这些是控制台账户管理接口。产品接口(JSON-RPC、Data API 与 WebSocket)不依赖它们。查询或管理账户时,使用 SIWE 登录返回的会话令牌。
接口一览
Auth
| 方法 | 路径 | 说明 |
|---|---|---|
| POST | /auth/siwe/challenge | Get SIWE message |
| POST | /auth/siwe/login | SIWE login (first login creates account) |
| POST | /auth/logout | Log out current session |
Me
| 方法 | 路径 | 说明 |
|---|---|---|
| GET | /me | Current username, identity list, and current session |
| PATCH | /me | Update username |
| POST | /me/identities/siwe | Link wallet |
| POST | /me/identities/oauth | Link GitHub or Google identity using login code |
| DELETE | /me/identities/{identity_id} | Unlink identity |
Keys
| 方法 | 路径 | 说明 |
|---|---|---|
| GET | /keys | List API keys |
| POST | /keys | Create key (secret displayed only once) |
| GET | /keys/{key_id} | Single key |
| PATCH | /keys/{key_id} | Rename key |
| POST | /keys/{key_id}/rotate | Rotate key (new secret displayed only once) |
| POST | /keys/{key_id}/revoke | Revoke key (idempotent) |
Billing
| 方法 | 路径 | 说明 |
|---|---|---|
| GET | /plans | Plan policies and pricing parameters |
| GET | /balance | Balance and settlement cutoff timestamp |
| GET | /charges | Charge records (paginated) |
| GET | /topups | Top-up records (paginated) |
| GET | /usage | Calls and CU usage grouped by UTC date, API key, chain, and method |
| GET | /resets | Reset chances |
| POST | /resets/use | Use one reset chance |
最后更新: