Get all answers for a submission
Headers
-
Content-Type string
-
Accept string
-
X-PLANNR-ACCOUNT-UUID string
Query parameters
-
filter[uuid] string
Filter by a comma separated list of UUIDs.
-
sort string
Field to sort by. Valid fields are [created_at, updated_at, value]. Negative sign to denote DESC. Defaults to '-created_at'.
-
per_page integer
Number of results to return with pagination (Default 15. Max 500).
GET /api/v1/form/{form_uuid}/submission/{submission_uuid}/answer
curl \
-X GET https://api.plannrcrm.com/api/v1/form/form_uuid/submission/submission_uuid/answer \
-H "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}"
Response examples (200)
{
"data": [
{
"uuid": "b6d5afab-2ebc-4955-9c7e-64d0b6856d1c",
"value": "this as an answer to a form question",
"question": {
"key": "what_is_your_name",
"type": "string",
"uuid": "c5104d97-a87e-4227-8c05-40890e44c49a",
"title": "What is your name?",
"caption": "Your full legal name",
"section": "App\\Http\\Resources\\FormSectionResource",
"position": 1,
"required": true,
"help_text": "Gareth",
"created_at": "2024-11-20T13:24:01+00:00",
"updated_at": "2024-11-20T13:24:01+00:00",
"target_field": "name",
"linked_primary": true,
"linked_question": "App\\Http\\Resources\\FormBuilder\\LinkedFormQuestionResource",
"selection_options": [
"option 1",
"option 2"
]
},
"created_at": "2024-11-20T13:24:01+00:00",
"updated_at": "2024-11-20T13:24:01+00:00"
}
]
}