API documentation for HeyDonto API
curl -i -X GET \ 'https://docs.heydonto.com/_mock/apis/heydonto/openapi/site/{siteId}/assistant' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
[ { "assistantName": "HeyDonto AI", "assistantInstructions": "Ensure all appointments are updated daily.", "siteId": 123, "id": 456 } ]
Instructions for the assistant
curl -i -X POST \ 'https://docs.heydonto.com/_mock/apis/heydonto/openapi/site/{siteId}/assistant' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'Content-Type: application/json' \ -d '{ "assistantName": "HeyDonto AI", "assistantInstructions": "Ensure all appointments are updated daily.", "siteId": 123 }'
{ "assistantName": "HeyDonto AI", "assistantInstructions": "Ensure all appointments are updated daily.", "siteId": 123, "id": 456 }
curl -i -X GET \ 'https://docs.heydonto.com/_mock/apis/heydonto/openapi/site/{siteId}/assistant/{siteAssistantId}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{ "assistantName": "HeyDonto AI", "assistantInstructions": "Ensure all appointments are updated daily.", "siteId": 123, "id": 456 }
Instructions for the assistant
curl -i -X PUT \ 'https://docs.heydonto.com/_mock/apis/heydonto/openapi/site/{siteId}/assistant/{siteAssistantId}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'Content-Type: application/json' \ -d '{ "assistantName": "HeyDonto AI", "assistantInstructions": "Ensure all appointments are updated daily.", "siteId": 123, "id": 456 }'
{ "assistantName": "HeyDonto AI", "assistantInstructions": "Ensure all appointments are updated daily.", "siteId": 123, "id": 456 }
curl -i -X DELETE \ 'https://docs.heydonto.com/_mock/apis/heydonto/openapi/site/{siteId}/assistant/{siteAssistantId}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{ "message": "Unauthorized", "statusCode": 401 }
curl -i -X POST \ 'https://docs.heydonto.com/_mock/apis/heydonto/openapi/site/{siteId}/assistant/{siteAssistantId}/files?description=Instructions%20document%20for%20the%20assistant' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'Content-Type: multipart/form-data' \ -F file=string
{ "message": "Unauthorized", "statusCode": 401 }
curl -i -X DELETE \ 'https://docs.heydonto.com/_mock/apis/heydonto/openapi/site/{siteId}/assistant/{siteAssistantId}/files/{assistantFileId}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{ "message": "Unauthorized", "statusCode": 401 }
curl -i -X POST \ 'https://docs.heydonto.com/_mock/apis/heydonto/openapi/site/{siteId}/assistant/{siteAssistantId}/chat' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'Content-Type: application/json' \ -d '{ "message": "Please update all appointments for today." }'
{ "message": "Unauthorized", "statusCode": 401 }