{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/medsender/json-schema/medsender-v3-sent-fax-create-request-schema.json",
  "title": "V3SentFaxCreateRequest",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/medsender-openapi.json#/components/schemas/V3SentFaxCreateRequest",
  "type": "object",
  "required": [
    "file",
    "from_number",
    "to_number"
  ],
  "properties": {
    "file": {
      "type": "string",
      "format": "binary",
      "description": "The document to send."
    },
    "from_number": {
      "type": "string",
      "description": "An active fax number owned by the linked organization."
    },
    "to_number": {
      "type": "string",
      "description": "Destination fax number."
    },
    "document_title": {
      "type": "string"
    },
    "patient_name": {
      "type": "string"
    },
    "patient_dob": {
      "type": "string",
      "format": "date"
    },
    "recipient_name": {
      "type": "string"
    },
    "note": {
      "type": "string"
    },
    "document_type": {
      "type": "string",
      "enum": [
        "both",
        "document_only"
      ],
      "default": "both",
      "description": "document_only omits the cover sheet."
    },
    "test_outcome": {
      "type": "string",
      "enum": [
        "success",
        "failure"
      ],
      "default": "success",
      "description": "Test keys only: the simulated completion. Returns 400 with a live key."
    }
  }
}