{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ship-page/json-schema/ship-page-form-response-schema.json",
  "title": "FormResponse",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ship-page-openapi.json#/components/schemas/FormResponse",
  "type": "object",
  "required": [
    "id",
    "form",
    "form_label",
    "page",
    "kind",
    "created_at",
    "country",
    "read",
    "spam",
    "locked",
    "held",
    "fields"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "form": {
      "type": "string",
      "description": "The form's id, as in forms[].id."
    },
    "form_label": {
      "type": "string"
    },
    "page": {
      "type": "string",
      "description": "The HTML file the form is on."
    },
    "kind": {
      "type": "string",
      "enum": [
        "copy",
        "get",
        "native",
        "test"
      ],
      "description": "native: a real POST the server stored. copy: copied by the forms script after the page's own code handled the submit. get: a GET form copied by the script. test: sent from the owner's test link."
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "country": {
      "type": [
        "string",
        "null"
      ],
      "description": "The visitor's country code, when known."
    },
    "read": {
      "type": "boolean"
    },
    "spam": {
      "type": "boolean",
      "description": "Marked as spam, for example sent without a valid page token. Spam isn't counted or emailed and is deleted after 30 days."
    },
    "locked": {
      "type": "boolean",
      "description": "The account's plan doesn't show this response in full: fields carry their names and a short, scrubbed start of each value, never contact details."
    },
    "held": {
      "type": "boolean",
      "description": "Held until our abuse check clears the page version it came from; a held response has no fields."
    },
    "fields": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "value"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        }
      },
      "description": "What the visitor sent, in form order."
    }
  }
}