{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/infinihash-com/json-schema/infinihash-com-doc-upload-accepted-schema.json",
  "title": "DocUploadAccepted",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/infinihash-com-documents-api-openapi.yml#/components/schemas/DocUploadAccepted",
  "type": "object",
  "properties": {
    "documentId": {
      "type": "string"
    },
    "docType": {
      "type": "string"
    },
    "detectedType": {
      "type": "string",
      "description": "Present when docType was \"auto\"."
    },
    "submissionId": {
      "type": "string",
      "description": "Only on the deferred-preflight response."
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "pending_manual_review"
      ],
      "description": "\"pending\": extraction runs in the background, poll GET /documents/{submissionId}. \"pending_manual_review\": the image quality gate was unavailable; the document is parked and the submission re-processed automatically."
    },
    "reason": {
      "type": "string",
      "enum": [
        "preflight_unavailable"
      ]
    },
    "message": {
      "type": "string"
    },
    "_links": {
      "type": "object",
      "properties": {
        "submission": {
          "type": "string"
        },
        "documents": {
          "type": "string"
        }
      }
    }
  },
  "required": [
    "documentId",
    "status"
  ]
}