cURL
curl --request GET \ --url https://api.naga.ac/v1/account/balance \ --header 'Authorization: Bearer <token>'
{ "balance": "<string>" }
Get the current account balance.
import requests response = requests.get( "https://api.naga.ac/v1/account/balance", headers={"Authorization": "Bearer YOUR_PROVISIONING_KEY"}, ) balance = response.json() print(f"Current balance: ${balance['balance']}")
{ "balance": "125.50" }