Survey API
Get survey responses
GET /api/surveys/{all | survey_code}/responses
V4
Retrieve survey responses.
use all if you are not sure which survey code to use
there are some predefined survey codes below
Survey code | Description | Â | |
---|---|---|---|
1 |
| Return all surveys | Return all surveys |
2 |
| Cancel intake survey | Â |
3 |
| Post visit survey (provider side) | Â |
4 |
| Cancel call survey (patient side) | Â |
5 |
| Â | Â |
Parameters
Parameter | Type | Description |
---|---|---|
|
| (required)
|
|
| (optional) Start and end search period |
|
| (optional) Comma separated value of clinic codes |
|
| (optional) Comma separated value of visit ids |
Sample Request
curl --location 'https://api-ms.vsee.me/api/surveys/all/responses?clinic_codes=vclinic&limit=2' \
--header 'X-ApiToken: ***'
{
"data": [
{
"id": "62685d75-b290-4e71-9bf6-33e464457b11",
"survey_code": "cancel_call_survey",
"clinic_code": "vclinic",
"visit_id": "22183940",
"intake_id": "",
"room_code": "",
"user_id": "16811538",
"data": {
"reason": "test_call",
"member_id": "21728487",
"provider_id": "0"
},
"created": 1651006837
},
…
],
"total_count": 1131
}
Sample Request for cancel call survey only
curl --location 'https://api-ms.vsee.me/api/surveys/cancel_call_survey/responses?clinic_codes=vclinic&limit=2' \
--header 'X-ApiToken: ***'