{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lumethic-com/json-schema/lumethic-com-verification-request-create-schema.json",
  "title": "VerificationRequestCreate",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lumethic-com-openapi.json#/components/schemas/VerificationRequestCreate",
  "properties": {
    "subject": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1,
      "title": "Subject",
      "description": "The requester's own words for what is being asked ('front of the item', 'entry 48392'). Shown on the landing page and the record, labelled as the requester's words; never something Lumethic verified. Control characters are rejected."
    },
    "instructions": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2000
        },
        {
          "type": "null"
        }
      ],
      "title": "Instructions",
      "description": "Free text for the landing page. Control characters other than newlines are rejected."
    },
    "expires_at": {
      "type": "string",
      "format": "date-time",
      "title": "Expires At",
      "description": "After this instant the public routes answer 410 REQUEST_EXPIRED. Must be in the future and at most 365 days out."
    },
    "max_submissions": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Max Submissions",
      "description": "Cap on accepted uploads. Defaults by plan (free 5, paid 25) and is limited by a plan ceiling (free 5, Basic 25, Professional 250, Enterprise unlimited); above the ceiling is 422."
    },
    "share_with_provider": {
      "type": "boolean",
      "title": "Share With Provider",
      "description": "Create the public share for every submission at upload, so the provider reaches the record.",
      "default": true
    },
    "mode": {
      "$ref": "#/$defs/RequestMode",
      "description": "'existing_original' takes an uploaded camera original. 'capture' takes a photograph made with Lumethic Capture: the app mints its challenge and validates its attestation with the request token in the X-Lumethic-Request-Token header, and the upload must carry that attestation_id (iOS only today).",
      "default": "existing_original"
    }
  },
  "type": "object",
  "required": [
    "subject",
    "expires_at"
  ],
  "$defs": {
    "RequestMode": {
      "type": "string",
      "enum": [
        "existing_original",
        "capture"
      ],
      "title": "RequestMode",
      "description": "How the provider answers a request: an uploaded camera original, or a capture with Lumethic Capture."
    }
  }
}