Read workspace overage alert target
Alert-only configuration, not a spending hard stop.
GET
/api/v2/billing/budgetAuthorization
AuthorizationBearer token (Anlyon API key) · headerrequiredWorkspace API key sent as Authorization: Bearer <key>.
or
better-auth.session_tokenAPI key · cookierequiredBrowser session used by dashboard-only operations.
Header parameters
X-Request-IdstringOptional caller correlation ID. Unsafe or oversized values are replaced.
max length 128
Responses
200
Workspace alert configuration.
successbooleanrequiredAllowed:
truedataWorkspaceBillingBudgetrequiredShow propertiesHide properties
maxOverageCentsintegerrequiredmin 0 · max 100000000
alertThresholdsinteger[]min items 1 · max items 10 · default: [50,75,90,100]
behaviourAtMaxstringdefault: "alert_only"
Allowed:
alert_onlyenabledbooleanrequired401
Unauthorized - Invalid or missing API key
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobject403
Authenticated credential lacks the required scope or workspace access.
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobject429
Too Many Requests - Rate limit exceeded
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobject
