Users
Guardian Users Endpoints
Users
/users
GET https://explorer.protokol.sh/api/guardian/users
Returns all Groups
Query Parameters
Name
Type
Description
page
integer
The number of a page that will be returned
limit
integer
The number of resources per page
publickey
string
Value by which it searches for resources (allows wildcard %)
{
"meta": {
"totalCountIsEstimate": false,
"count": 2,
"pageCount": 1,
"totalCount": 2,
"next": null,
"previous": null,
"self": "/guardian/groups?page=1&limit=100",
"first": "/guardian/groups?page=1&limit=100",
"last": "/guardian/groups?page=1&limit=100"
},
"data": [
{
"name": "Test Guardian Permission Group",
"priority": 1,
"active": true,
"default": false,
"allow": [
{
"transactionType": 1,
"transactionTypeGroup": 1
}
],
"deny": [
{
"transactionType": 2,
"transactionTypeGroup": 1
}
]
},
{
"name": "Test Guardian Permission Group2",
"priority": 1,
"active": true,
"default": false,
"allow": [
{
"transactionType": 1,
"transactionTypeGroup": 1
}
],
"deny": [
{
"transactionType": 2,
"transactionTypeGroup": 1
}
]
}
]
}Examples
User By Publickey
/users/:id
GET https://explorer.protokol.sh/api/guardian/users/:id
Returns User by publickey
Path Parameters
Name
Type
Description
name
string
The name of the group
Examples
User Groups
/users/:id/groups
GET https://explorer.protokol.sh/api/guardian/users/:id/groups
Returns groups of specific user by publickey
Path Parameters
Name
Type
Description
name
string
The name of the group
Examples
Last updated
Was this helpful?