Policies
Authorizations
Query parameters
pageinteger · min: 1OptionalDefault:
Which page to fetch
1
pageSizeinteger · min: 1 · max: 30OptionalDefault:
Page size to use
30
namestringOptional
Search by matching name
isPrivatebooleanOptionalDefault:
Search private policies
false
sortBystring · enumOptionalDefault:
Sort by attribute
createdAt
Possible values: sortOrderstring · enumOptionalDefault:
Sort order
asc
Possible values: Responses
200
Successful response
application/json
400
Invalid input data
application/json
401
Authorization not provided
application/json
403
Insufficient access
application/json
404
Not found
application/json
500
Internal server error
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"
}
]
}
Authorizations
Path parameters
idstringRequired
Id of the target policy
Responses
200
Successful response
application/json
400
Invalid input data
application/json
401
Authorization not provided
application/json
403
Insufficient access
application/json
404
Not found
application/json
500
Internal server error
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"
}