Policy GroupsВсе права группы: политики + гранты (admin)

Все права группы: политики + гранты (admin)

policies — что группе разрешено делать (принадлежат группе). addressGrants / visibilityGrants / categoryGrants — к чему у группы есть доступ (группа указана субъектом). Только активные гранты.

curl -X GET "https://policy-engine-rest.ezig.workers.dev/api/v1/policy-groups/example_string/access" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "group": {
    "id": "cmr3f41z20001psp7phmyapw3",
    "vaultId": "example_string",
    "code": "traders",
    "name": "John Doe",
    "description": "example_string",
    "logoUri": "example_string",
    "color": "#0A84FF",
    "emoji": "👥",
    "createdAt": "2026-07-02T11:25:15.134Z",
    "updatedAt": "2026-07-02T11:25:15.134Z"
  },
  "memberCount": 10,
  "policies": [
    {
      "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
      }
    }
  ],
  "addressGrants": [
    {}
  ],
  "visibilityGrants": [
    {}
  ],
  "categoryGrants": [
    {}
  ]
}
GET
/api/v1/policy-groups/{id}/access
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.

Path Parameters

Responses

groupobject
Required
memberCountinteger
Required
policiesarray
Required
addressGrantsobject[]
Required
visibilityGrantsobject[]
Required
categoryGrantsobject[]
Required