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=CLIENT_ACCOUNT_USER&isEnabled=true&isAdmin=true&clientAccountId=1%2C2&organizationId=1%2C2&brandId=1%2C2&siteId=1%2C2&onlyAcceptedTOS=true&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
Client accounts associated with 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",
"isEnabled": true,
"isAdmin": true,
"organizationId": 1,
"brandId": 1,
"siteId": 1,
"role": "CLIENT_ACCOUNT_USER",
"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 GET \
'https://docs.heydonto.com/_mock/apis/authentication/openapi/users/{userId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'{ "id": 1, "email": "admin@admin.com", "firstName": "John", "lastName": "Doe", "role": "CLIENT_ACCOUNT_USER", "isEnabled": true, "createdAt": "2024-01-01T00:00:00.000Z", "updatedAt": "2024-01-02T00:00:00.000Z", "userOrganizations": [ "string" ], "userBrands": [ "string" ], "userSites": [ "string" ], "userClientAccounts": [ { … } ], "managedSites": [ "string" ], "tosAcceptedAt": "2024-01-02T00:00:00.000Z" }
- 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,
"isAdmin": 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/current
- Sandbox
https://api-staging.heydonto.com/users/current
- Production
https://api.heydonto.com/users/current
- 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/current \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"firstName": "John",
"lastName": "Doe"
}'- 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>'