Skip to main content
Interactive Sandbox Zero-login live UI preview (writes locked) · Shared SSO & wallet balance with QCode.cc
QCode.cc Starlight AI (Demo) Tier B · 0.80x Asia api.starlight-demo.dev

OpenAPI & Automation Integration

rsk_ Token Active

Authenticate 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_****
Full read/write Bearer authentication
Token Issued At
2026-11-18 14:15
Zero-downtime rotation anytime
Last API Request
2026-12-04 16:52
All write calls are audit-logged

Quickstart Verification

cURL · Balance Check
curl -sS "https://reseller.qcode.cc/api/v1/reseller/balance" \
  -H "Authorization: Bearer rsk_demo_****"

OpenAPI Endpoint Reference

https://reseller.qcode.cc/api/v1/reseller
Partner OpenAPI v1/v2 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
Recent OpenAPI Audit Trail (Last 50 Calls)
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.***