Policy GroupsПолитики группы

Политики группы

Список политик группы для table view — все поля политики без rules, но со счётчиком rules.

curl -X GET "https://policy-engine-rest.ezig.workers.dev/api/v1/policy-groups/example_string/policies?actionType=transfer" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
[
  {
    "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
    }
  }
]
GET
/api/v1/policy-groups/{id}/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)
path
idstring
Required

id группы (cuid)

query
actionTypestring

Фильтр по типу действия

Options: transfer, create_address, counterparty_create, counterparty_update, counterparty_archive, counterparty_group_create, counterparty_group_update, counterparty_group_archive, counterparty_group_add, counterparty_group_remove
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

idstring
Required

id группы (cuid)

Query Parameters

actionTypestring

Фильтр по типу действия

Allowed values:transfercreate_addresscounterparty_createcounterparty_updatecounterparty_archivecounterparty_group_createcounterparty_group_updatecounterparty_group_archivecounterparty_group_addcounterparty_group_remove

Responses

idstring
Required

cuid

codestring
Required
namestring
Required
descriptionstring
Required
logoUristring
Required
colorstring
Required
emojistring
Required
actionTypestring
Required
effectstring
Required
blockReasonstring
Required
approvalThresholdstring
Required
adminBypassboolean
Required
allowInitiatorApprovalboolean
Required
enabledboolean
Required
createdAtstring
Required
updatedAtstring
Required
_countobject
Required