API ReferencePolicies
Get one Cedar policy with its version history.
Returns a single Cedar policy scoped to the authenticated org, plus its full version history (newest first). A policy id belonging to another org returns 404.
GET
header
AuthorizationBearer <rsk_live_*>Rensei API key presented as Authorization: Bearer rsk_live_. Required API-key scopes are recorded per operation in x-rensei-required-scopes.
id*stringThe policy id.
The policy and its version history.
application/json- response
policy*versions*array<>retention*curl -X GET 'https://app.rensei.ai/api/policies/string'Example Response
{ "policy": { "id": "string", "workspaceId": "string", "name": "string", "description": "string", "cedarPolicy": "string", "scope": "string", "scopeId": "string", "status": "string", "version": 0, "regulatoryTags": [ "string" ], "metadata": { "property1": null, "property2": null }, "createdBy": "string", "createdAt": "string", "updatedAt": "string", "archivedAt": "string" }, "versions": [ { "id": 0, "policyId": "string", "version": 0, "cedarPolicy": "string", "changedBy": "string", "changeReason": "string", "createdAt": "string" } ], "retention": { "hardDeleteAllowed": true, "reason": "string" }}Create an active or draft Cedar policy with immutable version 1.
Create an active or draft Cedar policy with immutable version 1. - Rensei REST API operation reference.
Archive a Cedar policy. Hard deletion is retention-forbidden.
Archive a Cedar policy. Hard deletion is retention-forbidden. - Rensei REST API operation reference.