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

# Export Submissions

> Export all submissions for a form as JSON.



## OpenAPI

````yaml GET /forms/{id}/export
openapi: 3.1.0
info:
  title: FormBnB API
  version: 1.0.0
  description: API for FormBnB - Form backend as a service
servers:
  - url: https://api.formbnb.com
security: []
paths:
  /forms/{id}/export:
    get:
      tags:
        - Forms
        - Submissions
      summary: Export submissions
      description: Export all submissions for a form as JSON.
      parameters:
        - schema:
            type: string
            description: Form ID
          required: true
          name: id
          in: path
        - schema:
            type: string
            description: Exclude spam submissions (deprecated, ignored)
          required: false
          name: exclude_spam
          in: query
        - schema:
            type: string
            description: Export submissions since this date (ISO 8601)
          required: false
          name: since
          in: query
      responses:
        '200':
          description: Exported submissions as JSON array
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Form not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT or API Key
      description: >-
        Authentication using either a FormBnB session JWT (issued by /auth) or
        an API key (prefixed with sk_). Both token types are passed as Bearer
        tokens in the Authorization header.

````