Create an impact limit
Cap money (one currency, integer minor units), resource_mutations, or a workspace-declared unit such as emails for the whole environment, optionally narrowed to one action and/or a resource prefix, per day, month or total. Shared by every agent, session and key: none of them is part of a limit’s identity. A limit in a declared unit applies to actions that declare an impact in that unit. A declared action’s resource key is http:<host><path>, so resourcePrefix can scope a limit to a path prefix. Needs impact-limits:write, which no key receives by default.
/api/v2/impact-limitsAuthorizationBearer token (Anlyon API key) · headerrequiredWorkspace API key sent as Authorization: Bearer <key>.
better-auth.session_tokenAPI key · cookierequiredBrowser session used by dashboard-only operations.
X-Request-IdstringOptional caller correlation ID. Unsafe or oversized values are replaced.
application/jsonnamestringrequireddimensionstringrequiredmoney, resource_mutations, or a workspace-declared unit such as emails. A declared unit caps the actions that declare an impact in that unit.
currencystringRequired for money.
unitstringOptional. The currency for money, the dimension name for every other dimension. It is implied by dimension and currency, and refused when it disagrees with them.
actionNamestring | nullresourcePrefixstring | nullperiodstringrequireddaymonthtotalamountintegerrequiredImpact limit returned.
successbooleanrequiredtruedataImpactLimitrequiredShow propertiesHide properties
idstringrequirednamestringrequireddimensionstringrequiredmoney, resource_mutations, or a workspace-declared unit such as emails.
currencystring | nullrequiredunitstringrequiredWhat the amounts count. The currency for money, the dimension name for every other dimension.
scopeobjectrequiredShow propertiesHide properties
environmentIdstring<uuid>requiredactionNamestring | nullrequiredresourcePrefixstring | nullrequiredperiodstringrequireddaymonthtotallimitintegerrequiredcurrentPeriodstringrequiredconsumedintegerrequiredreservedintegerrequiredunknownExposureintegerrequiredavailableintegerrequiredarchivedbooleanrequiredcreatedAtstring<date-time>requiredupdatedAtstring<date-time>requiredBad Request - Invalid input data
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobjectUnauthorized - Invalid or missing API key
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobjectAuthenticated credential lacks the required scope or workspace access.
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobjectToo Many Requests - Rate limit exceeded
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobject
