> ## Documentation Index
> Fetch the complete documentation index at: https://apidocs.neetoform.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List thank-you pages

> List the thank-you pages of a form, oldest first. The response shows which page is primary.

> [!NOTE]
>
> Replace `{your-subdomain}` with your workspace’s subdomain. \
> Learn how to find your subdomain in [Workspace subdomain](https://apidocs.neetoform.com/api/workspace-subdomain.md).


## OpenAPI

````yaml bundled/thank-you-pages.yaml GET /forms/{form_id}/thank_you_pages
openapi: 3.0.3
info:
  title: NeetoForm Thank-You Pages APIs
  version: 2.0.0
servers:
  - description: NeetoForm APIs
    url: https://{your-subdomain}.neetoform.com/api/external/v2
    variables:
      your-subdomain:
        default: spinkart
        description: >-
          Replace **spinkart** with your [workspace's
          subdomain](/api/workspace-subdomain).
security: []
paths:
  /forms/{form_id}/thank_you_pages:
    get:
      tags:
        - Thank-You Pages
      summary: List thank-you pages
      description: >-
        List the thank-you pages of a form, oldest first. The response shows
        which page is primary.
      parameters:
        - $ref: '#/components/parameters/api_key_header'
        - $ref: '#/components/parameters/form_id_param'
        - $ref: '#/components/parameters/page_number_param'
        - $ref: '#/components/parameters/page_size_param'
      responses:
        '200':
          description: OK - Request succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/thank_you_pages_response'
        '404':
          $ref: '#/components/responses/response_form_not_found'
components:
  parameters:
    api_key_header:
      in: header
      name: X-Api-Key
      description: >-
        Use the X-Api-Key header to provide your workspace API key. Refer to
        [Authentication](/api/authentication) for more information.
      required: true
      schema:
        type: string
        default: your-api-key
    form_id_param:
      in: path
      name: form_id
      description: >-
        Unique ID of the form. Refer to [Getting the Form
        ID](/api/getting-form-id) for detailed instructions.
      required: true
      schema:
        type: string
    page_number_param:
      in: query
      name: page_number
      description: >-
        Page of results to retrieve, starting from 1. Defaults to 1 when
        omitted.
      required: false
      schema:
        type: integer
    page_size_param:
      in: query
      name: page_size
      description: Number of results per page. Defaults to 30 when omitted.
      required: false
      schema:
        type: integer
  schemas:
    thank_you_pages_response:
      type: object
      properties:
        thank_you_pages:
          type: array
          items:
            $ref: '#/components/schemas/thank_you_page'
        pagination:
          $ref: '#/components/schemas/pagination'
    thank_you_page:
      type: object
      properties:
        id:
          type: string
          example: 0b3c5a52-7a0e-4f2b-9d57-3d6a1a2f9c11
        title:
          type: string
          example: Pricing
        description:
          type: string
          example: ''
        kind:
          type: string
          enum:
            - custom_message
            - redirect_to_url
          example: redirect_to_url
        primary:
          type: boolean
          example: false
        message:
          type: string
          example: ''
        redirect_url:
          type: string
          nullable: true
          example: https://example.com/pricing
        show_redirect_message:
          type: boolean
          example: false
        redirect_message:
          type: string
          nullable: true
          example: <h2>Thank you.</h2>
        pass_event_details_to_redirect_url:
          type: boolean
          example: false
        social_sharing_enabled:
          type: boolean
          example: false
        show_resubmit_link:
          type: boolean
          example: false
        resubmit_link_text:
          type: string
          nullable: true
          example: Click here to submit another response
        created_at:
          $ref: '#/components/schemas/date_time_field'
    pagination:
      type: object
      properties:
        total_records:
          type: integer
        total_pages:
          type: integer
        current_page_number:
          type: integer
        page_size:
          type: integer
    error_response:
      type: object
      properties:
        error:
          type: string
    date_time_field:
      type: string
      format: date-time
  responses:
    response_form_not_found:
      description: Not Found - The form does not exist
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/error_response'
          example:
            error: Form does not exist.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.