PoliciesList Vault policies (admin)

List Vault policies (admin)

A flat list with filters. vaultId is required (policies live in the Vault's groups). Sorting: group → code. For the rule builder, use GET /policies/:id (with rules and selectors).

curl -X GET "https://policy-engine-rest.ezig.workers.dev/api/v1/policies?vaultId=example_string&groupId=example_string&actionType=example_string&effect=allow&enabled=true" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "items": [
    {
      "id": "cmr3f41z20001psp7phmyapw3",
      "code": "allow-small",
      "name": "John Doe",
      "description": "example_string",
      "logoUri": "example_string",
      "color": "#0A84FF",
      "emoji": "🛡️",
      "actionType": "transfer",
      "effect": "allow",
      "blockReason": "example_string",
      "approvalThreshold": 42,
      "adminBypass": true,
      "allowInitiatorApproval": true,
      "enabled": true,
      "createdAt": "2026-07-02T11:25:15.134000Z",
      "updatedAt": "2026-07-02T11:25:15.134000Z",
      "_count": {
        "rules": 42
      },
      "groupId": "example_string",
      "group": {
        "id": "example_string",
        "code": "example_string",
        "name": "John Doe",
        "color": "example_string",
        "emoji": "example_string"
      }
    }
  ]
}
GET
/api/v1/policies
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

Session token. Mobile/services. The web uses a cookie.

Session token. Mobile/services. The web uses a cookie.
API Key (cookie: session_token)
session_tokenstring
Required

API key (sent in cookie)

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Session token. Mobile/services. The web uses a cookie.

path
parameterstring
Required

API Key for authentication. Provide your API key in the cookie.

Query Parameters

effectstring
Allowed values:allowblock
enabledstring
Allowed values:truefalse

Responses

itemsarray
Required