Get Low Balance Settings
GET https://api.echovalue.dev/token/settings
Returns the current low-balance notification settings.
Request
Section titled “Request”Headers:
| Header | Description |
|---|---|
x-token | Your API token |
Response
Section titled “Response”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"}| Field | Type | Description |
|---|---|---|
low_balance_threshold | integer | Balance threshold that triggers notifications (0 disables notifications) |
low_balance_webhook | object | Webhook configuration |
low_balance_email | string | Email 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:
| Header | Description |
|---|---|
x-balance | Wallet balance after this call |
x-cost | Credits consumed |
See Response Headers for details.
Status Codes
Section titled “Status Codes”| Status | Meaning |
|---|---|
200 | Settings returned |
401 | Invalid token |
402 | Insufficient credits |
- Set
low_balance_thresholdto0to disable low-balance notifications. - Notification delivery can target an email address, a webhook, or both.
Examples
Section titled “Examples”curl 'https://api.echovalue.dev/token/settings' \ -H 'x-token: mytoken'