Policy
Which page to fetch
1Page size to use
30Search by matching name
Search private policies
falseSearch by currency
^\w+$Filter by token contract address (requires 'currency')
Filter by token identifier (requires 'currency')
Filter by policy type: 'single' returns policies with any currency assigned, 'multiple' returns policies without a currency (multicurrency)
Sort by attribute
createdAtPossible values: Sort order
ascPossible values: Successful response
Current page
Next page or null if there is none
Previous page or null if there is none
Max count of items per page
Total count of items
Invalid input data
Authorization not provided
Insufficient access
Not found
Internal server error
GET /rest/policies HTTP/1.1
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",
"asset": {
"network": "text",
"contractAddress": "text",
"tokenIdentifier": "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",
"type": "TRANSACTION",
"status": "ACTIVE",
"addresses": [
{
"name": "text",
"currency": "text",
"address": "text",
"destinationTag": "text"
}
],
"addressCount": 1,
"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",
"isSuspended": true,
"createdAt": "text",
"updatedAt": "text"
}
],
"groups": [
{
"id": "text",
"legacyId": 1,
"name": "text",
"description": "text",
"status": "ACTIVE",
"createdAt": "text",
"updatedAt": "text",
"memberIds": [
"text"
]
}
],
"createdAt": "text",
"updatedAt": "text",
"ANY_ADDITIONAL_PROPERTY": "anything"
}
]
}Id of the target policy
Successful response
Account policy
Internal unique identifier
Legacy internal unique identifier (for retro-compatibility)
Policy name
Policy description
Whether the policy is private
Creation timestamp
Last modification timestamp
Invalid input data
Authorization not provided
Insufficient access
Not found
Internal server error
GET /rest/policies/{id} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text",
"legacyId": 1,
"name": "text",
"description": "text",
"asset": {
"network": "text",
"contractAddress": "text",
"tokenIdentifier": "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",
"type": "TRANSACTION",
"status": "ACTIVE",
"addresses": [
{
"name": "text",
"currency": "text",
"address": "text",
"destinationTag": "text"
}
],
"addressCount": 1,
"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",
"isSuspended": true,
"createdAt": "text",
"updatedAt": "text"
}
],
"groups": [
{
"id": "text",
"legacyId": 1,
"name": "text",
"description": "text",
"status": "ACTIVE",
"createdAt": "text",
"updatedAt": "text",
"memberIds": [
"text"
]
}
],
"createdAt": "text",
"updatedAt": "text",
"ANY_ADDITIONAL_PROPERTY": "anything"
}Last updated