{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/invoicedataextraction-com/json-schema/invoicedataextraction-com-create-upload-session-response-schema.json",
  "title": "CreateUploadSessionResponse",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/invoicedataextraction-com-openapi.json#/components/schemas/CreateUploadSessionResponse",
  "type": "object",
  "required": [
    "success",
    "upload_session_id",
    "files"
  ],
  "properties": {
    "success": {
      "type": "boolean",
      "const": true
    },
    "upload_session_id": {
      "$ref": "#/$defs/ClientId"
    },
    "files": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "file_id",
          "file_name",
          "part_size"
        ],
        "properties": {
          "file_id": {
            "$ref": "#/$defs/ClientId"
          },
          "file_name": {
            "type": "string"
          },
          "part_size": {
            "type": "integer",
            "description": "The part size in bytes to split the file into; the same for every file in the session (8,388,608 today). A file smaller than this is one part."
          }
        }
      }
    }
  },
  "$defs": {
    "ClientId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9._:-]{1,200}$",
      "description": "An identifier you choose: 1 to 200 characters from letters, digits, dots, underscores, colons and hyphens. Used for `upload_session_id`, `file_id` and `submission_id`."
    }
  }
}