API documentation for HeyDonto API
curl -i -X GET \
https://docs.heydonto.com/_mock/apis/heydonto/openapi/site \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
List of sites retrieved successfully.
The address of the site
The email of the decision-maker user
Array of dental service IDs associated with the site
Array of dental practice IDs associated with the site
The date and time the site was last updated
[ { "name": "Downtown Clinic", "address": { … }, "googlePlaceId": "ChIJN1t_tDeuEmsRUsoyG83frY4", "organizationTitle": "HealthCorp", "organizationId": 1, "isAddingNewOrganization": true, "brandTitle": "BrandCorp", "brandId": 2, "isAddingNewBrand": false, "phoneNumber": "+1-555-555-5555", "website": "https://www.downtownclinic.com", "anyDeskIp": "192.168.1.1", "practiceManagementSystemId": 123, "isEnabled": true, "isAddingDecisionMakerUser": false, "decisionMakerUserId": 45, "decisionMakerUserEmail": "decisionmaker@example.com", "decisionMakerUserPassword": "StrongPassword123", "decisionMakerUserFirstName": "Jane", "decisionMakerUserLastName": "Doe", "dentalServiceIds": [ … ], "dentalPracticeIds": [ … ], "id": 100, "createdAt": "2021-08-01T00:00:00.000Z", "updatedAt": "2021-08-01T00:00:00.000Z" } ]
The address of the site
The email of the decision-maker user
Array of dental service IDs associated with the site
curl -i -X POST \
https://docs.heydonto.com/_mock/apis/heydonto/openapi/site \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "Downtown Clinic",
"address": {
"street": "123 Main St",
"city": "New York",
"zipCode": "10001"
},
"googlePlaceId": "ChIJN1t_tDeuEmsRUsoyG83frY4",
"organizationTitle": "HealthCorp",
"organizationId": 1,
"isAddingNewOrganization": true,
"brandTitle": "BrandCorp",
"brandId": 2,
"isAddingNewBrand": false,
"phoneNumber": "+1-555-555-5555",
"website": "https://www.downtownclinic.com",
"anyDeskIp": "192.168.1.1",
"practiceManagementSystemId": 123,
"isEnabled": true,
"isAddingDecisionMakerUser": false,
"decisionMakerUserId": 45,
"decisionMakerUserEmail": "decisionmaker@example.com",
"decisionMakerUserPassword": "StrongPassword123",
"decisionMakerUserFirstName": "Jane",
"decisionMakerUserLastName": "Doe",
"dentalServiceIds": [
1,
2,
3
],
"dentalPracticeIds": [
10,
11,
12
]
}'
Site created successfully.
The address of the site
The email of the decision-maker user
Array of dental service IDs associated with the site
Array of dental practice IDs associated with the site
{ "name": "Downtown Clinic", "address": { "street": "123 Main St", "city": "New York", "zipCode": "10001" }, "googlePlaceId": "ChIJN1t_tDeuEmsRUsoyG83frY4", "organizationTitle": "HealthCorp", "organizationId": 1, "isAddingNewOrganization": true, "brandTitle": "BrandCorp", "brandId": 2, "isAddingNewBrand": false, "phoneNumber": "+1-555-555-5555", "website": "https://www.downtownclinic.com", "anyDeskIp": "192.168.1.1", "practiceManagementSystemId": 123, "isEnabled": true, "isAddingDecisionMakerUser": false, "decisionMakerUserId": 45, "decisionMakerUserEmail": "decisionmaker@example.com", "decisionMakerUserPassword": "StrongPassword123", "decisionMakerUserFirstName": "Jane", "decisionMakerUserLastName": "Doe", "dentalServiceIds": [ 1, 2, 3 ], "dentalPracticeIds": [ 10, 11, 12 ], "id": 100, "createdAt": "2021-08-01T00:00:00.000Z", "updatedAt": "2021-08-01T00:00:00.000Z" }
curl -i -X GET \
'https://docs.heydonto.com/_mock/apis/heydonto/openapi/site/{siteId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
Site retrieved successfully.
The address of the site
The email of the decision-maker user
Array of dental service IDs associated with the site
Array of dental practice IDs associated with the site
{ "name": "Downtown Clinic", "address": { "street": "123 Main St", "city": "New York", "zipCode": "10001" }, "googlePlaceId": "ChIJN1t_tDeuEmsRUsoyG83frY4", "organizationTitle": "HealthCorp", "organizationId": 1, "isAddingNewOrganization": true, "brandTitle": "BrandCorp", "brandId": 2, "isAddingNewBrand": false, "phoneNumber": "+1-555-555-5555", "website": "https://www.downtownclinic.com", "anyDeskIp": "192.168.1.1", "practiceManagementSystemId": 123, "isEnabled": true, "isAddingDecisionMakerUser": false, "decisionMakerUserId": 45, "decisionMakerUserEmail": "decisionmaker@example.com", "decisionMakerUserPassword": "StrongPassword123", "decisionMakerUserFirstName": "Jane", "decisionMakerUserLastName": "Doe", "dentalServiceIds": [ 1, 2, 3 ], "dentalPracticeIds": [ 10, 11, 12 ], "id": 100, "createdAt": "2021-08-01T00:00:00.000Z", "updatedAt": "2021-08-01T00:00:00.000Z" }
The address of the site
The email of the decision-maker user
Array of dental service IDs associated with the site
Array of dental practice IDs associated with the site
curl -i -X PUT \
'https://docs.heydonto.com/_mock/apis/heydonto/openapi/site/{siteId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "Downtown Clinic",
"address": {
"street": "123 Main St",
"city": "New York",
"zipCode": "10001"
},
"googlePlaceId": "ChIJN1t_tDeuEmsRUsoyG83frY4",
"organizationTitle": "HealthCorp",
"organizationId": 1,
"isAddingNewOrganization": true,
"brandTitle": "BrandCorp",
"brandId": 2,
"isAddingNewBrand": false,
"phoneNumber": "+1-555-555-5555",
"website": "https://www.downtownclinic.com",
"anyDeskIp": "192.168.1.1",
"practiceManagementSystemId": 123,
"isEnabled": true,
"isAddingDecisionMakerUser": false,
"decisionMakerUserId": 45,
"decisionMakerUserEmail": "decisionmaker@example.com",
"decisionMakerUserPassword": "StrongPassword123",
"decisionMakerUserFirstName": "Jane",
"decisionMakerUserLastName": "Doe",
"dentalServiceIds": [
1,
2,
3
],
"dentalPracticeIds": [
10,
11,
12
],
"id": 100
}'
Site updated successfully.
The address of the site
The email of the decision-maker user
Array of dental service IDs associated with the site
Array of dental practice IDs associated with the site
{ "name": "Downtown Clinic", "address": { "street": "123 Main St", "city": "New York", "zipCode": "10001" }, "googlePlaceId": "ChIJN1t_tDeuEmsRUsoyG83frY4", "organizationTitle": "HealthCorp", "organizationId": 1, "isAddingNewOrganization": true, "brandTitle": "BrandCorp", "brandId": 2, "isAddingNewBrand": false, "phoneNumber": "+1-555-555-5555", "website": "https://www.downtownclinic.com", "anyDeskIp": "192.168.1.1", "practiceManagementSystemId": 123, "isEnabled": true, "isAddingDecisionMakerUser": false, "decisionMakerUserId": 45, "decisionMakerUserEmail": "decisionmaker@example.com", "decisionMakerUserPassword": "StrongPassword123", "decisionMakerUserFirstName": "Jane", "decisionMakerUserLastName": "Doe", "dentalServiceIds": [ 1, 2, 3 ], "dentalPracticeIds": [ 10, 11, 12 ], "id": 100, "createdAt": "2021-08-01T00:00:00.000Z", "updatedAt": "2021-08-01T00:00:00.000Z" }
curl -i -X DELETE \
'https://docs.heydonto.com/_mock/apis/heydonto/openapi/site/{siteId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
{ "message": "Unauthorized", "statusCode": 401 }