Protokol
Search…
Users
Guardian Users Endpoints

Users

get
https://explorer.protokol.sh/api/guardian/users
/users

Examples

Curl
Typescript
1
curl https://explorer.protokol.sh/api/guardian/users
Copied!
1
const response = await connection.guardianApi("users").index();
2
3
>>> Promise<ApiResponseWithPagination<User>>
Copied!

User By Publickey

get
https://explorer.protokol.sh/api/guardian/users/:id
/users/:id

Examples

Curl
Typescript
1
curl https://explorer.protokol.sh/api/guardian/users/03c11f2a1fc02c88cd9b8db5272cba390bdb9ce3e1d58355de1b7a24c673e06ebc
Copied!
1
const response = await connection.guardianApi("users").get("PUBLIC_KEY");
2
3
>>> Promise<ApiResponse<User>>
Copied!

User Groups

get
https://explorer.protokol.sh/api/guardian/users/:id/groups
/users/:id/groups

Examples

Curl
Typescript
1
curl https://explorer.protokol.sh/api/guardian/users/03c11f2a1fc02c88cd9b8db5272cba390bdb9ce3e1d58355de1b7a24c673e06ebc/groups
Copied!
1
const response = await connection.guardianApi("users").userGroups("PUBLIC_KEY");
2
3
>>> Promise<ApiResponse<UserGroups>>
Copied!