Skip to main content

Account Balance API

Retrieve your Exotel account balance programmatically. This API returns your current wallet credit (in INR), the configured pricing plan, and account currency. Useful for monitoring credit consumption, building low-balance alerts, and reconciling usage with billing.

Endpoint​

GET /v1/Accounts/<your_sid>/Balance.json

Regional URLs​

RegionURL
Singaporehttps://<api_key>:<api_token>@api.exotel.com/v1/Accounts/<your_sid>/Balance.json
Mumbaihttps://<api_key>:<api_token>@api.in.exotel.com/v1/Accounts/<your_sid>/Balance.json

Append .json for JSON response (recommended). Omit it for XML.

Authentication​

HTTP Basic Authentication using your API Key and API Token from the Exotel Dashboard → Settings → API Settings → API Credentials.

Path Parameters​

ParameterRequiredDescription
your_sidYesYour Exotel Account SID (visible in the dashboard, e.g., Exotel)

Code Examples​

curl "https://<your_api_key>:<your_api_token>@api.exotel.com/v1/Accounts/<your_sid>/Balance.json"

Sample Response​

{
"Account": {
"AccountSid": "Exotel",
"BalanceData": {
"Balance": "1543.75",
"Currency": "INR",
"PricingPlan": "Pay As You Go",
"DateUpdated": "2026-04-24 10:32:18"
}
}
}

Response Fields​

FieldTypeDescription
Account.AccountSidStringYour account SID (echo of request)
Account.BalanceData.BalanceString (decimal)Current wallet balance — credit available for Voice, SMS, WhatsApp
Account.BalanceData.CurrencyStringISO 4217 currency code (typically INR)
Account.BalanceData.PricingPlanStringConfigured pricing plan, e.g. Pay As You Go, Postpaid, Enterprise
Account.BalanceData.DateUpdatedString (ISO-ish)Timestamp of last balance update

Common Use Cases​

  • Low-balance alerts: Poll this endpoint hourly/daily and trigger Slack/SMS notifications when Balance falls below your threshold.
  • Usage reconciliation: Compare balance delta with Call Details / SMS Details over a window to validate billing.
  • Pre-flight checks: Before bulk SMS or large outbound campaigns, verify sufficient balance to complete the run.
  • Internal dashboards: Surface remaining credit alongside CDR analytics in your ops console.

Error Responses​

Status CodeDescription
401Invalid API key/token
403API key does not have permission to read balance
404Account SID not found
429Rate limit exceeded — retry with exponential backoff
5xxServer error — retry
{
"RestException": {
"Status": 401,
"Message": "Authentication failed",
"Code": 20003
}
}

Rate Limits​

This endpoint is subject to standard Exotel API rate limits. Avoid polling more frequently than once per minute — use webhooks/CDRs for real-time consumption tracking instead.