{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/medsender/json-schema/medsender-sent-fax-create-request-schema.json",
  "title": "SentFaxCreateRequest",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/medsender-openapi.json#/components/schemas/SentFaxCreateRequest",
  "type": "object",
  "required": [
    "file",
    "from_number",
    "to_number"
  ],
  "properties": {
    "file": {
      "type": "string",
      "format": "binary",
      "description": "PDF or TIFF file."
    },
    "from_number": {
      "type": "string",
      "description": "Fax number in E.164 format.",
      "pattern": "^\\+[1-9]\\d{1,14}$"
    },
    "to_number": {
      "type": "string",
      "description": "Fax number in E.164 format.",
      "pattern": "^\\+[1-9]\\d{1,14}$"
    },
    "callback_url": {
      "type": "string",
      "format": "uri"
    },
    "patient_name": {
      "type": "string"
    },
    "patient_dob": {
      "type": "string",
      "format": "date"
    },
    "sender_name": {
      "type": "string"
    },
    "recipient_name": {
      "type": "string"
    },
    "note": {
      "type": "string"
    },
    "document_type": {
      "type": "string",
      "enum": [
        "both",
        "document_only",
        "access_code_sheet_only"
      ],
      "default": "both"
    }
  }
}