Console API
Account, API key, balance, and usage management.
Overview
The Console API provides REST endpoints for account management, authentication (SIWE / GitHub / Google), API key lifecycle, balance queries, usage tracking, and payment records.
Status: The console is under development and will ship in Phase 3.
- Base URL:
https://dev-console-api.blockvectra.network - Protocol: HTTP REST, JSON request/response
- Authentication: Bearer token (session tokens via SIWE / GitHub / Google)
- Rate limits: Vary by endpoint and dimension — auth endpoints are limited by IP, session-required endpoints by user, new signups by a global counter, and key creation/rotation by account. See each endpoint's limit in the reference below
Until the console ships, see Quickstart → Get an API key for how to get access today.
This content is sourced from upstream and is currently available in Chinese only.
Auth
| Method | Path | Summary |
|---|---|---|
| POST | /auth/siwe/challenge | 取 SIWE 消息 |
| POST | /auth/siwe/login | SIWE 登录(首次登录即开户) |
| GET | /auth/{provider}/start | 发起 OAuth 登录(浏览器,302 到 IdP) |
| GET | /auth/{provider}/callback | OAuth 回调(浏览器,302 到 return_to) |
| POST | /auth/oauth/token | 用 login code 换会话(首次登录即开户) |
| POST | /auth/logout | 登出当前会话 |
| POST | /auth/logout-all | 登出该用户的全部会话 |
Me
| Method | Path | Summary |
|---|---|---|
| GET | /me | 当前用户、账户号、身份列表与当前会话 |
| POST | /me/identities/siwe | 绑定钱包 |
| POST | /me/identities/oauth | 用 login code 绑定 GitHub 或 Google 身份 |
| DELETE | /me/identities/{identity_id} | 解绑身份 |
Keys
| Method | Path | Summary |
|---|---|---|
| GET | /keys | key 列表 |
| POST | /keys | 创建 key(secret 只显示一次) |
| GET | /keys/{key_id} | 单个 key |
| PATCH | /keys/{key_id} | 改名 |
| POST | /keys/{key_id}/rotate | 轮换(新 secret 只显示一次) |
| POST | /keys/{key_id}/revoke | 吊销(幂等) |
Billing
| Method | Path | Summary |
|---|---|---|
| GET | /balance | 余额、结算截止时刻与充值联系方式 |
| GET | /charges | 扣费记录(分页) |
| GET | /topups | 充值记录(分页) |
| GET | /usage | 按 UTC 日、按 key 统计的调用数与 CU |