Skip to main content
GET
/
api
/
v1
/
auth
/
users
/
count
/
role
/
{role}
Get total number of users by role
curl --request GET \
  --url https://crypto.westminister.tech/api/v1/auth/users/count/role/{role} \
  --header 'Authorization: Bearer <token>'
{
  "count": 5,
  "role": "customer"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

role
enum<string>
required

Role to count users for.

Available options:
customer,
vendor,
user

Response

200 - application/json

Total users for role found

count
integer

Total number of users for the role.

role
string

The role counted.