Skip to content

Get Low Balance Settings

GET https://api.echovalue.dev/token/settings

Returns the current low-balance notification settings.

Headers:

HeaderDescription
x-tokenYour API token

200 OK — JSON object.

{
"low_balance_threshold": 10,
"low_balance_webhook": {
"url": "https://yourdomain.com/alert",
"headers": {},
"format": "slack"
},
"low_balance_email": "alerts@example.com"
}
FieldTypeDescription
low_balance_thresholdintegerBalance threshold that triggers notifications (0 disables notifications)
low_balance_webhookobjectWebhook configuration
low_balance_emailstringEmail address for notifications

If low_balance_webhook is present, it follows the same format family used by mailbox webhooks: format, template, and options are optional.

Response headers:

HeaderDescription
x-balanceWallet balance after this call
x-costCredits consumed

See Response Headers for details.

StatusMeaning
200Settings returned
401Invalid token
402Insufficient credits
  • Set low_balance_threshold to 0 to disable low-balance notifications.
  • Notification delivery can target an email address, a webhook, or both.
Terminal window
curl 'https://api.echovalue.dev/token/settings' \
-H 'x-token: mytoken'