Retrieve your credit balance, lifetime purchased and used totals, and auto top-up status
cURL
curl --request GET \ --url https://api.example.com/credits \ --header 'x-api-key: <x-api-key>'
curl https://xquik.com/api/v1/credits \ -H "x-api-key: xq_YOUR_KEY_HERE" | jq
{ "auto_topup_enabled": false, "balance": 450, "lifetime_purchased": 1000, "lifetime_used": 550 }
{ "error": "unauthenticated" }
Was this page helpful?