{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/faxterra-com/json-schema/faxterra-com-received-fax-schema.json",
  "title": "ReceivedFax",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/faxterra-com-openapi.json#/components/schemas/ReceivedFax",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "from": {
      "type": "string",
      "description": "E.164"
    },
    "fromName": {
      "anyOf": [
        {
          "type": "string",
          "description": "The sender by name: the address book's name for the number, else the latest cover-page name, else a curated label"
        },
        {
          "type": "null"
        }
      ]
    },
    "fromNameSource": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "saved",
            "history",
            "directory",
            "curated"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "to": {
      "type": "string",
      "description": "The account's number it arrived on, E.164"
    },
    "pages": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "receivedAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "unread": {
      "type": "boolean"
    },
    "likelySpam": {
      "type": "boolean",
      "description": "Our filter flagged it"
    },
    "documentAvailable": {
      "type": "boolean",
      "description": "False once retention removed the document, and, at the MCP endpoint or to an emailed-code sign-in, for a fax the account held while it had the HIPAA add-on"
    },
    "documentExpiresAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "test": {
      "type": "boolean",
      "description": "The echo of a fax this account sent to the echo test number, +12015550100"
    }
  },
  "required": [
    "id",
    "from",
    "fromName",
    "fromNameSource",
    "to",
    "pages",
    "receivedAt",
    "unread",
    "likelySpam",
    "documentAvailable",
    "documentExpiresAt",
    "test"
  ]
}