{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dotsy-ai/json-schema/dotsy-ai-form-submission-list-schema.json",
  "title": "FormSubmissionList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dotsy-ai-forms-api-openapi.yml#/components/schemas/FormSubmissionList",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FormSubmission"
      }
    },
    "nextCursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pass as `cursor` (with the same `limit`) for the next page; null on the last page."
    },
    "formId": {
      "type": "string",
      "description": "The form that was listed. Omitted when `form` was not passed (all forms, newest first)."
    }
  },
  "required": [
    "items",
    "nextCursor"
  ],
  "$defs": {
    "FormSubmission": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Submission id."
        },
        "formId": {
          "type": "string",
          "description": "The form this was submitted through."
        },
        "pagePath": {
          "type": [
            "string",
            "null"
          ],
          "description": "Path of the page the visitor submitted from, when known."
        },
        "fields": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "What the visitor filled in: field name to value. Personal data lives here."
        },
        "replyTo": {
          "type": [
            "string",
            "null"
          ],
          "description": "The visitor's email address, when the form has one. Use it to search."
        },
        "meta": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": {},
          "description": "Extra facts about the submission, such as a hash of the visitor's IP address (`ip_hash`)."
        },
        "sizeBytes": {
          "type": "integer",
          "description": "Size of the stored submission in bytes."
        },
        "createdAt": {
          "type": "integer",
          "description": "When it was submitted, Unix ms."
        }
      },
      "required": [
        "id",
        "formId",
        "pagePath",
        "fields",
        "replyTo",
        "meta",
        "sizeBytes",
        "createdAt"
      ]
    }
  }
}