Read one policy version
One retained version, for example the exact version an approval or invocation decision recorded. Readable after the policy is deleted. Scoped to the credential environment.
/api/v2/approval-policies/{policyId}/versions/{version}AuthorizationBearer token (Anlyon API key) · headerrequiredWorkspace API key sent as Authorization: Bearer <key>.
better-auth.session_tokenAPI key · cookierequiredBrowser session used by dashboard-only operations.
policyIdstringrequiredPublic approval-policy id (apol_xxx).
versionintegerrequiredX-Request-IdstringOptional caller correlation ID. Unsafe or oversized values are replaced.
The retained version.
successbooleanrequiredtruedataApprovalPolicyVersionrequiredShow propertiesHide properties
policyIdstringrequiredversionintegerrequiredoperationstringrequiredcreatedupdateddeletedbaselinesnapshotobjectrequiredImmutable database row snapshot with snake_case field names. A deletion tombstone carries the next version number.
contentHashstringrequiredSHA-256 of PostgreSQL snapshot jsonb text encoded as UTF-8. An integrity digest, not a signature.
actorobject | nullrequiredShow propertiesHide properties
typestringrequiredapi_keyuserunknownidstringrequiredchangeNotestring | nullrequiredcreatedAtstring<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
