Rensei docs

List Cedar policies for the authenticated org.

Returns Cedar policies scoped to the authenticated org (policies.workspaceId), optionally filtered by status or scope. Human principals only: a browser session or a WorkOS user-token bearer is accepted; rsk_* API keys and BYOA OAuth-agent tokens authenticate but are rejected 403.

GET
/api/policies

Authorization

headerAuthorizationBearer <rsk_live_*>

Rensei API key presented as Authorization: Bearer rsk_live_. Required API-key scopes are recorded per operation in x-rensei-required-scopes.

Query Parameters

status?string

Filter by policy status.

scope?string

Filter by policy scope (workspace / project / workflow / agent).

Response Body

Cedar policies for the org.

application/json
  1. response
policies*array<>
Example Request
curl -X GET 'https://app.rensei.ai/api/policies'
Example Response
{  "policies": [    {      "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"    }  ]}