API documentation for HeyDonto Authentication and User Management
API documentation for HeyDonto Authentication and User Management
curl -i -X POST \
https://docs.heydonto.com/_mock/apis/authentication/openapi/auth/login \
-H 'Content-Type: application/json' \
-d '{
"email": "user@example.com",
"password": "password123"
}'
{ "accessToken": "generatedAccessToken" }
curl -i -X GET \
https://docs.heydonto.com/_mock/apis/authentication/openapi/auth/user \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
{ "email": "user@example.com", "fhirStoreId": "heydonto-sandbox", "id": "1234", "organizationIds": [ 1, 2 ], "brandIds": [ 1, 3 ], "siteIds": [ 4, 5 ], "role": "ADMIN", "firstName": "John", "lastName": "Doe" }