Estimate current-month cost
GET
/api/v2/billing/cost-estimateAuthorization
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
Current-month cost estimate returned in USD.
successbooleanrequiredAllowed:
truedataobjectrequiredShow propertiesHide properties
planstringrequiredAllowed:
freepaygoenterpriseproductiongrowthcurrentMonthobjectrequiredShow propertiesHide properties
messagesUsedintegerrequiredmin 0
bandwidthUsedstringrequiredHuman-readable byte count.
estimatedCostnumberrequiredmin 0
currencystringrequiredAllowed:
USDbreakdownobjectrequiredShow propertiesHide properties
baseFeenumberrequiredmin 0
messageCostnumberrequiredmin 0
bandwidthCostnumberrequiredmin 0
perMessageRatenumberrequiredmin 0
perGBRatenumberrequiredmin 0
401
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
codestringmessagestringdetailsobject404
Not Found - Resource does not exist
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
