DocsAPI reference
Credits
Check the balance of the account that owns your API key, for example before starting a batch job.
Get the balance
curl https://api.avenro.tech/v1/credits -H "Authorization: Bearer $AVENRO_API_KEY"{
"object": "credits",
"currency": "USD",
"balance": "42.5",
"held": "0.031",
"available": "42.469",
"balance_nusd": "42500000000",
"held_nusd": "31000000",
"available_nusd": "42469000000"
}balanceis what the account holds;heldis reserved by requests in flight;availableis what new requests can reserve (never below zero).- Amounts are decimal strings in US dollars. The
_nusdfields are the same values as integers in nano-dollars (1 USD = 1,000,000,000), the unit the ledger uses. - To add credits, go to Billing.