Survey
Voice note survey
Getting Started
Workflow
Processors
Organizations
Patients
Voice Notes
Transcripts
- GETGet paginated finalized sentences for a voice note
- GETFetch details for multiple finalized sentences
- POSTSearch sentences by embedding
- POSTSave voice note audio
- POSTGenerate audio upload URL
- GETGenerate presigned voice note audio URL
- GETGet list of questions to check in transcripts
- GETGet the answered status of predefined questions for a voice note
Survey
Visits
Survey
Voice note survey
POST
/
v1
/
notes
/
{voiceNoteId}
/
survey
curl --request POST \
--url https://app.enzo.health/api/v1/notes/{voiceNoteId}/survey \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"templateType": "oasis"
}'
{
"questions": [
{
"id": "<string>",
"instructions": "<string>",
"order": 123,
"answerType": "singleChoice",
"options": [
{
"value": "<string>",
"id": "<string>"
}
],
"triggerOptionIds": [
"<string>"
],
"followUpQuestions": [
{
"id": "<string>",
"instructions": "<string>",
"order": 123,
"answerType": "singleChoice",
"options": [
{
"value": "<string>",
"id": "<string>"
}
],
"triggerOptionIds": [
"<string>"
]
}
]
}
],
"answers": [
{
"id": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"surveyId": "<string>",
"questionId": "<string>",
"answerType": "singleChoice",
"value": "<any>"
}
],
"unansweredQuestionId": "<string>"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Body
application/json
Available options:
oasis
, soap
, narrative
, custom
Response
200
application/json
Successful response
Available options:
singleChoice
Available options:
singleChoice
curl --request POST \
--url https://app.enzo.health/api/v1/notes/{voiceNoteId}/survey \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"templateType": "oasis"
}'
{
"questions": [
{
"id": "<string>",
"instructions": "<string>",
"order": 123,
"answerType": "singleChoice",
"options": [
{
"value": "<string>",
"id": "<string>"
}
],
"triggerOptionIds": [
"<string>"
],
"followUpQuestions": [
{
"id": "<string>",
"instructions": "<string>",
"order": 123,
"answerType": "singleChoice",
"options": [
{
"value": "<string>",
"id": "<string>"
}
],
"triggerOptionIds": [
"<string>"
]
}
]
}
],
"answers": [
{
"id": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"surveyId": "<string>",
"questionId": "<string>",
"answerType": "singleChoice",
"value": "<any>"
}
],
"unansweredQuestionId": "<string>"
}