Preview a governed invocation
Normalize the input, resolve the exact target, read the provider (never write), and return a typed, execution-bound preview: environment and target, the exact change (field summaries and text diffs), expected impact against current impact limits, material preconditions with the time they were observed, expiry, and the adapter’s guarantees and limitations. Pass its id as previewId when invoking; any material difference is refused. For a declared action the preview is the normalized request itself, with every secret still a {{secret:NAME}} reference. Anlyon does not read an API it has no adapter for before the write, and the preview lists what a declared action does not guarantee.
/api/v2/actions/{ref}/previewsAuthorizationBearer token (Anlyon API key) · headerrequiredWorkspace API key sent as Authorization: Bearer <key>.
better-auth.session_tokenAPI key · cookierequiredBrowser session used by dashboard-only operations.
refstringrequiredAction name or public action identifier.
X-Request-IdstringOptional caller correlation ID. Unsafe or oversized values are replaced.
application/jsoninputobjectttlSecondsintegerrunIdstringResolve the action version this run's agent pins.
Preview returned.
successbooleanrequiredtruedataActionPreviewrequiredShow propertiesHide properties
idstringrequiredactionobjectrequiredShow propertiesHide properties
idstringrequirednamestringrequiredversionIdstringrequiredadapterobjectrequiredShow propertiesHide properties
typestringrequiredversionstringrequiredenvironmentobjectrequiredShow propertiesHide properties
idstringrequirednamestringrequiredkindstringrequiredtargetobjectrequiredrequestobjectrequiredThe exact normalized request that will be dispatched.
impactImpactQuantity[]requiredShow propertiesHide properties
ImpactQuantitydimensionstringrequiredmoney, resource_mutations, or a workspace-declared unit such as emails.
currencystringPresent for money.
amountintegerrequiredInteger minor units for money. A count for every other dimension.
boundstringrequiredexactupper_boundblocksPreviewBlock[]requiredShow propertiesHide properties
PreviewBlocktypestringrequiredfieldstext_diffimpactlimitationstitlestringrequiredfieldsobject[]Show propertiesHide properties
objectlabelstringrequiredvaluestringrequiredpathstringbeforestringafterstringtruncatedbooleanquantitiesImpactQuantity[]itemsobject[]Show propertiesHide properties
objectkindstringrequiredguaranteefreshnessunsupportedirreversibletextstringrequiredpreconditionsobjectrequiredMaterial preconditions; part of the binding.
capabilitiesobjectrequiredThe adapter's declared guarantees.
allowancesobject[]requiredApplicable impact limits at preview time. Dispatch rechecks.
evidenceObservedAtstring<date-time>requiredexpiresAtstring<date-time>requiredexpiredbooleanrequiredrequestDigeststringrequiredbindingDigeststringrequiredSHA-256 over the canonical request, target, versions, preconditions, scope and expiry. What an approval agrees to.
supersedesstring | nullrequiredeffectIdstring | nullrequiredThe effect executing this preview, once one is admitted.
createdAtstring<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
codestringmessagestringdetailsobjectNot Found - Resource does not exist
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
