{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hedgespecialty-com/json-schema/hedgespecialty-com-intake-created-schema.json",
  "title": "IntakeCreated",
  "description": "Result of `POST /broker/intake`.",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hedgespecialty-com-openapi.yml#/components/schemas/IntakeCreated",
  "type": "object",
  "required": [
    "submission_id",
    "status_label",
    "marketing_status",
    "next_step",
    "applicant",
    "portal_url"
  ],
  "properties": {
    "submission_id": {
      "type": "string",
      "format": "uuid"
    },
    "state": {
      "type": "string"
    },
    "status_label": {
      "type": "string"
    },
    "marketing_status": {
      "type": "string",
      "enum": [
        "matching",
        "awaiting_finalization"
      ]
    },
    "next_step": {
      "type": "string"
    },
    "documents": {
      "type": "array",
      "description": "The originals stored on the submission, in upload order.",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "display_name": {
            "type": "string"
          }
        }
      }
    },
    "applicant": {
      "type": "object",
      "description": "What Hedge recorded for the insured — your fields, or the extractor's when you only sent text.",
      "properties": {
        "insured_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "dba_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "entity_type": {
          "type": [
            "string",
            "null"
          ]
        },
        "business_phone": {
          "type": [
            "string",
            "null"
          ]
        },
        "business_email": {
          "type": [
            "string",
            "null"
          ]
        },
        "website": {
          "type": [
            "string",
            "null"
          ]
        },
        "naics": {
          "type": [
            "string",
            "null"
          ]
        },
        "nature_of_business": {
          "type": [
            "string",
            "null"
          ]
        },
        "contact_first_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "contact_last_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "contact_email": {
          "type": [
            "string",
            "null"
          ]
        },
        "contact_phone": {
          "type": [
            "string",
            "null"
          ]
        },
        "mailing_address": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "line1": {
              "type": "string"
            },
            "line2": {
              "type": [
                "string",
                "null"
              ]
            },
            "city": {
              "type": "string"
            },
            "state": {
              "type": "string"
            },
            "zip": {
              "type": "string"
            }
          }
        }
      }
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Non-fatal notices (a file that was not stored, a background enqueue that needs attention, a replayed request)."
    },
    "portal_url": {
      "type": "string",
      "format": "uri"
    }
  }
}