{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/curlec/json-schema/curlec-document-schema.json",
  "title": "Document",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/curlec-documents-api-openapi.yml#/components/schemas/Document",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique document identifier. Example: doc_EsyWjHrfzb59Re. Always 14 alphanumeric characters."
    },
    "entity": {
      "type": "string",
      "enum": [
        "document"
      ]
    },
    "name": {
      "type": "string",
      "description": "Filename of the uploaded document."
    },
    "mime_type": {
      "type": "string",
      "enum": [
        "image/jpg",
        "image/jpeg",
        "image/png",
        "application/pdf"
      ],
      "description": "MIME type of the uploaded file."
    },
    "size": {
      "type": "integer",
      "description": "File size in bytes."
    },
    "purpose": {
      "type": "string",
      "description": "Upload reason. Example: dispute_evidence."
    },
    "created_at": {
      "type": "integer",
      "description": "Unix timestamp of upload."
    }
  }
}