Policies

List policies

get
Authorizations
Query parameters
pageinteger · min: 1Optional

Which page to fetch

Default: 1
pageSizeinteger · min: 1 · max: 30Optional

Page size to use

Default: 30
namestringOptional

Search by matching name

isPrivatebooleanOptional

Search private policies

Default: false
sortBystring · enumOptional

Sort by attribute

Default: createdAtPossible values:
sortOrderstring · enumOptional

Sort order

Default: ascPossible values:
Responses
200
Successful response
application/json
get
GET /rest/policies HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "page": 1,
  "next": 1,
  "prev": 1,
  "pageSize": 1,
  "total": 1,
  "results": [
    {
      "id": "text",
      "legacyId": 1,
      "name": "text",
      "description": "text",
      "currency": "text",
      "isPrivate": true,
      "rules": [
        {
          "reviewSteps": [
            {
              "quorum": 1,
              "userIds": [
                "text"
              ]
            }
          ],
          "threshold": {
            "min": "text",
            "max": "text"
          },
          "whitelistIds": [
            "text"
          ],
          "operationType": "SEND"
        }
      ],
      "whitelists": [
        {
          "id": "text",
          "legacyId": 1,
          "name": "text",
          "status": "ACTIVE",
          "addresses": [
            {
              "name": "text",
              "currency": "text",
              "address": "text",
              "destinationTags": [
                "text"
              ]
            }
          ],
          "createdAt": "text",
          "updatedAt": "text",
          "description": "text"
        }
      ],
      "users": [
        {
          "id": "text",
          "legacyId": 1,
          "legacyViewAll": true,
          "workspaceName": "text",
          "name": "text",
          "deviceUserId": "text",
          "deviceType": "PSD",
          "role": "ADMIN",
          "pubKey": "text",
          "status": "ACTIVE",
          "createdAt": "text",
          "updatedAt": "text"
        }
      ],
      "groups": [
        {
          "id": "text",
          "legacyId": 1,
          "name": "text",
          "description": "text",
          "status": "ACTIVE",
          "createdAt": "text",
          "updatedAt": "text"
        }
      ],
      "createdAt": "text",
      "updatedAt": "text"
    }
  ]
}

Get a single policy

get
Authorizations
Path parameters
idstringRequired

Id of the target policy

Responses
200
Successful response
application/json
get
GET /rest/policies/{id} HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "id": "text",
  "legacyId": 1,
  "name": "text",
  "description": "text",
  "currency": "text",
  "isPrivate": true,
  "rules": [
    {
      "reviewSteps": [
        {
          "quorum": 1,
          "userIds": [
            "text"
          ]
        }
      ],
      "threshold": {
        "min": "text",
        "max": "text"
      },
      "whitelistIds": [
        "text"
      ],
      "operationType": "SEND"
    }
  ],
  "whitelists": [
    {
      "id": "text",
      "legacyId": 1,
      "name": "text",
      "status": "ACTIVE",
      "addresses": [
        {
          "name": "text",
          "currency": "text",
          "address": "text",
          "destinationTags": [
            "text"
          ]
        }
      ],
      "createdAt": "text",
      "updatedAt": "text",
      "description": "text"
    }
  ],
  "users": [
    {
      "id": "text",
      "legacyId": 1,
      "legacyViewAll": true,
      "workspaceName": "text",
      "name": "text",
      "deviceUserId": "text",
      "deviceType": "PSD",
      "role": "ADMIN",
      "pubKey": "text",
      "status": "ACTIVE",
      "createdAt": "text",
      "updatedAt": "text"
    }
  ],
  "groups": [
    {
      "id": "text",
      "legacyId": 1,
      "name": "text",
      "description": "text",
      "status": "ACTIVE",
      "createdAt": "text",
      "updatedAt": "text"
    }
  ],
  "createdAt": "text",
  "updatedAt": "text"
}