OpenAPI & Automation Integration
rsk_ Token ActiveAuthenticate with your Bearer token (rsk_...) to programmatically manage client API keys, query live wholesale balances, and batch-mint redeem codes.
M2M Access Token Management
Active Token Prefix
rsk_demo_****
Token Issued At
2026-11-18 14:15
Last API Request
2026-12-04 16:52
Quickstart Verification
cURL · Balance Check
curl -sS "https://reseller.qcode.cc/api/v1/reseller/balance" \ -H "Authorization: Bearer rsk_demo_****"
OpenAPI Endpoint Reference
| Method | Path | Description |
|---|---|---|
| GET | /me | Get current partner tier, gateway domain, multiplier, and account status |
| GET | /balance | Query live wholesale balance, remaining USD quota, and daily spend |
| GET | /usage?range=7d|30d | Fetch daily spend series and per-model cost breakdown (series[].models / by_model) |
| GET POST | /keys | List all client keys or issue a new key (plaintext returned once on creation) |
| GET PATCH DELETE | /keys/{apikey_id} | Inspect a single key, update quota limits/notes, or delete key |
| POST | /keys/{apikey_id}/enable · /disable | Immediately enable or disable a specific client key |
| POST GET | /codes/mint · /codes | v2 programmatic batch minting of redeem codes (1–500 per call) and paginated listing |
| Time | Action | Source / Token | Target ID | Result | Client IP |
|---|---|---|---|---|---|
| 2026-12-04 16:52 | codes_mint | api · rsk_demo_**** | B20261204-A1 | ok | 198.51.100.*** |
| 2026-12-04 15:18 | key_create | api · rsk_demo_**** | demo-key-02 | ok | 198.51.100.*** |
| 2026-12-04 05:05 | key_update | api · rsk_demo_**** | demo-key-01 | ok | 198.51.100.*** |
| 2026-12-04 02:40 | key_disable | api · rsk_demo_**** | demo-key-04 | ok | 198.51.100.*** |
| 2026-11-18 14:15 | token_rotate | console · rsk_demo_**** | — | ok | 198.51.100.*** |