Skip to content
Anlyon
Esc
↑↓navigate↵open⌘Jpreview

Read workspace overage alert target

Alert-only configuration, not a spending hard stop.

GET/api/v2/billing/budget
Authorization
AuthorizationBearer token (Anlyon API key) · headerrequired

Workspace API key sent as Authorization: Bearer <key>.

or
better-auth.session_tokenAPI key · cookierequired

Browser session used by dashboard-only operations.

Header parameters
X-Request-Idstring

Optional caller correlation ID. Unsafe or oversized values are replaced.

max length 128
Responses
200

Workspace alert configuration.

successbooleanrequired
Allowed:true
dataWorkspaceBillingBudgetrequired
Show properties
maxOverageCentsintegerrequired
min 0 · max 100000000
alertThresholdsinteger[]
min items 1 · max items 10 · default: [50,75,90,100]
behaviourAtMaxstring
default: "alert_only"
Allowed:alert_only
enabledbooleanrequired
401

Unauthorized - Invalid or missing API key

successbooleanrequired
requestIdstringrequired

Correlation ID matching the X-Request-Id response header.

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
403

Authenticated credential lacks the required scope or workspace access.

successbooleanrequired
requestIdstringrequired

Correlation ID matching the X-Request-Id response header.

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
429

Too Many Requests - Rate limit exceeded

successbooleanrequired
requestIdstringrequired

Correlation ID matching the X-Request-Id response header.

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
Try it
Server
Authorization
Parameters
Request
curl -X GET 'https://api.anlyon.com/api/v2/billing/budget' \
  -H 'Authorization: Bearer YOUR_TOKEN'
Response
{
  "success": true,
  "data": {
    "maxOverageCents": 0,
    "alertThresholds": [
      50,
      75,
      90,
      100
    ],
    "behaviourAtMax": "alert_only",
    "enabled": true
  }
}