PoliciesСписок политик Vault'а (admin)

Список политик Vault'а (admin)

Плоский список с фильтрами. vaultId обязателен (политики живут в группах Vault'а). Сортировка: группа → код. Для конструктора правил используйте GET /policies/:id (с rules и селекторами).

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.134Z",
      "updatedAt": "2026-07-02T11:25:15.134Z",
      "_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

better-auth session token. Мобилка/сервисы. Веб использует cookie.

better-auth session token. Мобилка/сервисы. Веб использует cookie.
API Key (cookie: better-auth.session_token)
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. better-auth session token. Мобилка/сервисы. Веб использует 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