{
  "openapi": "3.1.0",
  "info": {
    "title": "acords.co: loss-notice data fields as a typed read surface",
    "version": "0.1.0-earlyaccess",
    "description": "EARLY ACCESS STUB. This spec documents the typed field model of the insurance loss notice and the operations planned over it. NO OPERATION IN THIS SPEC IS CALLABLE YET: every operation is tagged x-status roadmap. The schema components are the free, keyless reference content of acords.co. Independent reference: not affiliated with, endorsed by, or licensed by ACORD Corporation; form names are used nominatively. Contact hello@api.insure for early access.",
    "contact": {
      "name": "api.insure estate",
      "email": "hello@api.insure",
      "url": "https://acords.co"
    }
  },
  "servers": [
    {
      "url": "https://acords.co",
      "description": "Serves this spec and the reference pages today. No API operation below is live; all are roadmap."
    }
  ],
  "paths": {
    "/schema": {
      "get": {
        "operationId": "getLossNoticeSchema",
        "summary": "Return the LossNotice JSON Schema (ROADMAP, not yet callable)",
        "description": "ROADMAP. Not yet callable. Will return the canonical JSON Schema for the LossNotice shape. Until then, the schema is published inline in this document under components.schemas.LossNotice.",
        "x-status": "roadmap",
        "responses": {
          "200": {
            "description": "The LossNotice schema.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LossNotice"
                }
              }
            }
          }
        }
      }
    },
    "/parse": {
      "post": {
        "operationId": "parseLossNotice",
        "summary": "Parse a completed loss notice into typed FNOL fields (ROADMAP, not yet callable)",
        "description": "ROADMAP. Not yet callable. Will accept a completed loss-notice document and return the typed LossNotice shape.",
        "x-status": "roadmap",
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "document": {
                    "type": "string",
                    "format": "binary",
                    "description": "Completed loss-notice document."
                  }
                },
                "required": [
                  "document"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The parsed loss notice.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LossNotice"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "LossNotice": {
        "type": "object",
        "description": "The typed field model of a first notice of loss (FNOL): the data fields commonly found on the industry-standard loss-notice forms. An original field model; not a reproduction of any ACORD form.",
        "required": [
          "form",
          "reported_at",
          "carrier",
          "policy_number",
          "named_insured",
          "date_of_loss",
          "loss_type"
        ],
        "properties": {
          "form": {
            "type": "string",
            "enum": [
              "property",
              "auto",
              "liability"
            ],
            "description": "Which loss-notice family the record maps to."
          },
          "reported_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the notice was filed. FNOL clocks start here."
          },
          "reported_by": {
            "type": "string",
            "description": "Who filed it: the insured, the agent of record, a broker."
          },
          "carrier": {
            "type": "string",
            "description": "Carrier the notice is addressed to."
          },
          "policy_number": {
            "type": "string",
            "description": "Policy the loss is claimed under."
          },
          "term_start": {
            "type": "string",
            "format": "date"
          },
          "term_end": {
            "type": "string",
            "format": "date"
          },
          "named_insured": {
            "type": "string"
          },
          "contact": {
            "$ref": "#/components/schemas/NoticeContact"
          },
          "date_of_loss": {
            "type": "string",
            "format": "date"
          },
          "time_of_loss": {
            "type": "string",
            "description": "Local time of the loss, when known."
          },
          "loss_type": {
            "type": "string",
            "description": "Peril, e.g. wind_hail, fire, water, collision, liability."
          },
          "loss_location": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "description": "Plain-language account of the loss."
          },
          "authorities_contacted": {
            "type": "string",
            "description": "Police or fire department and report number, if any."
          },
          "remarks": {
            "type": "string"
          }
        }
      },
      "NoticeContact": {
        "type": "object",
        "description": "The person the adjuster should reach.",
        "properties": {
          "name": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "email": {
            "type": "string",
            "format": "email"
          }
        }
      }
    }
  }
}