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
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>"
}
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>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
oasis
, soap
, narrative
, custom