Public API
查詢帳戶餘額
回傳所用 API Key 所屬帳戶的目前餘額與額度發放摘要。
Authorization
BearerAuth AuthorizationBearer <token>
Use an Atlas Cloud API key in the form Authorization: Bearer apikey-....
In: header
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/public/v1/balance"{ "object": "balance", "scope": "account", "account": { "id": "acc_123", "name": "Production", "type": "team" }, "available": { "value": "125.500000", "currency": "usd" }, "cash": { "value": "100.000000", "currency": "usd" }, "bonus": { "value": "25.500000", "currency": "usd" }, "subscription_bonus": { "value": "0.000000", "currency": "usd" }, "frozen": { "value": "0.000000", "currency": "usd" }, "credit_grant": { "status": "active", "granted": { "value": "0.000000", "currency": "usd" }, "used": { "value": "0.000000", "currency": "usd" }, "remaining_overdraft": { "value": "0.000000", "currency": "usd" }, "overdrawn": { "value": "0.000000", "currency": "usd" } }, "request_id": "req_123"}Last updated on