Refresh a preview's evidence
Re-read the provider for the same input and the same action version this preview reviewed, and return a NEW preview that supersedes this one. Its binding differs, so an approval of the old preview never carries over; an effect already bound to the old one still executes only as reviewed. A refresh never moves the review to a newer action version: if the action changed since, invoking with the refreshed preview is refused with PREVIEW_MISMATCH and a new preview is needed.
/api/v2/actions/previews/{id}/refreshAuthorizationBearer token (Anlyon API key) · headerrequiredWorkspace API key sent as Authorization: Bearer <key>.
better-auth.session_tokenAPI key · cookierequiredBrowser session used by dashboard-only operations.
idstringrequiredPublic preview identifier.
X-Request-IdstringOptional caller correlation ID. Unsafe or oversized values are replaced.
application/jsonttlSecondsintegerPreview 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
codestringmessagestringdetailsobjectThe request conflicts with current resource state or a concurrent decision.
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
