Skip to main content
GET
https://api.naga.ac
/
v1
/
account
/
balance
Account Balance
curl --request GET \
  --url https://api.naga.ac/v1/account/balance \
  --header 'Authorization: Bearer <token>'
{
  "balance": "<string>"
}
Provisioning Key Required This endpoint requires authentication with a provisioning key, not a regular API key.
Returns the current balance for the authenticated account. This allows you to monitor your account’s available credits programmatically.

Example Request

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']}")

Response

{
  "balance": "125.50"
}

Response Fields

balance
string
Current account balance in USD