API documentation for HeyDonto Authentication and User Management
https://docs.heydonto.com/_mock/apis/authentication/openapi/
https://api-staging.heydonto.com/
https://api.heydonto.com/
Filter by user role(s)
Filter by client account IDs
Field to sort by
First sort field
Second sort field
- Mock server
https://docs.heydonto.com/_mock/apis/authentication/openapi/users
- Sandbox
https://api-staging.heydonto.com/users
- Production
https://api.heydonto.com/users
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.heydonto.com/_mock/apis/authentication/openapi/users?search=john&role=ADMIN%2CCLIENT_ACCOUNT_USER&isEnabled=true&clientAccountId=1%2C2&organizationId=1%2C2&brandId=1%2C2&siteId=1%2C2&page=0&pageSize=10&field=createdAt&sortBy%5B0%5D%5Bfield%5D=id&sortBy%5B0%5D%5Bdir%5D=asc&sortBy%5B1%5D%5Bfield%5D=id&sortBy%5B1%5D%5Bdir%5D=asc' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
List of users retrieved successfully.
Array of users
Role of the user
Creation date of the user
Last update date of the user
{ "data": [ { … } ], "meta": { "page": 0, "pageSize": 10, "total": 150, "totalPages": 15, "hasNext": true, "hasPrevious": false } }
The role of the user
- Mock server
https://docs.heydonto.com/_mock/apis/authentication/openapi/users
- Sandbox
https://api-staging.heydonto.com/users
- Production
https://api.heydonto.com/users
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.heydonto.com/_mock/apis/authentication/openapi/users \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"email": "john.doe@example.com",
"firstName": "John",
"lastName": "Doe",
"password": "password123",
"isEnabled": true,
"organizationId": 1,
"brandId": 1,
"siteId": 1,
"role": "ADMIN",
"clientAccountId": [
1,
2,
3
]
}'
- Mock server
https://docs.heydonto.com/_mock/apis/authentication/openapi/users/{userId}
- Sandbox
https://api-staging.heydonto.com/users/{userId}
- Production
https://api.heydonto.com/users/{userId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://docs.heydonto.com/_mock/apis/authentication/openapi/users/{userId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"firstName": "John",
"lastName": "Doe",
"isEnabled": true,
"clientAccountId": [
1,
2,
3
]
}'
- Mock server
https://docs.heydonto.com/_mock/apis/authentication/openapi/users/{userId}
- Sandbox
https://api-staging.heydonto.com/users/{userId}
- Production
https://api.heydonto.com/users/{userId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://docs.heydonto.com/_mock/apis/authentication/openapi/users/{userId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
- Mock server
https://docs.heydonto.com/_mock/apis/authentication/openapi/users/{userId}/resend-invitation
- Sandbox
https://api-staging.heydonto.com/users/{userId}/resend-invitation
- Production
https://api.heydonto.com/users/{userId}/resend-invitation
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://docs.heydonto.com/_mock/apis/authentication/openapi/users/{userId}/resend-invitation' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'