---
title: "Gets a list of survey pages, each containing a list of the fields on that page."
method: GET
path: "/v2/surveys/{id}/fields"
tags: ["ApiSurvey"]
---

# Gets a list of survey pages, each containing a list of the fields on that page.

`GET /v2/surveys/{id}/fields`

## Path parameters

- `id` integer, required

## Response `200`

- ApiSurveyPage[]
  - `id` integer
  - `name` string, nullable
  - `fields` ApiSurveyField[], nullable
    - `id` integer
    - `type` string, nullable
    - `text` string, nullable
    - `isRequired` boolean
    - `defaultValue` string, nullable
    - `mode` string, nullable
    - `choices` ApiSurveyQuestionChoice[], nullable
      - `id` integer
      - `text` string, nullable
    - `subFields` ApiSurveyField[], nullable
    - `hasOtherOption` boolean
    - `otherOptionChoiceId` integer
    - `otherOptionSubFieldId` integer
    - `otherOptionTextFieldId` integer
    - `isAssignedToContactDataField` boolean
    - `assignedContactDataFieldName` string, nullable
    - `assignedContactDataExistsAction` 'OverwriteData' | 'HideField' | 'NotAvailableInThisVersion'

---

[API](https://skmtc.net/dotdigital/apis/apiconnector-com.md) · [All operations](https://skmtc.net/dotdigital/apis/apiconnector-com/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dotdigital/apiconnector-com/revisions/109c0537cf77/schema)
