API documentation for HeyDonto Authentication and User Management
API documentation for HeyDonto Authentication and User Management
User management endpoints for creating, retrieving, updating, and deleting users in the system. Users are core entities in the HeyDonto platform that represent individuals with access to the system. Each user:
curl -i -X GET \
'https://docs.heydonto.com/_mock/apis/authentication/openapi/user?userRole=string' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
curl -i -X POST \
https://docs.heydonto.com/_mock/apis/authentication/openapi/user \
-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,
"role": "ADMIN",
"organizationId": 1,
"brandId": 1,
"siteId": 1
}'
curl -i -X PUT \
'https://docs.heydonto.com/_mock/apis/authentication/openapi/user/{userId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"email": "john.doe@example.com",
"firstName": "John",
"lastName": "Doe",
"isEnabled": true,
"role": "ADMIN",
"id": 123
}'
curl -i -X DELETE \
'https://docs.heydonto.com/_mock/apis/authentication/openapi/user/{userId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
Authentication endpoints for managing user sessions and access control. The authentication system: