API · Dashboard billing
PUT /accounts/{id}/alerts
Email the owners and admins when the balance falls below a number of credits.
| |
|---|
| Request | PUT /v1/accounts/{id}/alerts |
| Operation id | accounts.alerts.update |
| Cost | Free |
| Auth | Dashboard session: Authorization: Bearer <session_token>. API keys are refused. |
| Name | Type | Required | Description |
|---|
id | string | yes | Example: acct_01J…. |
| Field | Type | Required | Description |
|---|
low_balance_credits | integer | null | yes | null turns the alert off. |
| Status | Meaning | Schema |
|---|
200 | Saved. | |
400 | Invalid input. | Error |
401 | Not signed in, or an API key was sent. | Error |
403 | Members can look; owners and admins make changes. | Error |
404 | No such account among yours. | Error |
Errors use one shape everywhere; see Errors for every code and what to do.