Partner API
Programmatic, read-only access to your account — fetch your provisioned keys, usage & spend stats, and transactions.
Interactive reference: Swagger UI · OpenAPI spec
Authentication
Create a token in Settings → API Tokens, then send it as a bearer header. Tokens are account-scoped — every endpoint returns only your data.
curl https://apiswaps.com/api/v1/partner/keys -H "Authorization: Bearer sk-as-YOUR_TOKEN"Endpoints
Base URL https://apiswaps.com. All endpoints are GET and require the bearer header above.
GET /api/v1/partner/keys
Your active provider keys, including the plaintext key value (handy right after a rotation). Query: brand (google · aws · azure), label — optional filters. Returns { keys: [...] }; 404 if you have no active keys.
GET /api/v1/partner/stats
Aggregated usage & spend for a period. Query: from, to (YYYY-MM-DD, inclusive; defaults to the current month). Returns balance, period, spend, and breakdowns byKey / bySku / byDay.
GET /api/v1/partner/transactions
Your transaction ledger, newest first. Query: limit (1–200, default 50), offset, from, to. Returns { data: [...], total, limit, offset }.
Try it
curl "https://apiswaps.com/api/v1/partner/stats?from=2026-06-01" -H "Authorization: Bearer sk-as-YOUR_TOKEN"Run every endpoint live in the interactive API reference.