Get all answers for a submission

GET /api/v1/form/{form_uuid}/submission/{submission_uuid}/answer

Path parameters

Query parameters

  • 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).

Responses

  • 200 application/json
    Hide response attribute Show response attribute object
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": "77bdf4fd-19dd-4969-8c91-84b2e84d91d1",
      "value": "this as an answer to a form question",
      "question": {
        "key": "what_is_your_name",
        "type": "string",
        "uuid": "9cad6615-0d0c-4586-8eb7-beb8b477c369",
        "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-10-16T11:10:14+01:00",
        "updated_at": "2024-10-16T11:10:14+01:00",
        "target_field": "name",
        "linked_primary": true,
        "linked_question": "App\\Http\\Resources\\FormBuilder\\LinkedFormQuestionResource",
        "selection_options": [
          "option 1",
          "option 2"
        ]
      },
      "created_at": "2024-10-16T11:10:14+01:00",
      "updated_at": "2024-10-16T11:10:14+01:00"
    }
  ]
}