> ## 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.

# Export submissions

> Export submissions as a CSV, XLSX or PDF file. The file is not returned in the response. It is made in the background, and a download link is emailed to the recipient. The link works for 15 days. If no submissions match, no email is sent.

> [!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/submissions.yaml POST /forms/{form_id}/exports
openapi: 3.0.3
info:
  title: NeetoForm 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}/exports:
    post:
      tags:
        - Submissions
      summary: Export submissions
      description: >-
        Export submissions as a CSV, XLSX or PDF file. The file is not returned
        in the response. It is made in the background, and a download link is
        emailed to the recipient. The link works for 15 days. If no submissions
        match, no email is sent.
      parameters:
        - $ref: '#/components/parameters/api_key_header'
        - $ref: '#/components/parameters/form_id_param'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/export_request'
      responses:
        '202':
          description: Accepted - Export is queued
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/export_response'
        '404':
          description: Not Found - The form does not exist
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_response'
              example:
                error: Form does not exist.
        '422':
          description: Unprocessable Entity - `export_type` or `recipient_email` is invalid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_response'
              example:
                error: 'export_type must be one of: pdf, csv, xlsx.'
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 for which you want to retrieve submissions. Refer
        to [Getting the Form ID](/api/getting-form-id) section for detailed
        instructions.
      required: true
      schema:
        type: string
  schemas:
    export_request:
      type: object
      required:
        - export_type
      properties:
        export_type:
          type: string
          enum:
            - pdf
            - csv
            - xlsx
          description: File format of the export.
        submission_ids:
          type: array
          items:
            type: string
          description: >-
            IDs of the submissions to export. If you leave it out, all
            submissions are exported.
        recipient_email:
          type: string
          format: email
          description: >-
            Email of an active team member in the workspace who gets the
            download link. Required when you use an API key.
          example: oliver@example.com
        include_hidden_fields:
          type: boolean
          default: false
        include_meta_data:
          type: boolean
          default: false
        include_question_descriptions:
          type: boolean
          default: false
    export_response:
      type: object
      properties:
        status:
          type: string
          example: queued
        export_type:
          type: string
          example: csv
        recipient_email:
          type: string
          format: email
          example: oliver@example.com
    error_response:
      type: object
      properties:
        error:
          type: string

````

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