{
  "openapi": "3.1.0",
  "paths": {
    "/v1/business/registry/search": {
      "post": {
        "description": "Search business registries to find registered businesses before verifying them. Records are drawn from authoritative sources — state registries, the IRS, and licensing agencies. Returns each match with its Palm ID, registration details (legal name, entity type, registration number, formation date, jurisdictions, and current status), and principal address.",
        "operationId": "searchBusinessRegistry",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BusinessRegistrySearchRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Search results returned successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "example": "list"
                    },
                    "data": {
                      "type": "array",
                      "description": "Response format depends on your account configuration. Contact support@getpalm.com if you have questions.",
                      "items": {
                        "oneOf": [
                          {
                            "$ref": "#/components/schemas/RegistrySearchResult",
                            "title": "Default"
                          },
                          {
                            "$ref": "#/components/schemas/RegistrySearchExpandedResult",
                            "title": "Expanded Result"
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetail"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized - Invalid or missing API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationProblemDetail"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RateLimitProblemDetail"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorProblemDetail"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Search business registries",
        "tags": [
          "Registry"
        ]
      }
    },
    "/v1/business/registry/{registration_jurisdiction}/{registration_number}": {
      "get": {
        "description": "Retrieve a detailed business record from the registry by jurisdiction and registration number. Returns a fuller record than search, including connected people (associates), standing, fictitious names, and industry codes.",
        "operationId": "getBusinessFromRegistry",
        "parameters": [
          {
            "name": "registration_jurisdiction",
            "required": true,
            "in": "path",
            "description": "Registration jurisdiction (e.g., US-CA, US-DE)",
            "schema": {
              "example": "US-FL",
              "type": "string"
            }
          },
          {
            "name": "registration_number",
            "required": true,
            "in": "path",
            "description": "Registry-assigned registration/file number",
            "schema": {
              "example": "814956",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Business details retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegistryBusinessDetail"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized - Invalid or missing API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationProblemDetail"
                }
              }
            }
          },
          "404": {
            "description": "Business not found in registry"
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RateLimitProblemDetail"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorProblemDetail"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Get business from registry",
        "tags": [
          "Registry"
        ]
      }
    },
    "/v1/business/registry/{registration_jurisdiction}/name-eligibility": {
      "get": {
        "description": "> **⚠️ Early access** — This endpoint is in preview and may change in backwards-incompatible ways before it is marked stable. Avoid depending on it in production, and [reach out](mailto:support@getpalm.com) before building on it.\n\nCheck whether a prospective business name can be registered in a jurisdiction before filing a formation. Combines the jurisdiction's naming rules (required designators, prohibited and restricted words, character limits) with registry availability. Returns a single `eligible` answer plus `violations` explaining any naming-rule problems; an auto-fixable designator problem carries a `fix`. Pass `suggest=true` to also receive alternative name ideas in `alternatives`, and `screen=true` to also screen the name for content issues such as obscenity or deceptive similarity to a government agency; screening findings come back as `advisory` violations.",
        "operationId": "checkNameEligibility",
        "parameters": [
          {
            "name": "registration_jurisdiction",
            "required": true,
            "in": "path",
            "description": "A US state, DC or Puerto Rico (ISO 3166-2), e.g., US-TX or US-PR",
            "schema": {
              "example": "US-TX",
              "type": "string"
            }
          },
          {
            "name": "name",
            "required": true,
            "in": "query",
            "description": "Prospective business name to check",
            "schema": {
              "example": "Maple Street Ventures LLC",
              "type": "string"
            }
          },
          {
            "name": "entity_type",
            "required": true,
            "in": "query",
            "description": "Entity type to check the name against",
            "schema": {
              "enum": [
                "llc",
                "professional_llc",
                "corporation",
                "professional_corporation"
              ],
              "type": "string"
            }
          },
          {
            "name": "suggest",
            "required": false,
            "in": "query",
            "description": "Return alternative name suggestions. Note: this increases response time.",
            "schema": {
              "example": false,
              "type": "boolean"
            }
          },
          {
            "name": "screen",
            "required": false,
            "in": "query",
            "description": "Screen the name for content issues (obscenity, deceptive agency similarity). Note: this increases response time.",
            "schema": {
              "example": false,
              "type": "boolean"
            }
          },
          {
            "name": "profession",
            "required": false,
            "in": "query",
            "description": "The licensed profession the business will practise. Some jurisdictions set professional names by profession (a California pharmacy corporation must include \"pharmacy\" or \"pharmacist\", for one); pass it to apply those rules. Without it, those rules are skipped and the response includes a `profession_rules_not_checked` advisory. For an LLC or corporation, a profession the jurisdiction lets that entity type practise only as a professional entity returns a `professional_entity_required` advisory.",
            "schema": {
              "enum": [
                "accountancy",
                "acupuncture",
                "applied_behavior_analysis",
                "architecture",
                "audiology",
                "chiropractic",
                "clinical_social_work",
                "creative_arts_therapy",
                "dental_hygiene",
                "dentistry",
                "dietetics",
                "engineering",
                "geology",
                "land_surveying",
                "landscape_architecture",
                "law",
                "marriage_family_therapy",
                "medicine",
                "midwifery",
                "mortuary_science",
                "naturopathic_medicine",
                "nursing",
                "occupational_therapy",
                "opticianry",
                "optometry",
                "pharmacy",
                "physical_therapy",
                "physician_assistant",
                "podiatry",
                "professional_clinical_counseling",
                "psychoanalysis",
                "psychology",
                "shorthand_reporting",
                "social_work",
                "soil_science",
                "speech_language_pathology",
                "veterinary_medicine"
              ],
              "type": "string"
            }
          },
          {
            "name": "subtype",
            "required": false,
            "in": "query",
            "description": "The statutory sub-form of the entity, where a jurisdiction names it differently: `low_profit` (a low-profit limited liability company), `close` (a close corporation), `benefit` (a benefit or public benefit corporation) or `statutory_close` (a statutory close corporation). Omit it for an ordinary entity.",
            "schema": {
              "enum": [
                "low_profit",
                "close",
                "benefit",
                "statutory_close"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Eligibility result returned successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NameEligibilityResult"
                },
                "example": {
                  "eligible": false,
                  "compliant": false,
                  "violations": [
                    {
                      "rule": "required_designator",
                      "severity": "error",
                      "message": "Texas LLC names must end with an accepted designator such as 'LLC' or 'Limited Liability Company'.",
                      "fix": {
                        "reason": "append_designator",
                        "message": "Add the required 'LLC' designator."
                      }
                    }
                  ],
                  "available": true,
                  "alternatives": [
                    "Maple Street Holdings LLC"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid jurisdiction, name, or entity_type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetail"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized - Invalid or missing API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationProblemDetail"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RateLimitProblemDetail"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorProblemDetail"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Check business name eligibility",
        "tags": [
          "Registry"
        ]
      }
    },
    "/v1/business/registry/{registration_jurisdiction}/name-eligibility/designator": {
      "get": {
        "description": "> **⚠️ Early access** — This endpoint is in preview and may change in backwards-incompatible ways before it is marked stable. Avoid depending on it in production, and [reach out](mailto:support@getpalm.com) before building on it.\n\nList the name designators (also called suffixes) a jurisdiction accepts for each entity type — the `LLC`, `Inc.`, or `P.C.` a business name must carry to be filed there.\n\nCall this before collecting a name so you can offer the valid designators up front, or append one on the user's behalf, rather than discovering the requirement from a rejected name. Omit `entity_type` to receive every entity type in one response.\n\nA few jurisdictions mandate no designator for an entity type (California corporations, for one). Those return `required: false` with an empty `accepted` list, meaning a name may be filed with or without one.\n\nAn entity type a jurisdiction does not permit at all is left out of the response (California offers no professional LLC, for one); the name-eligibility endpoint reports it as `entity_type_unavailable`.\n\nDesignators are one of several naming requirements. A name carrying a valid designator can still be rejected for other reasons, so check the finished name with the name-eligibility endpoint before filing.",
        "operationId": "getNameDesignators",
        "parameters": [
          {
            "name": "registration_jurisdiction",
            "required": true,
            "in": "path",
            "description": "A US state, DC or Puerto Rico (ISO 3166-2), e.g., US-TX or US-PR",
            "schema": {
              "example": "US-TX",
              "type": "string"
            }
          },
          {
            "name": "entity_type",
            "required": false,
            "in": "query",
            "description": "Limit the response to one entity type. Omit to receive all of them.",
            "schema": {
              "enum": [
                "llc",
                "professional_llc",
                "corporation",
                "professional_corporation"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Accepted designators returned successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NameDesignatorResult"
                }
              }
            }
          },
          "400": {
            "description": "Invalid jurisdiction or entity_type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetail"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized - Invalid or missing API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationProblemDetail"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RateLimitProblemDetail"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorProblemDetail"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Get accepted name designators",
        "tags": [
          "Registry"
        ]
      }
    },
    "/v1/business": {
      "post": {
        "description": "Add one of your businesses, customers or applicants to Palm. This is a common first step when integrating with Palm. Provide optional display name, metadata, and vault data. Vault fields use the `business.*` key format (e.g., `business.legal_name`, `business.ein`). If you plan to file an EIN application, include the required vault fields: legal_name, entity_type, formation_jurisdiction, formation_date, address_line_1, city, region, and postal_code. A business can also stand for one state registration of a company. If you keep a company's registrations in other states as separate businesses, you can link each one to its domestic business with `domestic_business`, so `registration_type` reads `foreign` and the domestic business lists it. Linking is optional. To link, set `business.formation_jurisdiction`, `business.registration_jurisdiction` and `business.entity_type` on both businesses, and add the domestic business first. When Palm files a foreign qualification, it creates and links the new state's business for you; link manually only registrations filed outside Palm, and don't add one for a state you're about to file in.",
        "operationId": "addBusiness",
        "parameters": [],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BusinessCreateRequest"
              },
              "examples": {
                "domestic": {
                  "summary": "A business registered in its formation state",
                  "value": {
                    "display_name": "Acme Holdings LLC",
                    "vault": {
                      "business.legal_name": "Acme Holdings LLC",
                      "business.entity_type": "llc",
                      "business.formation_jurisdiction": "US-DE",
                      "business.registration_jurisdiction": "US-DE",
                      "business.registration_number": "6123456",
                      "business.formation_date": "2024-03-15"
                    }
                  }
                },
                "foreign": {
                  "summary": "Its registration in another state, linked to the domestic business",
                  "value": {
                    "display_name": "Acme Holdings of Texas LLC",
                    "vault": {
                      "business.legal_name": "Acme Holdings of Texas LLC",
                      "business.entity_type": "llc",
                      "business.formation_jurisdiction": "US-DE",
                      "business.registration_jurisdiction": "US-TX",
                      "business.registration_number": "0805123456",
                      "business.formation_date": "2024-03-15"
                    },
                    "domestic_business": {
                      "registration_number": "6123456"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Business added",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Business"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request, or the link to the domestic business was refused"
          },
          "409": {
            "description": "The domestic business already has a business linked to it for this state"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Add a business",
        "tags": [
          "Business"
        ]
      }
    },
    "/v1/business/{business_id}/document": {
      "get": {
        "description": "Returns all documents uploaded for this business, including each document's types, filename, size, content type, and status. Filter by document `type` (matches any entry of `types`), `status`, or the work a document is part of (`case_id`, `filing_id`). Use a document `id` with the [document endpoint](/api-reference/v1/documents/retrieve-document-metadata) to retrieve its details, or the [download endpoint](/api-reference/v1/documents/download-a-document) to download the file.",
        "operationId": "listBusinessDocuments",
        "parameters": [
          {
            "name": "business_id",
            "required": true,
            "in": "path",
            "description": "The ID of the portfolio business whose documents to list.",
            "schema": {
              "format": "uuid",
              "example": "987e6543-e21a-45b6-c789-012345678901",
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "type",
            "required": false,
            "in": "query",
            "description": "Return documents whose types include this value.",
            "schema": {
              "enum": [
                "passport",
                "drivers_license",
                "national_id",
                "government_id",
                "articles_of_incorporation",
                "certificate_of_formation",
                "operating_agreement",
                "bylaws",
                "ein_letter",
                "ein_letter_alternate",
                "business_license",
                "certificate_of_standing",
                "certificate_of_authority",
                "bank_statement",
                "tax_return",
                "filing_confirmation",
                "welcome_letter",
                "proof_of_address",
                "service_of_process",
                "notice",
                "mail",
                "ra_change_confirmation",
                "ra_resignation",
                "receipt",
                "other"
              ],
              "type": "string"
            }
          },
          {
            "name": "status",
            "required": false,
            "in": "query",
            "schema": {
              "enum": [
                "pending",
                "verified"
              ],
              "type": "string"
            }
          },
          {
            "name": "case_id",
            "required": false,
            "in": "query",
            "description": "Return only documents submitted in response to this case.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filing_id",
            "required": false,
            "in": "query",
            "description": "Return only documents that are part of this filing.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of business documents",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "object",
                    "has_more",
                    "next_cursor",
                    "data"
                  ],
                  "properties": {
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ],
                      "example": "list",
                      "description": "Object type identifier, always \"list\""
                    },
                    "has_more": {
                      "type": "boolean",
                      "example": true,
                      "description": "Whether there are more results available"
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "example": "crs_7g8h9i0j1k2l3m4n",
                      "description": "Cursor for the next page of results. Only present when has_more is true."
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Document"
                      },
                      "description": "Array of resources for the current page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Unknown `type` or `status` value"
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Not Found"
          },
          "429": {
            "description": "Rate Limited"
          },
          "500": {
            "description": "Server Error"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "List documents",
        "tags": [
          "Business"
        ]
      },
      "post": {
        "description": "Uploads a document for this business, such as its articles of incorporation, operating agreement, or EIN letter, as multipart form data. Returns the created document, including its `id`. Use that `id` with the [document endpoint](/api-reference/v1/documents/retrieve-document-metadata) to retrieve its details, or the [download endpoint](/api-reference/v1/documents/download-a-document) to download the file.",
        "operationId": "uploadBusinessDocument",
        "parameters": [
          {
            "name": "business_id",
            "required": true,
            "in": "path",
            "description": "The ID of the portfolio business to upload the document for.",
            "schema": {
              "format": "uuid",
              "example": "987e6543-e21a-45b6-c789-012345678901",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/DocumentUploadRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Document uploaded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Document"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Not Found"
          },
          "429": {
            "description": "Rate Limited"
          },
          "500": {
            "description": "Server Error"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Upload document",
        "tags": [
          "Business"
        ]
      }
    },
    "/v1/business/search": {
      "post": {
        "description": "Search for businesses in your organization with optional filters. Filter by legal_name (partial match), entity_type (exact match), or EIN (exact match). Filter by domestic_business_id to list the businesses linked to a domestic business as its registrations in other states. Returns paginated results using cursor-based pagination.",
        "operationId": "searchBusinesses",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BusinessSearchRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Search results",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "object",
                    "has_more",
                    "next_cursor",
                    "data"
                  ],
                  "properties": {
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ],
                      "example": "list",
                      "description": "Object type identifier, always \"list\""
                    },
                    "has_more": {
                      "type": "boolean",
                      "example": true,
                      "description": "Whether there are more results available"
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "example": "crs_7g8h9i0j1k2l3m4n",
                      "description": "Cursor for the next page of results. Only present when has_more is true."
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/BusinessSearchResult"
                      },
                      "description": "Array of resources for the current page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid pagination cursor"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Search businesses",
        "tags": [
          "Business"
        ]
      }
    },
    "/v1/business/{business_id}": {
      "get": {
        "description": "Retrieves a business by ID. Returns the business record with status, display name, and metadata. Non-encrypted vault fields (such as address) are included in the response; encrypted fields like EIN are referenced by fingerprint only.",
        "operationId": "getBusiness",
        "parameters": [
          {
            "name": "business_id",
            "required": true,
            "in": "path",
            "description": "Portfolio business ID",
            "schema": {
              "format": "uuid",
              "example": "987e6543-e21a-45b6-c789-012345678901",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Business retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Business"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Retrieve a business",
        "tags": [
          "Business"
        ]
      },
      "patch": {
        "description": "Updates a business's display name, metadata, or optional link to its domestic business. Metadata updates are merged with existing values; set a key to null to remove it.",
        "operationId": "updateBusiness",
        "parameters": [
          {
            "name": "business_id",
            "required": true,
            "in": "path",
            "description": "Portfolio business ID",
            "schema": {
              "format": "uuid",
              "example": "987e6543-e21a-45b6-c789-012345678901",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BusinessUpdateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Business updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Business"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request, or the link to the domestic business was refused"
          },
          "409": {
            "description": "The domestic business already has a business linked to it for this state"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Update a business",
        "tags": [
          "Business"
        ]
      },
      "delete": {
        "description": "Deletes a business and its associated data including vault data and owner relationships. This performs a soft delete by default, setting the business status to deleted. A business that other businesses are linked to as its registrations in other states cannot be deleted until they are deleted or unlinked.",
        "operationId": "deleteBusiness",
        "parameters": [
          {
            "name": "business_id",
            "required": true,
            "in": "path",
            "description": "Portfolio business ID",
            "schema": {
              "format": "uuid",
              "example": "987e6543-e21a-45b6-c789-012345678901",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Business deleted"
          },
          "409": {
            "description": "Other businesses are linked to this business as its registrations in other states"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Delete a business",
        "tags": [
          "Business"
        ]
      }
    },
    "/v1/business/{business_id}/vault": {
      "patch": {
        "description": "Sets or changes a business's details, such as its legal name, EIN, entity type, formation date and address. Send only the fields to change: fields left out stay as they are, and a field set to `null` is removed. Details are stored encrypted, and the response lists which fields are set, never their values. To verify a business against corrected details, update them here first, then verify the business.",
        "operationId": "updateBusinessVault",
        "parameters": [
          {
            "name": "business_id",
            "required": true,
            "in": "path",
            "description": "Portfolio business ID",
            "schema": {
              "format": "uuid",
              "example": "987e6543-e21a-45b6-c789-012345678901",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BusinessVaultFields"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The fields now set for the business",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "Every field now set, each mapped to `true`.",
                  "additionalProperties": {
                    "type": "boolean"
                  },
                  "example": {
                    "business.legal_name": true,
                    "business.ein": true,
                    "business.entity_type": true,
                    "business.formation_date": true
                  }
                }
              }
            }
          },
          "400": {
            "description": "A field is not a known business field"
          },
          "404": {
            "description": "Business not found"
          },
          "409": {
            "description": "A field can't change: the business is linked to another registration, or its home-state legal name is already set"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Update a business's details",
        "tags": [
          "Business"
        ]
      }
    },
    "/v1/business/{business_id}/document/{document_id}": {
      "delete": {
        "description": "Removes a document from this business. The file is permanently deleted from storage and cannot be recovered. To retrieve a document's details before deleting it, use the [document endpoint](/api-reference/v1/documents/retrieve-document-metadata).",
        "operationId": "deleteBusinessDocument",
        "parameters": [
          {
            "name": "business_id",
            "required": true,
            "in": "path",
            "description": "The ID of the portfolio business the document belongs to.",
            "schema": {
              "format": "uuid",
              "example": "987e6543-e21a-45b6-c789-012345678901",
              "type": "string"
            }
          },
          {
            "name": "document_id",
            "required": true,
            "in": "path",
            "description": "The ID of the document to delete.",
            "schema": {
              "format": "uuid",
              "example": "906f369f-a73b-46a2-8184-ccc5c2848abd",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Document deleted"
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Not Found"
          },
          "429": {
            "description": "Rate Limited"
          },
          "500": {
            "description": "Server Error"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Delete a document",
        "tags": [
          "Business"
        ]
      }
    },
    "/v1/user": {
      "post": {
        "description": "Creates a new user record with optional display name, metadata, and vault data. Vault fields use the `identity.*` key format (e.g., `identity.first_name`, `identity.email`).",
        "operationId": "createUser",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserCreateRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "User created successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "429": {
            "description": "Rate Limited"
          },
          "500": {
            "description": "Server Error"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Create a new user",
        "tags": [
          "User"
        ]
      }
    },
    "/v1/user/{user_id}/verification": {
      "post": {
        "operationId": "verifyExistingUser",
        "parameters": [
          {
            "name": "user_id",
            "required": true,
            "in": "path",
            "description": "User ID",
            "schema": {
              "format": "uuid",
              "example": "123e4567-e89b-12d3-a456-426614174000",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReverificationRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserVerificationResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Verify existing user",
        "tags": [
          "User"
        ]
      }
    },
    "/v1/user/search": {
      "post": {
        "description": "Search for users in your organization with optional filters. Filter by display_name (partial match), or by email, phone, or SSN (exact match). Returns paginated results using cursor-based pagination.",
        "operationId": "searchUsers",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserSearchRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Search results returned successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "object",
                    "has_more",
                    "next_cursor",
                    "data"
                  ],
                  "properties": {
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ],
                      "example": "list",
                      "description": "Object type identifier, always \"list\""
                    },
                    "has_more": {
                      "type": "boolean",
                      "example": true,
                      "description": "Whether there are more results available"
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "example": "crs_7g8h9i0j1k2l3m4n",
                      "description": "Cursor for the next page of results. Only present when has_more is true."
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/UserSearchResult"
                      },
                      "description": "Array of resources for the current page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "429": {
            "description": "Rate Limited"
          },
          "500": {
            "description": "Server Error"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Search users",
        "tags": [
          "User"
        ]
      }
    },
    "/v1/user/{user_id}": {
      "get": {
        "description": "Retrieves a user by ID. Returns the user record with status, display name, and metadata. Personal data is stored encrypted or as fingerprints and is not returned in the response.",
        "operationId": "getUser",
        "parameters": [
          {
            "name": "user_id",
            "required": true,
            "in": "path",
            "description": "User ID",
            "schema": {
              "format": "uuid",
              "example": "123e4567-e89b-12d3-a456-426614174000",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "User retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          },
          "429": {
            "description": "Rate Limited"
          },
          "500": {
            "description": "Server Error"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Retrieve a user",
        "tags": [
          "User"
        ]
      },
      "patch": {
        "description": "Updates a user's display name or metadata. Metadata updates are merged with existing values; set a key to null to remove it.",
        "operationId": "updateUser",
        "parameters": [
          {
            "name": "user_id",
            "required": true,
            "in": "path",
            "description": "User ID",
            "schema": {
              "format": "uuid",
              "example": "123e4567-e89b-12d3-a456-426614174000",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserUpdateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "User updated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          },
          "429": {
            "description": "Rate Limited"
          },
          "500": {
            "description": "Server Error"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Update a user",
        "tags": [
          "User"
        ]
      },
      "delete": {
        "description": "Deletes a user and their associated data. This performs a soft delete by default, setting the user status to deleted.",
        "operationId": "deleteUser",
        "parameters": [
          {
            "name": "user_id",
            "required": true,
            "in": "path",
            "description": "User ID",
            "schema": {
              "format": "uuid",
              "example": "123e4567-e89b-12d3-a456-426614174000",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "User deleted successfully (no content returned)"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          },
          "429": {
            "description": "Rate Limited"
          },
          "500": {
            "description": "Server Error"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Delete a user",
        "tags": [
          "User"
        ]
      }
    },
    "/v1/user/{user_id}/business": {
      "get": {
        "description": "Returns all businesses where this user is listed as a beneficial owner.",
        "operationId": "getUserBusinesses",
        "parameters": [
          {
            "name": "user_id",
            "required": true,
            "in": "path",
            "description": "User ID",
            "schema": {
              "format": "uuid",
              "example": "123e4567-e89b-12d3-a456-426614174000",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of businesses retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "object",
                    "data"
                  ],
                  "properties": {
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ],
                      "example": "list",
                      "description": "Object type identifier, always \"list\""
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/BusinessReference"
                      },
                      "description": "Array of resources"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          },
          "429": {
            "description": "Rate Limited"
          },
          "500": {
            "description": "Server Error"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "List businesses for a user",
        "tags": [
          "User"
        ]
      }
    },
    "/v1/user/{user_id}/vault": {
      "patch": {
        "description": "Sets or changes a user's personal details, such as their name, date of birth, SSN, email, phone and address. Send only the fields to change: fields left out stay as they are, and a field set to `null` is removed. Details are stored encrypted, and the response lists which fields are set, never their values. To verify a user against corrected details, update them here first, then verify the user.",
        "operationId": "updateUserVault",
        "parameters": [
          {
            "name": "user_id",
            "required": true,
            "in": "path",
            "description": "User ID",
            "schema": {
              "format": "uuid",
              "example": "123e4567-e89b-12d3-a456-426614174000",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserVaultFields"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The fields now set for the user",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "Every field now set, each mapped to `true`.",
                  "additionalProperties": {
                    "type": "boolean"
                  },
                  "example": {
                    "identity.first_name": true,
                    "identity.last_name": true,
                    "identity.date_of_birth": true,
                    "identity.ssn": true
                  }
                }
              }
            }
          },
          "404": {
            "description": "User not found"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Update a user's details",
        "tags": [
          "User"
        ]
      }
    },
    "/v1/business/verification": {
      "post": {
        "description": "Executes a configurable business verification workflow which utilizes authoritative sources (Secretary of State, IRS TIN matching, business registries), optionally verifies associated people, and returns risk assessment with field-level match results. The required fields are determined by the selected verification workflow.\n\n## Response status\n\nThe HTTP response is always `201`; the verification outcome is carried by `status` in the body, so check it first.\n\n- **`completed`** — Resolved immediately. `risk` and `match` are populated: a confident match returns the agreeing fields and a risk level, while a no-match returns an empty `match` with `risk.level: critical`.\n- **`in_progress`** — Could not be resolved immediately and is continuing asynchronously; `risk` and `match` are not yet set. Wait for the `business.verification.completed` webhook, which delivers the final result in this same shape.\n- **`failed`** — A system error occurred (rare); safe to retry.\n\n`risk` and `match` are only meaningful once `status` is `completed`.",
        "operationId": "verifyBusiness",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BusinessVerificationRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Verification accepted. Carries either a terminal outcome (`status: completed` — confident match OR \"no match\" with `risk.level: critical` + empty `match`) or an async-pending outcome (`status: in_progress` — final result delivered via the `business.verification.completed` webhook).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BusinessVerificationResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request data or missing required fields for workflow",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetail"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized - Invalid or missing API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationProblemDetail"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RateLimitProblemDetail"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorProblemDetail"
                }
              }
            }
          },
          "503": {
            "description": "A verification provider is temporarily unavailable; retryable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailableProblemDetail"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Verify business",
        "tags": [
          "Verification"
        ]
      }
    },
    "/v1/tin/verification": {
      "post": {
        "description": "Verifies a Tax Identification Number (EIN or SSN) and associated name against IRS records. Unlike `POST /business/verification`, this runs only the IRS TIN Matching check and does not perform registry lookup or risk assessment. When the IRS service is unavailable, returns `matched: null` with `status: pending` and a machine-readable `unavailable_reason` so callers can retry later. In test mode the check is always simulated — the IRS is never contacted, and `metadata._simulate` selects the outcome (see the `metadata` field).",
        "operationId": "verifyTin",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TinVerificationRequest"
              },
              "examples": {
                "ein": {
                  "summary": "EIN (business)",
                  "value": {
                    "tin": "12-3456789",
                    "tin_type": "ein",
                    "name": "Acme Corporation",
                    "reference_id": "tin_req_12345"
                  }
                },
                "ssn": {
                  "summary": "SSN (individual)",
                  "value": {
                    "tin": "123-45-6789",
                    "tin_type": "ssn",
                    "name": "Jane Doe",
                    "reference_id": "tin_req_12346"
                  }
                },
                "simulated_no_match": {
                  "summary": "Test mode — simulate a failed match",
                  "value": {
                    "tin": "12-3456789",
                    "tin_type": "ein",
                    "name": "Acme Corporation",
                    "metadata": {
                      "_simulate": "no_match"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "TIN verification completed (matched or not matched) or pending (IRS temporarily unavailable).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TinVerificationResponse"
                },
                "examples": {
                  "matched": {
                    "summary": "EIN and name match IRS records",
                    "value": {
                      "verification_id": "550e8400-e29b-41d4-a716-446655440000",
                      "object": "tin_verification",
                      "tin_type": "ein",
                      "matched": true,
                      "status": "completed",
                      "reference_id": "tin_req_12345",
                      "created_at": "2026-04-22T05:33:01.665Z",
                      "verified_at": "2026-04-22T05:33:01.665Z"
                    }
                  },
                  "not_matched": {
                    "summary": "EIN on file but name does not match",
                    "value": {
                      "verification_id": "8f14e45f-ceea-467a-9575-2b0b8f1b1f01",
                      "object": "tin_verification",
                      "tin_type": "ein",
                      "matched": false,
                      "status": "completed",
                      "reference_id": "tin_req_12345",
                      "created_at": "2026-04-22T05:33:01.665Z",
                      "verified_at": "2026-04-22T05:33:01.665Z"
                    }
                  },
                  "pending": {
                    "summary": "IRS TIN Matching service unavailable — retry later",
                    "value": {
                      "verification_id": "1ecaf2a6-b4f6-4810-a45e-b4abe1be19e5",
                      "object": "tin_verification",
                      "tin_type": "ein",
                      "matched": null,
                      "status": "pending",
                      "unavailable_reason": "tin_matching_service_unavailable",
                      "reference_id": "tin_req_12345",
                      "created_at": "2026-04-22T05:33:01.665Z"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid TIN format or missing required fields.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetail"
                },
                "examples": {
                  "invalid_ein_format": {
                    "summary": "EIN is not 9 digits",
                    "value": {
                      "type": "https://api.getpalm.com/problems/validation_error",
                      "title": "Validation Error",
                      "status": 400,
                      "detail": "Request validation failed",
                      "instance": "/tin/verification",
                      "errors": [
                        {
                          "field": "unknown",
                          "message": "Invalid EIN format: must be 9 digits, got 5"
                        }
                      ]
                    }
                  },
                  "missing_tin_type": {
                    "summary": "Required `tin_type` missing",
                    "value": {
                      "type": "https://api.getpalm.com/problems/validation_error",
                      "title": "Validation Error",
                      "status": 400,
                      "detail": "Request validation failed",
                      "instance": "/tin/verification",
                      "errors": [
                        {
                          "field": "tin_type",
                          "message": "tin_type must be one of the following values: ein, ssn"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized — invalid or missing API key / bearer token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationProblemDetail"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RateLimitProblemDetail"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorProblemDetail"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Verify TIN",
        "tags": [
          "Verification"
        ]
      }
    },
    "/v1/user/verification": {
      "post": {
        "description": "Executes a configurable user verification workflow which utilizes authoritative sources, and returns risk assessment with field-level match results.",
        "operationId": "verifyUser",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserVerificationRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Verification completed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserVerificationResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request data or missing required fields for workflow",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetail"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized - Invalid or missing API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationProblemDetail"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RateLimitProblemDetail"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorProblemDetail"
                }
              }
            }
          },
          "503": {
            "description": "A verification provider is temporarily unavailable; retryable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailableProblemDetail"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Verify user identity",
        "tags": [
          "Verification"
        ]
      }
    },
    "/v1/business/{business_id}/verification": {
      "post": {
        "operationId": "verifyExistingBusiness",
        "parameters": [
          {
            "name": "business_id",
            "required": true,
            "in": "path",
            "description": "Portfolio business ID",
            "schema": {
              "format": "uuid",
              "example": "987e6543-e21a-45b6-c789-012345678901",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReverificationRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BusinessVerificationResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Verify portfolio business",
        "tags": [
          "Verification"
        ]
      }
    },
    "/v1/business/{business_id}/verification/{verification_id}": {
      "get": {
        "operationId": "getBusinessVerification",
        "parameters": [
          {
            "name": "business_id",
            "required": true,
            "in": "path",
            "description": "Portfolio business ID",
            "schema": {
              "format": "uuid",
              "example": "987e6543-e21a-45b6-c789-012345678901",
              "type": "string"
            }
          },
          {
            "name": "verification_id",
            "required": true,
            "in": "path",
            "description": "Verification ID",
            "schema": {
              "format": "uuid",
              "example": "550e8400-e29b-41d4-a716-446655440000",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BusinessVerificationResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Retrieve business verification",
        "tags": [
          "Verification"
        ]
      }
    },
    "/v1/user/{user_id}/verification/{verification_id}": {
      "get": {
        "operationId": "getUserVerification",
        "parameters": [
          {
            "name": "user_id",
            "required": true,
            "in": "path",
            "description": "User ID",
            "schema": {
              "format": "uuid",
              "example": "123e4567-e89b-12d3-a456-426614174000",
              "type": "string"
            }
          },
          {
            "name": "verification_id",
            "required": true,
            "in": "path",
            "description": "Verification ID",
            "schema": {
              "format": "uuid",
              "example": "550e8400-e29b-41d4-a716-446655440000",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserVerificationResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Retrieve user verification",
        "tags": [
          "Verification"
        ]
      }
    },
    "/v1/business/subscription": {
      "post": {
        "description": "Subscribe to monitoring events for a business identified by `palm_id`, or by `registration_jurisdiction` with `registration_number`. Each identifier names one registration; a business registered in several jurisdictions is monitored per registration. The subscription is attached to the portfolio business already linked to that registration, or to one whose vault carries the same `registration_jurisdiction` and `registration_number`, which is then linked. When the organization holds neither, a business is created from the registry record. The business is returned with the subscription.",
        "operationId": "monitorBusiness",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubscriptionActivateRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Subscription created; the monitored portfolio business is embedded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionActivateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request data or unsupported identifier combination"
          },
          "401": {
            "description": "Unauthorized - Invalid or missing API key"
          },
          "403": {
            "description": "State not available for this organization"
          },
          "404": {
            "description": "No registry record matches the identifier"
          },
          "409": {
            "description": "Subscription already exists for this business"
          },
          "422": {
            "description": "The identifier matches more than one registration (candidates included), or the registration carries no registry source"
          },
          "429": {
            "description": "Rate limit exceeded"
          },
          "500": {
            "description": "Internal server error"
          },
          "503": {
            "description": "Registry lookup is temporarily unavailable; retryable"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Monitor business",
        "tags": [
          "Monitor"
        ]
      }
    },
    "/v1/business/{business_id}/subscription": {
      "get": {
        "description": "Retrieve the current monitoring subscription status and configuration for a business.",
        "operationId": "getBusinessSubscription",
        "parameters": [
          {
            "name": "business_id",
            "required": true,
            "in": "path",
            "description": "Portfolio business ID",
            "schema": {
              "format": "uuid",
              "example": "987e6543-e21a-45b6-c789-012345678901",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Subscription details retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Subscription"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized - Invalid or missing API key"
          },
          "404": {
            "description": "Subscription not found for this business"
          },
          "429": {
            "description": "Rate limit exceeded"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Get business monitoring subscription status",
        "tags": [
          "Monitor"
        ]
      },
      "post": {
        "description": "Subscribe to monitoring events for a business to receive real-time notifications about watchlist hits, registration updates, ownership changes, and other compliance events.",
        "operationId": "createBusinessSubscription",
        "parameters": [
          {
            "name": "business_id",
            "required": true,
            "in": "path",
            "description": "Portfolio business ID",
            "schema": {
              "format": "uuid",
              "example": "987e6543-e21a-45b6-c789-012345678901",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubscriptionCreateRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Subscription created successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Subscription"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request data"
          },
          "401": {
            "description": "Unauthorized - Invalid or missing API key"
          },
          "404": {
            "description": "Business not found"
          },
          "409": {
            "description": "Subscription already exists for this business"
          },
          "422": {
            "description": "Business could not be identified in a state registry"
          },
          "429": {
            "description": "Rate limit exceeded"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Monitor portfolio business",
        "tags": [
          "Monitor"
        ]
      },
      "patch": {
        "description": "Update the event types, metadata, or status of a business subscription. Status may only be set to `active` or `paused` — to cancel a subscription, use the DELETE endpoint.",
        "operationId": "updateBusinessSubscription",
        "parameters": [
          {
            "name": "business_id",
            "required": true,
            "in": "path",
            "description": "Portfolio business ID",
            "schema": {
              "format": "uuid",
              "example": "987e6543-e21a-45b6-c789-012345678901",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubscriptionUpdateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Subscription updated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Subscription"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request data"
          },
          "401": {
            "description": "Unauthorized - Invalid or missing API key"
          },
          "404": {
            "description": "Subscription not found"
          },
          "429": {
            "description": "Rate limit exceeded"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Update business monitoring event types",
        "tags": [
          "Monitor"
        ]
      },
      "delete": {
        "description": "Cancel monitoring for a business. Events stop immediately, and a later POST restarts monitoring. To pause monitoring, use PATCH with status: paused.",
        "operationId": "deleteBusinessSubscription",
        "parameters": [
          {
            "name": "business_id",
            "required": true,
            "in": "path",
            "description": "Portfolio business ID",
            "schema": {
              "format": "uuid",
              "example": "987e6543-e21a-45b6-c789-012345678901",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Subscription canceled successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionDeleteResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized - Invalid or missing API key"
          },
          "404": {
            "description": "Subscription not found"
          },
          "429": {
            "description": "Rate limit exceeded"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Unsubscribe from business monitoring",
        "tags": [
          "Monitor"
        ]
      }
    },
    "/v1/filing/formation/requirement": {
      "get": {
        "description": "> **⚠️ Early access (corporations)** — Corporation support on this endpoint is in preview and may change in backwards-incompatible ways before it is marked stable. LLC support is stable. Avoid depending on the corporation behavior in production, and [reach out](mailto:support@getpalm.com) before building on it.\n\nDiscover which fields a formation needs for a given jurisdiction and entity type. Call this before building a formation request so you know what to collect from the user.\n\nThe response groups fields into:\n\n- **Common fields** — required everywhere (name, principal address, people, etc.)\n- **Jurisdiction-specific fields** — extra fields the state requires\n- **Available add-ons** — whether registered-agent service and EIN bundling are supported\n\n`expedited_tiers` lists the expedited processing tiers the state offers (the accepted `expedited_tier` values on create); price each one with the [formation fee endpoint](/api-reference/v1/filing/get-formation-fee-estimate).\n\nIf Palm does not yet support formations in a jurisdiction, the jurisdiction-specific list comes back empty and submitting a formation there returns `501`.",
        "operationId": "getFormationRequirements",
        "parameters": [
          {
            "name": "entity_type",
            "required": true,
            "in": "query",
            "description": "Entity type",
            "schema": {
              "enum": [
                "llc",
                "professional_llc",
                "corporation",
                "professional_corporation"
              ],
              "type": "string"
            }
          },
          {
            "name": "jurisdiction",
            "required": true,
            "in": "query",
            "description": "Jurisdiction (e.g., US-NC)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Formation requirements",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FilingRequirementResult"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Get formation requirements",
        "tags": [
          "Filing"
        ]
      }
    },
    "/v1/filing/formation/fee": {
      "get": {
        "description": "> **⚠️ Early access (corporations)** — Corporation support on this endpoint is in preview and may change in backwards-incompatible ways before it is marked stable. LLC support is stable. Avoid depending on the corporation behavior in production, and [reach out](mailto:support@getpalm.com) before building on it.\n\nEstimate the fees for a formation before submitting — useful for showing cost upfront or for billing reconciliation.\n\nFees are broken down by component (`base`, `dynamic`, `late`, `credit_card`, `ach`); only the components that apply to the jurisdiction are returned.\n\n`fee.total` is the all-in grand total assuming credit-card payment (`base + dynamic + late + credit_card`), so you do not have to sum the components yourself. It is always an estimate.\n\n**Extra inputs.** Some states price the filing on share count, par value, authorized capital, or member count and need extra query parameters — for LLCs as well as corporations:\n\n- `authorized_shares` — required by CT/DE/KY/MA/MI/NM/RI/VA corporations\n- `par_value` and `par_value_type` — required by DE corporations; `par_value_type` is `par` or `no_par`, and `par_value` is the per-share par value in USD (must still be present when `no_par` — pass `0`, the value is ignored)\n- `authorized_capital` — total authorized capital in USD, required by DC/MO corporations\n- `pages` — document page count, required by DE corporations\n- `paid_in_capital` — required by IL corporations\n- `aggregate_par_value` — aggregate par value of all authorized stock (par value × authorized shares) in USD, required by MD corporations\n- `member_count` — number of LLC members, required by TN LLCs\n- `startup_for_soldiers` — `true` when the filer qualifies for Missouri’s Startup for Soldiers fee waiver (active-duty military in Missouri forming a new business), required by MO corporations\n- `is_subchapter_s` — `true` when the LLC elects (or will elect) federal S-corporation tax treatment; South Carolina then requires the CL-1 initial return and adds its $25 fee, required by SC LLCs\n- `expedited_tier` — optional; adds the expedited surcharge for that speed where the state offers expedited processing (tiers seen today: `expedited`, `24_hour`, `same_day`, `3_hour`, `2_hour`, `1_hour`); a tier the state does not offer returns `400`, the same as on the create endpoint\n\nEvery input listed for a jurisdiction is required on every call — a `400` means the parameter was missing entirely. When an input does not apply to your filing, it must still be sent with a placeholder value: e.g. `par_value=0` when `par_value_type=no_par` (the value is ignored).\n\nAny other query parameter is also forwarded to the fee calculation as an extra input, so if a `400` lists a required input not documented here, supply it as a query parameter with that name. Numeric values and `true`/`false` are coerced from the query string automatically.\n\nOmit `expedited_tier` and, where the state offers expedited processing, the response includes `expedited_tiers`: a menu of `{ tier, fee }` where `fee` is the added surcharge as an `{ amount, currency }` pair (total cost = the standard fee components + `fee.amount`). Submit your chosen tier on the create endpoint via `expedited_tier`.\n\nIf required inputs are missing, the endpoint returns `400` listing them.",
        "operationId": "getFormationFeeEstimate",
        "parameters": [
          {
            "name": "is_subchapter_s",
            "required": false,
            "in": "query",
            "description": "Whether the LLC elects federal S-corporation tax treatment — adds the SC CL-1 initial-return fee (required by SC LLCs)",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "startup_for_soldiers",
            "required": false,
            "in": "query",
            "description": "Whether the filer qualifies for the Startup for Soldiers fee waiver (required by MO corporations)",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "member_count",
            "required": false,
            "in": "query",
            "description": "Number of LLC members (required by TN LLCs)",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "aggregate_par_value",
            "required": false,
            "in": "query",
            "description": "Aggregate par value of all authorized stock (par value × authorized shares), in USD (required by MD corporations)",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "paid_in_capital",
            "required": false,
            "in": "query",
            "description": "Paid-in capital (required by IL corporations)",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "pages",
            "required": false,
            "in": "query",
            "description": "Document page count (required by DE corporations)",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "authorized_capital",
            "required": false,
            "in": "query",
            "description": "Authorized capital (required by DC/MO corporations)",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "par_value_type",
            "required": false,
            "in": "query",
            "description": "Par value type: \"par\" or \"no_par\" (required by DE corporations)",
            "schema": {}
          },
          {
            "name": "par_value",
            "required": false,
            "in": "query",
            "description": "Par value per share (required by DE corporations; pass 0 when par_value_type=no_par)",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "authorized_shares",
            "required": false,
            "in": "query",
            "description": "Number of authorized shares (required by CT/DE/KY/MA/MI/NM/RI/VA corporations)",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "expedited_tier",
            "required": false,
            "in": "query",
            "description": "Expedited processing tier (e.g., expedited, 24_hour, same_day, 3_hour, 2_hour, 1_hour). Omit for standard processing. Returns 400 if the state does not offer it.",
            "schema": {}
          },
          {
            "name": "jurisdiction",
            "required": true,
            "in": "query",
            "description": "Jurisdiction (e.g., US-NC)",
            "schema": {}
          },
          {
            "name": "entity_type",
            "required": true,
            "in": "query",
            "description": "Entity type",
            "schema": {
              "enum": [
                "llc",
                "professional_llc",
                "corporation",
                "professional_corporation"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Fee estimate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FilingFeeEstimateResult"
                },
                "examples": {
                  "flat_fee": {
                    "summary": "Flat fee jurisdiction (NC LLC)",
                    "value": {
                      "type": "formation",
                      "entity_type": "llc",
                      "jurisdiction": "US-NC",
                      "fee": {
                        "base": {
                          "amount": 125,
                          "currency": "USD"
                        },
                        "ach": {
                          "amount": 2,
                          "currency": "USD"
                        },
                        "credit_card": {
                          "amount": 3,
                          "currency": "USD"
                        },
                        "dynamic": {
                          "amount": 0,
                          "currency": "USD"
                        },
                        "late": {
                          "amount": 0,
                          "currency": "USD"
                        },
                        "total": {
                          "amount": 128,
                          "currency": "USD"
                        },
                        "items": [
                          {
                            "component_type": "base",
                            "name": "filing",
                            "amount": 125,
                            "currency": "USD"
                          },
                          {
                            "component_type": "ach",
                            "name": "default",
                            "amount": 2,
                            "currency": "USD"
                          },
                          {
                            "component_type": "credit_card",
                            "name": "default",
                            "amount": 3,
                            "currency": "USD"
                          }
                        ]
                      }
                    }
                  },
                  "menu": {
                    "summary": "Standard fee + expedited menu (no expedited_tier requested)",
                    "value": {
                      "type": "formation",
                      "entity_type": "llc",
                      "jurisdiction": "US-DE",
                      "fee": {
                        "base": {
                          "amount": 110,
                          "currency": "USD"
                        },
                        "dynamic": {
                          "amount": 0,
                          "currency": "USD"
                        },
                        "total": {
                          "amount": 110,
                          "currency": "USD"
                        },
                        "items": [
                          {
                            "component_type": "base",
                            "name": "filing",
                            "amount": 110,
                            "currency": "USD"
                          }
                        ]
                      },
                      "expedited_tiers": [
                        {
                          "tier": "24_hour",
                          "fee": {
                            "amount": 50,
                            "currency": "USD"
                          }
                        },
                        {
                          "tier": "same_day",
                          "fee": {
                            "amount": 100,
                            "currency": "USD"
                          }
                        },
                        {
                          "tier": "2_hour",
                          "fee": {
                            "amount": 500,
                            "currency": "USD"
                          }
                        },
                        {
                          "tier": "1_hour",
                          "fee": {
                            "amount": 1000,
                            "currency": "USD"
                          }
                        }
                      ]
                    }
                  },
                  "expedited": {
                    "summary": "With expedited processing (NC LLC + same_day)",
                    "value": {
                      "type": "formation",
                      "entity_type": "llc",
                      "jurisdiction": "US-NC",
                      "fee": {
                        "base": {
                          "amount": 125,
                          "currency": "USD"
                        },
                        "ach": {
                          "amount": 2,
                          "currency": "USD"
                        },
                        "credit_card": {
                          "amount": 3,
                          "currency": "USD"
                        },
                        "dynamic": {
                          "amount": 200,
                          "currency": "USD"
                        },
                        "late": {
                          "amount": 0,
                          "currency": "USD"
                        },
                        "total": {
                          "amount": 328,
                          "currency": "USD"
                        },
                        "items": [
                          {
                            "component_type": "base",
                            "name": "filing",
                            "amount": 125,
                            "currency": "USD"
                          },
                          {
                            "component_type": "dynamic",
                            "name": "expedited",
                            "amount": 200,
                            "currency": "USD"
                          },
                          {
                            "component_type": "ach",
                            "name": "default",
                            "amount": 2,
                            "currency": "USD"
                          },
                          {
                            "component_type": "credit_card",
                            "name": "default",
                            "amount": 3,
                            "currency": "USD"
                          }
                        ]
                      }
                    }
                  },
                  "itemized": {
                    "summary": "Itemized base + tax + expedited (CT corporation, 1M shares + expedited)",
                    "value": {
                      "type": "formation",
                      "entity_type": "corporation",
                      "jurisdiction": "US-CT",
                      "fee": {
                        "base": {
                          "amount": 100,
                          "currency": "USD"
                        },
                        "dynamic": {
                          "amount": 2850,
                          "currency": "USD"
                        },
                        "late": {
                          "amount": 0,
                          "currency": "USD"
                        },
                        "ach": {
                          "amount": 0,
                          "currency": "USD"
                        },
                        "credit_card": {
                          "amount": 0,
                          "currency": "USD"
                        },
                        "total": {
                          "amount": 2950,
                          "currency": "USD"
                        },
                        "items": [
                          {
                            "component_type": "base",
                            "name": "filing",
                            "amount": 100,
                            "currency": "USD"
                          },
                          {
                            "component_type": "dynamic",
                            "name": "expedited",
                            "amount": 50,
                            "currency": "USD"
                          },
                          {
                            "component_type": "dynamic",
                            "name": "franchise_tax",
                            "amount": 2800,
                            "currency": "USD"
                          }
                        ]
                      }
                    }
                  },
                  "share_based": {
                    "summary": "Share-based jurisdiction (MA corporation, 1M shares)",
                    "value": {
                      "type": "formation",
                      "entity_type": "corporation",
                      "jurisdiction": "US-MA",
                      "fee": {
                        "base": {
                          "amount": 1075,
                          "currency": "USD"
                        },
                        "ach": {
                          "amount": 0,
                          "currency": "USD"
                        },
                        "credit_card": {
                          "amount": 0,
                          "currency": "USD"
                        },
                        "dynamic": {
                          "amount": 0,
                          "currency": "USD"
                        },
                        "late": {
                          "amount": 0,
                          "currency": "USD"
                        },
                        "total": {
                          "amount": 1075,
                          "currency": "USD"
                        },
                        "items": [
                          {
                            "component_type": "base",
                            "name": "filing",
                            "amount": 1075,
                            "currency": "USD"
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Missing or invalid query parameters"
          },
          "404": {
            "description": "Fee data not available for this jurisdiction"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Get formation fee estimate",
        "tags": [
          "Filing"
        ]
      }
    },
    "/v1/filing/formation/llc/validate": {
      "post": {
        "description": "Check an LLC formation payload against state compliance rules without creating a filing or business record. Returns every compliance error in one pass, so you can pre-flight a submission.\n\nAccepts a partial or complete payload, including the same jurisdiction-specific fields as the create endpoint (extra top-level properties, plus `jurisdiction_registered_agent` for state-specific registered-agent fields). The [formation requirements endpoint](/api-reference/v1/filing/get-formation-requirements) lists what a given state expects.\n\nAny top-level field the state does not accept is reported under `warnings` — those are dropped rather than rejected when you create the filing, so this is the only place they show up.\n\nAn `expedited_tier` the state does not offer is reported as an error at `expedited_tier` — the create endpoint rejects it with `400`.\n\nThis checks state compliance rules only. Some field-format checks run on the create endpoint, so a payload that passes here can still be rejected when you submit it.",
        "operationId": "validateLlcFormation",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Validation result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationResult"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Validate an LLC formation request",
        "tags": [
          "Filing"
        ]
      }
    },
    "/v1/filing/formation/llc": {
      "post": {
        "description": "Form a new LLC by submitting a formation filing to the state.\n\n**What gets created.** The formation filing, plus a business record in your Palm account (legal name, entity type, jurisdiction, and principal address). Everyone you list in `organizers` and `initial_governing_persons` is also created as a user and linked to the business as an owner.\n\n**Add-ons.** Pass `registered_agent` to use your own; omit it to have Palm act as the registered agent. Pass `ein` to apply for an EIN once the formation completes. Each add-on appears under `related_items` and progresses independently — EIN as a `filing`, the Palm registered agent as a `registered_agent` (tracked at `GET /business/:id/registered-agent`).\n\n**Jurisdiction-specific fields.** Some states require extra fields. Send them as additional top-level properties — the [formation requirements endpoint](/api-reference/v1/filing/get-formation-requirements) lists what a given state expects.\n\n**Result.** Returns the filing in `queued` status. It then moves through `ready_to_file` → `processing` → `filed` → `completed`, sending a `filing.*` webhook at each step. Once `completed`, the state registration number is on `filing.result.registration_number`. Until the filing enters `processing`, you can cancel it with the [cancel endpoint](/api-reference/v1/filing/cancel-a-filing).",
        "operationId": "formLlc",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "Use one key per logical submission and reuse it for every retry of that submission; do not key on a customer or order, and do not mint a fresh key per retry. A key is bound to the first request that succeeds with it and honored for 24 hours. Once the original attempt has returned, retrying with the same key and payload returns the previously created filing with the `Idempotent-Replayed: true` response header instead of creating a second one. The replayed body reflects the filing’s current state, including terminal states; only its identifiers are guaranteed stable. Reusing a key with a different payload or on a different operation is rejected with a 409 `idempotency_key_conflict` problem carrying `existing_filing_id`. The entire request body counts toward the payload fingerprint, including fields the API would otherwise ignore. Keys are 1-255 characters, unique per organization and mode.",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LlcFormationRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Formation filing created",
            "headers": {
              "Idempotent-Replayed": {
                "description": "Present and `true` when this response replays a previously accepted submission.",
                "schema": {
                  "type": "string",
                  "enum": [
                    "true"
                  ]
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Filing"
                }
              }
            }
          },
          "400": {
            "description": "Validation error"
          },
          "409": {
            "description": "Business name not available, or an idempotency-key conflict (`idempotency_key_conflict`)"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Form an LLC",
        "tags": [
          "Filing"
        ]
      }
    },
    "/v1/filing/formation/corporation/validate": {
      "post": {
        "description": "> **⚠️ Early access** — This endpoint is in preview and may change in backwards-incompatible ways before it is marked stable. Avoid depending on it in production, and [reach out](mailto:support@getpalm.com) before building on it.\n\nCheck a corporation formation payload against state compliance rules without creating a filing or business record. Returns every compliance error in one pass, so you can pre-flight a submission.\n\nAccepts a partial or complete payload, including the same jurisdiction-specific fields as the create endpoint (extra top-level properties, plus `jurisdiction_registered_agent` and `jurisdiction_stock_structure` for state-specific fields). The [formation requirements endpoint](/api-reference/v1/filing/get-formation-requirements) lists what a given state expects.\n\nAny top-level field the state does not accept is reported under `warnings` — those are dropped rather than rejected when you create the filing, so this is the only place they show up.\n\nAn `expedited_tier` the state does not offer is reported as an error at `expedited_tier` — the create endpoint rejects it with `400`.\n\nThis checks state compliance rules only. Some field-format checks run on the create endpoint, so a payload that passes here can still be rejected when you submit it.",
        "operationId": "validateCorporationFormation",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Validation result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationResult"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Validate a corporation formation request",
        "tags": [
          "Filing"
        ]
      }
    },
    "/v1/filing/formation/corporation": {
      "post": {
        "description": "> **⚠️ Early access** — This endpoint is in preview and may change in backwards-incompatible ways before it is marked stable. Avoid depending on it in production, and [reach out](mailto:support@getpalm.com) before building on it.\n\nForm a new corporation by submitting a formation filing to the state.\n\n**What gets created.** The formation filing, plus a business record in your Palm account (legal name, entity type, jurisdiction, and principal address). Everyone you list in `incorporators`, `initial_directors`, and `initial_officers` is also created as a user and linked to the business as an owner.\n\n**Stock structure.** Pass `stock_structure` to declare authorized shares and par value, required by most states. Some states price the filing on share count or par value — preview the cost with the [formation fee endpoint](/api-reference/v1/filing/get-formation-fee-estimate) first.\n\n**Add-ons.** Pass `registered_agent` to use your own; omit it to have Palm act as the registered agent. Pass `ein` to apply for an EIN once the formation completes. Each add-on appears under `related_items` and progresses independently — EIN as a `filing`, the Palm registered agent as a `registered_agent` (tracked at `GET /business/:id/registered-agent`).\n\n**Jurisdiction-specific fields.** Some states require extra fields. Send them as additional top-level properties — the [formation requirements endpoint](/api-reference/v1/filing/get-formation-requirements) lists what a given state expects.\n\n**Result.** Returns the filing in `queued` status. It then moves through `ready_to_file` → `processing` → `filed` → `completed`, sending a `filing.*` webhook at each step. Once `completed`, the state registration number is on `filing.result.registration_number`. Until the filing enters `processing`, you can cancel it with the [cancel endpoint](/api-reference/v1/filing/cancel-a-filing).",
        "operationId": "formCorporation",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "Use one key per logical submission and reuse it for every retry of that submission; do not key on a customer or order, and do not mint a fresh key per retry. A key is bound to the first request that succeeds with it and honored for 24 hours. Once the original attempt has returned, retrying with the same key and payload returns the previously created filing with the `Idempotent-Replayed: true` response header instead of creating a second one. The replayed body reflects the filing’s current state, including terminal states; only its identifiers are guaranteed stable. Reusing a key with a different payload or on a different operation is rejected with a 409 `idempotency_key_conflict` problem carrying `existing_filing_id`. The entire request body counts toward the payload fingerprint, including fields the API would otherwise ignore. Keys are 1-255 characters, unique per organization and mode.",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CorporationFormationRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Formation filing created",
            "headers": {
              "Idempotent-Replayed": {
                "description": "Present and `true` when this response replays a previously accepted submission.",
                "schema": {
                  "type": "string",
                  "enum": [
                    "true"
                  ]
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Filing"
                }
              }
            }
          },
          "400": {
            "description": "Validation error"
          },
          "409": {
            "description": "Business name not available, or an idempotency-key conflict (`idempotency_key_conflict`)"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Form a corporation",
        "tags": [
          "Filing"
        ]
      }
    },
    "/v1/filing/ein/validate": {
      "post": {
        "description": "Check an EIN application payload for field-shape errors without creating a filing — the same dry-run pre-flight the formation validate endpoints offer. Returns every field error in one pass, including the conditional `principal_activity` follow-ups for the selected category.\n\nBeyond field shape, the check loads the referenced business and applies the entity-type rules the IRS application branches on — the LLC member questions and the corporation subtype — so it agrees with the create endpoint on those. A field that does not apply to the business's entity type comes back as a warning and is ignored on submit. The responsible-party vault requirements still run only on the create endpoint, so a payload that passes here can still be rejected when you submit it.",
        "operationId": "validateEinApplication",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Validation result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationResult"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Validate an EIN application request",
        "tags": [
          "Filing"
        ]
      }
    },
    "/v1/filing/ein": {
      "post": {
        "description": "Apply for an EIN with the IRS for a business already in your Palm account.\n\nThe business record must already have its legal name, entity type, formation jurisdiction and date, and principal address; if anything required is missing, the request is rejected with the specific fields listed.\n\n**Responsible party.** Either pass a `user_id` for a user who already has a first name, last name, and SSN on record, or pass `first_name`, `last_name`, and `ssn` directly and Palm will create and link the user for you.\n\n**Result.** Returns the filing in `queued` status, then `ready_to_file` → `processing` → `filed` → `completed`, sending a `filing.*` webhook at each step. The assigned EIN is on `filing.result.ein_number` once `completed`. Until the filing enters `processing`, you can cancel it with the [cancel endpoint](/api-reference/v1/filing/cancel-a-filing).",
        "operationId": "applyForEin",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "Use one key per logical submission and reuse it for every retry of that submission; do not key on a customer or order, and do not mint a fresh key per retry. A key is bound to the first request that succeeds with it and honored for 24 hours. Once the original attempt has returned, retrying with the same key and payload returns the previously created filing with the `Idempotent-Replayed: true` response header instead of creating a second one. The replayed body reflects the filing’s current state, including terminal states; only its identifiers are guaranteed stable. Reusing a key with a different payload or on a different operation is rejected with a 409 `idempotency_key_conflict` problem carrying `existing_filing_id`. The entire request body counts toward the payload fingerprint, including fields the API would otherwise ignore. Keys are 1-255 characters, unique per organization and mode.",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EinApplicationRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "EIN filing created",
            "headers": {
              "Idempotent-Replayed": {
                "description": "Present and `true` when this response replays a previously accepted submission.",
                "schema": {
                  "type": "string",
                  "enum": [
                    "true"
                  ]
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Filing"
                }
              }
            }
          },
          "400": {
            "description": "Missing required fields on the business record, or invalid request data"
          },
          "404": {
            "description": "Business not found"
          },
          "409": {
            "description": "Idempotency-key conflict (`idempotency_key_conflict`)"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Apply for an EIN",
        "tags": [
          "Filing"
        ]
      }
    },
    "/v1/filing/foreign-qualification/requirement": {
      "get": {
        "description": "> **⚠️ Early access** — This endpoint is in preview and may change in backwards-incompatible ways before it is marked stable. Avoid depending on it in production, and [reach out](mailto:support@getpalm.com) before building on it.\n\nDiscover what registering an existing business in a given state needs. Call this before building a request so you know what to collect.\n\n`schema` is a JSON Schema of the request body: the common fields plus the fields the state requires. Everything Palm reads from the referenced business (legal name, entity type, formation jurisdiction, formation date, registration number) is absent, since you never supply it. `effective_date` is present only when the state offers a delayed effective date, with the state’s own description of its limits.\n\n`prerequisites` lists the documents the state needs alongside the application, each with whether it is always required and who supplies it; Palm supplies the home-state certificate of good standing: it uses a recent one on file, or orders one when you submit. `post_filing_obligations` lists what the registration starts once accepted.\n\n`expedited_tiers` lists the expedited processing tiers the state offers (the accepted `expedited_tier` values on create); price each one with the [foreign qualification fee endpoint](/api-reference/v1/filing/get-foreign-qualification-fee-estimate).\n\nReturns `501` for a state Palm does not yet support.",
        "operationId": "getForeignQualificationRequirements",
        "parameters": [
          {
            "name": "entity_type",
            "required": true,
            "in": "query",
            "description": "Entity type of the existing business",
            "schema": {
              "enum": [
                "llc",
                "professional_llc",
                "corporation",
                "professional_corporation"
              ],
              "type": "string"
            }
          },
          {
            "name": "jurisdiction",
            "required": true,
            "in": "query",
            "description": "The state to register in (e.g., US-TX)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Foreign qualification requirements",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FilingRequirementResult"
                }
              }
            }
          },
          "501": {
            "description": "The jurisdiction or entity type is not yet supported"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Get foreign qualification requirements",
        "tags": [
          "Filing"
        ]
      }
    },
    "/v1/filing/foreign-qualification/fee": {
      "get": {
        "description": "> **⚠️ Early access** — This endpoint is in preview and may change in backwards-incompatible ways before it is marked stable. Avoid depending on it in production, and [reach out](mailto:support@getpalm.com) before building on it.\n\nEstimate the government fees for registering an existing business in a state before submitting.\n\nFees are broken down by component (`base`, `dynamic`, `late`, `credit_card`, `ach`); only the components that apply to the jurisdiction are returned. `fee.total` is the all-in grand total assuming credit-card payment. It is always an estimate.\n\nOmit `expedited_tier` and, where the state offers expedited processing, the response includes `expedited_tiers`: a menu of `{ tier, fee }` where `fee` is the added surcharge for that speed. Pass `expedited_tier` to fold one tier’s surcharge into the components instead; a tier the state does not offer returns `400`, the same as on the create endpoint.\n\nAny other query parameter is forwarded to the fee calculation as an extra input; a `400` lists any input the state requires that was not supplied. Send an input with an empty value to state that it does not apply, such as `business_start_date=` for a business that has not started operating in the state, where the state lets it be blank. Returns `404` where no fee data is available for the jurisdiction.\n\nWhere the business operated in the state before registering, states that publish how the late fee is calculated price it as the `late` component, a line named `late_filing_fee` in `fee.items`, from `business_start_date` and the date of the estimate. States whose filing office may charge a late fee but does not publish the amount return it under `warnings` instead, apart from the fee lines and outside `fee.total`; Palm asks you to approve such a fee before paying it.\n\nThe estimate leaves out the home-state certificate of good standing that some target states need. When no recent one is on file, Palm orders it and bills it on its own as a document request; price the home state’s fee with the document request fee estimate.",
        "operationId": "getForeignQualificationFeeEstimate",
        "parameters": [
          {
            "name": "expedited_tier",
            "required": false,
            "in": "query",
            "description": "Expedited processing tier to price. Omit for standard processing and the priced menu of tiers. Returns 400 if the state does not offer it.",
            "schema": {}
          },
          {
            "name": "jurisdiction",
            "required": true,
            "in": "query",
            "description": "The state to register in (e.g., US-TX)",
            "schema": {}
          },
          {
            "name": "entity_type",
            "required": true,
            "in": "query",
            "description": "Entity type of the existing business",
            "schema": {
              "enum": [
                "llc",
                "professional_llc",
                "corporation",
                "professional_corporation"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Fee estimate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FilingFeeEstimateResult"
                }
              }
            }
          },
          "400": {
            "description": "Missing or invalid query parameters"
          },
          "404": {
            "description": "Fee data not available for this jurisdiction"
          },
          "501": {
            "description": "The entity type is not yet supported"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Get foreign qualification fee estimate",
        "tags": [
          "Filing"
        ]
      }
    },
    "/v1/filing/foreign-qualification/validate": {
      "post": {
        "description": "> **⚠️ Early access** — This endpoint is in preview and may change in backwards-incompatible ways before it is marked stable. Avoid depending on it in production, and [reach out](mailto:support@getpalm.com) before building on it.\n\nCheck a foreign qualification payload without creating a filing or business record. Runs the same checks as the create endpoint except the name check, and returns every finding in one pass: problems with the referenced business record (missing fields, not the domestic registration, already registered in the target state, or `certificate_not_orderable` when the target state needs a home-state certificate and Palm cannot match the business to its home-state record), an expedited tier the state does not offer, and state compliance errors on the payload.\n\nAccepts a partial or complete payload, including the same state-specific fields as the create endpoint. Any top-level field the state does not accept is reported under `warnings`; those are dropped rather than rejected when you create the filing. The exception is `effective_date`: sent to a state that offers no delayed effective date, it is an error here (`unsupported`) and a `400` on create.\n\nThe name check runs only on the create endpoint, so a payload that passes here can still be rejected there because the legal name is unavailable in the target state.",
        "operationId": "validateForeignQualification",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Validation result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationResult"
                }
              }
            }
          },
          "501": {
            "description": "The target state is not yet supported"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Validate a foreign qualification request",
        "tags": [
          "Filing"
        ]
      }
    },
    "/v1/filing/foreign-qualification": {
      "post": {
        "description": "> **⚠️ Early access** — This endpoint is in preview and may change in backwards-incompatible ways before it is marked stable. Avoid depending on it in production, and [reach out](mailto:support@getpalm.com) before building on it.\n\nRegister an LLC that already exists in your Palm account to transact business in another state (a foreign qualification).\n\n**What the request carries.** Reference the business with `business_id` and name the target state in `jurisdiction`. The legal name, entity type, formation jurisdiction, formation date and registration number are read from the business record and never accepted on the request; the record must also carry its registration jurisdiction, equal to its formation jurisdiction. You supply only what the target state asks for beyond that: optional `alternate_names` to file under if the target state refuses the legal name, a filing contact, the principal and mailing address, governing persons where the state wants them, a registered agent if you are not using Palm’s, an expedited tier, and any state-specific fields the [foreign qualification requirements endpoint](/api-reference/v1/filing/get-foreign-qualification-requirements) lists. A delayed `effective_date` is one of them: it is listed only for states that offer one, and sending it to a state that does not is rejected with a `400`, since dropping it would change when the registration takes effect.\n\n**What gets created.** A new business record for the target-state registration, whose `formation_jurisdiction` is the home state, `registration_jurisdiction` is the target state, `domestic_legal_name` is the legal name of the business in its home state, and `domestic_business_id` is the referenced business, and a `foreign_qualification` filing linked to it as `business_id`. Owners of the referenced business are carried over. Omit `registered_agent` to have Palm act as registered agent in the target state; it appears under `related_items`.\n\n**Before anything is created** the request is checked in this order: the business exists and is the domestic registration; it carries every field the application needs (a `400` lists any gap); it is a US LLC (`501` otherwise); the target state is supported (`501` until a state is released); where the target state needs a home-state certificate of good standing, Palm can order one from the home state (`501` otherwise) and can match the business to its home-state record through its `palm_id` (`400` with `certificate_not_orderable` on `business_id` otherwise); the business is not already registered there (`409 already_registered`, carrying the existing registration); the expedited tier is one the state offers; every alternate name differs from the legal name and from each other and clears the target state’s naming rules, and at least one of the legal name and the alternate names clears those rules and is available there (`400` carrying the conflicts for each name); and the payload satisfies the state’s requirements.\n\n**Result.** Returns the filing in `queued` status. It then moves through `ready_to_file` → `processing` → `filed` → `completed`, sending a `filing.*` webhook at each step. Where the target state needs a home-state certificate of good standing, Palm uses a recent one an earlier document request delivered, at no charge, or orders one through a document request on the home business, billed on its own and listed in `related_items`; the filing stays `queued` until the certificate is in hand. If the home state refuses the certificate or the order fails, Palm cancels the filing, with the reason in `status_reason`. Once `completed`, `filing.result` carries the target state’s `registration_number` and `registration_date`, `filing.legal_name` and the new business’s `legal_name` are the name the state registered (the legal name, or the alternate name it accepted), the state documents are on the new business, and its registration number is on the new business record. Until the filing enters `processing`, you can cancel it with the [cancel endpoint](/api-reference/v1/filing/cancel-a-filing).",
        "operationId": "createForeignQualification",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "Use one key per logical submission and reuse it for every retry of that submission. A key is bound to the first request that succeeds with it and honored for 24 hours: retrying with the same key and payload returns the previously created filing with the `Idempotent-Replayed: true` response header instead of creating a second one. Reusing a key with a different payload or on a different operation is rejected with a 409 `idempotency_key_conflict` problem carrying `existing_filing_id`. Keys are 1-255 characters, unique per organization and mode.",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ForeignQualificationRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Foreign qualification filing created",
            "headers": {
              "Idempotent-Replayed": {
                "description": "Present and `true` when this response replays a previously accepted submission.",
                "schema": {
                  "type": "string",
                  "enum": [
                    "true"
                  ]
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Filing"
                }
              }
            }
          },
          "400": {
            "description": "Validation error: the business record is missing required fields or is not the domestic registration, Palm cannot match it to its home-state record to order the certificate the target state needs (`certificate_not_orderable`), the name is unavailable in the target state, or the payload fails the state’s requirements"
          },
          "404": {
            "description": "Business not found"
          },
          "409": {
            "description": "Already registered in the target state (`already_registered`), or an idempotency-key conflict (`idempotency_key_conflict`)"
          },
          "501": {
            "description": "The target state is not yet supported, the business is not a US LLC, or Palm cannot order the home-state certificate the target state needs"
          },
          "503": {
            "description": "The target state’s requirements could not be read. Nothing was created; retry the request."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Register an existing business in another state",
        "tags": [
          "Filing"
        ]
      }
    },
    "/v1/filing": {
      "get": {
        "description": "List filings in your Palm account, ordered most-recent first. Filter by type, status, or linked business; paginate with the opaque `cursor` returned on the previous page.",
        "operationId": "listFilings",
        "parameters": [
          {
            "name": "type",
            "required": false,
            "in": "query",
            "description": "Filter by filing type",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "required": false,
            "in": "query",
            "description": "Filter by status: `queued`, `ready_to_file`, `processing`, `filed`, `completed`, or `canceled`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "business_id",
            "required": false,
            "in": "query",
            "description": "Filter by business ID",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Max items (default 10, max 100)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "description": "Pagination cursor",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Paginated list of filings",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "object",
                    "has_more",
                    "next_cursor",
                    "data"
                  ],
                  "properties": {
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ],
                      "example": "list",
                      "description": "Object type identifier, always \"list\""
                    },
                    "has_more": {
                      "type": "boolean",
                      "example": true,
                      "description": "Whether there are more results available"
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "example": "crs_7g8h9i0j1k2l3m4n",
                      "description": "Cursor for the next page of results. Only present when has_more is true."
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Filing"
                      },
                      "description": "Array of resources for the current page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid filter value (e.g., unknown status)"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "List filings",
        "tags": [
          "Filing"
        ]
      }
    },
    "/v1/filing/{filing_id}": {
      "get": {
        "description": "Retrieve a single filing by ID. The response includes its current status, the completion result (registration number for formations, EIN for EIN filings), the bundle of related obligations (`related_items` — EIN filings and the registered agent, each with its own status), cases that need your action (`cases`), generated documents, and recorded fees.",
        "operationId": "getFiling",
        "parameters": [
          {
            "name": "filing_id",
            "required": true,
            "in": "path",
            "description": "Filing ID",
            "schema": {
              "format": "uuid",
              "example": "4b2d9e17-8c35-4a6b-9f02-1e7d5a3c8b96",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Filing details",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Filing"
                }
              }
            }
          },
          "404": {
            "description": "Filing not found"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Retrieve a filing",
        "tags": [
          "Filing"
        ]
      }
    },
    "/v1/filing/{filing_id}/cancellation": {
      "post": {
        "description": "Cancel a filing before processing begins.\n\n**When it succeeds.** The filing must still be in a pre-processing status (`queued` or `ready_to_file`). It moves to the terminal `canceled` status, a `filing.canceled` webhook fires, and the response returns the filing with `canceled_at` and `status_reason` set.\n\n**When it fails.** Once the filing has entered `processing` (or finished), cancellation returns a 409 `filing_not_cancellable` problem whose `current_status` member carries the filing status the decision was made against. There is no dry-run check — call cancel and read the response. A rejected attempt on an in-progress filing is still surfaced to the operations team working it, so they know you asked before anything is finalized with the state.\n\n**Related filings.** Each filing is evaluated on its own status. Canceling a formation that is still pre-processing also cancels its pre-processing related filings (an EIN cannot exist without the entity); each canceled filing sends its own `filing.canceled` webhook. A pending Palm registered agent on the formation is canceled with it: its status moves to `canceled` and a `registered_agent.canceled` webhook fires. The reverse never applies: a related EIN filing can be canceled independently — including after its formation has completed — without touching the formation.\n\n**Fees.** Cancellation has no billing side effects. Palm fees are only charged on completion, and government fees ride on the filing that incurred them.",
        "operationId": "cancelFiling",
        "parameters": [
          {
            "name": "filing_id",
            "required": true,
            "in": "path",
            "description": "Filing ID",
            "schema": {
              "format": "uuid",
              "example": "4b2d9e17-8c35-4a6b-9f02-1e7d5a3c8b96",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Filing canceled",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Filing"
                }
              }
            }
          },
          "404": {
            "description": "Filing not found"
          },
          "409": {
            "description": "Filing is already in progress or finished (`filing_not_cancellable`, with `current_status`)"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Cancel a filing",
        "tags": [
          "Filing"
        ]
      }
    },
    "/v1/case/{case_id}/response": {
      "post": {
        "description": "Partner submits the payload the case requires. Only allowed when `status=needs_response`. Documents are uploaded to the business first and referenced by id, either as the value of a `document` field or in `documents`; a successful submit relates each one to the case and its filing, transitions status to `under_review`, and fires `case.updated`.",
        "operationId": "submitCaseResponse",
        "parameters": [
          {
            "name": "case_id",
            "required": true,
            "in": "path",
            "description": "Case ID",
            "schema": {
              "format": "uuid",
              "example": "2a6f8d31-4e97-4b52-8c1d-9f3a7e5b2c84",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CaseResponseRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Response accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Case"
                }
              }
            }
          },
          "400": {
            "description": "Response payload failed kind-specific validation"
          },
          "404": {
            "description": "Case not found"
          },
          "409": {
            "description": "Case is not currently awaiting your response"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Submit a response to a case",
        "tags": [
          "Case"
        ]
      }
    },
    "/v1/case": {
      "get": {
        "description": "List cases visible to the caller. Internal cases that have never been routed to the partner are excluded. Supports filtering by parent, status, and kind, plus cursor-based pagination.",
        "operationId": "listCases",
        "parameters": [
          {
            "name": "parent_type",
            "required": false,
            "in": "query",
            "schema": {
              "enum": [
                "filing",
                "verification",
                "business",
                "session"
              ],
              "type": "string"
            }
          },
          {
            "name": "parent_id",
            "required": false,
            "in": "query",
            "description": "Filter by parent resource ID",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "required": false,
            "in": "query",
            "schema": {
              "enum": [
                "needs_response",
                "under_review",
                "resolved",
                "superseded"
              ],
              "type": "string"
            }
          },
          {
            "name": "kind",
            "required": false,
            "in": "query",
            "schema": {
              "enum": [
                "missing_information",
                "legal_name_change",
                "ra_termination",
                "late_fee_approval"
              ],
              "type": "string"
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Max items (default 10, max 100)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "description": "Pagination cursor",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Paginated list of cases",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "object",
                    "has_more",
                    "next_cursor",
                    "data"
                  ],
                  "properties": {
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ],
                      "example": "list",
                      "description": "Object type identifier, always \"list\""
                    },
                    "has_more": {
                      "type": "boolean",
                      "example": true,
                      "description": "Whether there are more results available"
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "example": "crs_7g8h9i0j1k2l3m4n",
                      "description": "Cursor for the next page of results. Only present when has_more is true."
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Case"
                      },
                      "description": "Array of resources for the current page"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "List cases",
        "tags": [
          "Case"
        ]
      }
    },
    "/v1/case/{case_id}": {
      "get": {
        "description": "Retrieve a case by ID, including its status, kind, parent resource, and what it needs from you.",
        "operationId": "getCase",
        "parameters": [
          {
            "name": "case_id",
            "required": true,
            "in": "path",
            "description": "Case ID",
            "schema": {
              "format": "uuid",
              "example": "2a6f8d31-4e97-4b52-8c1d-9f3a7e5b2c84",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Case details",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Case"
                }
              }
            }
          },
          "404": {
            "description": "Case not found"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Retrieve a case",
        "tags": [
          "Case"
        ]
      }
    },
    "/v1/business/{business_id}/registered-agent": {
      "patch": {
        "description": "> **⚠️ Early access** — This endpoint is in preview and may change in backwards-incompatible ways before it is marked stable. Avoid depending on it in production, and [reach out](mailto:support@getpalm.com) before building on it.\n\nUpdates the registered agent on a business. Both actions are discriminated by `status`:\n\n- `change_requested` — change the RA of record. Supply `registered_agent` to switch to your own / a different RA, or omit it to switch to Palm-provided service. The RA moves to `pending`; on completion `registered_agent.activated` (into Palm) or `registered_agent.changed` (away) fires. Any state-side filing this requires happens internally, in the state named by the business's `registration_jurisdiction`, which the business must have. Returns 409 if a registered agent operation is already in flight (`pending` or `termination_requested`).\n- `termination_requested` — ask Palm to stop serving as RA. Sets status to `termination_requested`; Palm remains RA on file and keeps forwarding mail until the work completes, when `registered_agent.terminated` fires. Returns 409 if the service is not currently `active`.\n\nIn test mode both actions complete immediately: termination fires `registered_agent.termination_requested` and `registered_agent.terminated` and returns the terminal snapshot (`status: terminated`).",
        "operationId": "updateRegisteredAgent",
        "parameters": [
          {
            "name": "business_id",
            "required": true,
            "in": "path",
            "description": "Portfolio business ID",
            "schema": {
              "format": "uuid",
              "example": "987e6543-e21a-45b6-c789-012345678901",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisteredAgentUpdateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Registered agent update accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegisteredAgent"
                }
              }
            }
          },
          "400": {
            "description": "Missing registration_jurisdiction or invalid request data"
          },
          "404": {
            "description": "Business not found in this organization"
          },
          "409": {
            "description": "Requested change while a registered agent operation is already in flight, or termination requested while registered_agent_status is not active"
          },
          "503": {
            "description": "Registered agent request could not be queued; retry"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Change or end registered agent service",
        "tags": [
          "Registered Agent"
        ]
      },
      "get": {
        "description": "Returns the current snapshot of the registered agent service on a business — provider, status, jurisdiction, and the current service window. Returns 404 when Palm has never been the registered agent for the business; once the service has ended it returns 200 with `status: terminated` — letting you tell \"not your registered agent\" apart from \"service ended\".",
        "operationId": "getRegisteredAgent",
        "parameters": [
          {
            "name": "business_id",
            "required": true,
            "in": "path",
            "description": "Portfolio business ID",
            "schema": {
              "format": "uuid",
              "example": "987e6543-e21a-45b6-c789-012345678901",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Registered agent service snapshot",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegisteredAgent"
                }
              }
            }
          },
          "404": {
            "description": "Palm is not the registered agent for this business"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Retrieve registered agent service",
        "tags": [
          "Registered Agent"
        ]
      }
    },
    "/v1/document/{document_id}": {
      "get": {
        "description": "Returns a document by its `id`, including its type, filename, size, content type, and status. You can find a document `id` in the `documents` array of a filing or business response. To download the file itself, use the [download endpoint](/api-reference/v1/documents/download-a-document). To list or upload documents for a specific business, use the [business document endpoints](/api-reference/v1/business/list-documents).",
        "operationId": "getDocumentById",
        "parameters": [
          {
            "name": "document_id",
            "required": true,
            "in": "path",
            "description": "The ID of the document to retrieve.",
            "schema": {
              "format": "uuid",
              "example": "906f369f-a73b-46a2-8184-ccc5c2848abd",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The document.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Document"
                }
              }
            }
          },
          "404": {
            "description": "No document with this ID exists."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Retrieve document metadata",
        "tags": [
          "Documents"
        ]
      }
    },
    "/v1/document/{document_id}/content": {
      "get": {
        "description": "Downloads a document by its `id`. The response is the raw file, served with the document's `Content-Type` and a `Content-Disposition: attachment` header so it saves with its original filename. A document can be downloaded as often as you need, for as long as it exists.",
        "operationId": "downloadDocument",
        "parameters": [
          {
            "name": "document_id",
            "required": true,
            "in": "path",
            "description": "The ID of the document to download.",
            "schema": {
              "format": "uuid",
              "example": "906f369f-a73b-46a2-8184-ccc5c2848abd",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The document file."
          },
          "404": {
            "description": "No document with this ID exists."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Download a document",
        "tags": [
          "Documents"
        ]
      }
    },
    "/v1/document-request": {
      "post": {
        "description": "> **⚠️ Early access** — This endpoint is in preview and may change in backwards-incompatible ways before it is marked stable. Avoid depending on it in production, and [reach out](mailto:support@getpalm.com) before building on it.\n\nRequest an official document for a registration, identified by exactly one of `palm_id`, `registration_jurisdiction` with `registration_number`, or `business_id`. The request is accepted immediately and fulfilled asynchronously: poll it, or subscribe to the `document_request.processing`, `document_request.completed` and `document_request.canceled` webhook events. A business is added to your portfolio for the registration when none exists yet. Unsupported jurisdictions and entity types are refused at creation. A request can be canceled while it is `queued`.\n\nIn test mode no state order is placed: the request moves through `processing` and completes with a sample certificate, or ends as directed by `metadata._simulate`.",
        "operationId": "createDocumentRequest",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "One key per request, reused for every retry of it. A key is bound to the first request that succeeds with it and honored for 24 hours: a retry with the same key and body returns that request in its current state, with the `Idempotent-Replayed: true` response header. Reusing a key with a different body is rejected with a 409 `idempotency_key_conflict` problem carrying `existing_document_request_id`. The entire request body counts toward the fingerprint. Keys are 1-255 characters, unique per organization and mode.",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DocumentRequestCreateRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Document request accepted",
            "headers": {
              "Idempotent-Replayed": {
                "description": "Present and `true` when this response replays a request created earlier with the same key.",
                "schema": {
                  "type": "string",
                  "enum": [
                    "true"
                  ]
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentRequest"
                }
              }
            }
          },
          "400": {
            "description": "Zero or more than one identifier provided"
          },
          "404": {
            "description": "The identifier matched no registration"
          },
          "409": {
            "description": "The idempotency key was already used with a different body (`idempotency_key_conflict`)"
          },
          "422": {
            "description": "The identifier matched more than one registration (`ambiguous_registration`, with `candidates`), or the registration cannot be served (`not_requestable`)"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Request a document",
        "tags": [
          "Document Request"
        ]
      },
      "get": {
        "description": "> **⚠️ Early access** — This endpoint is in preview and may change in backwards-incompatible ways before it is marked stable. Avoid depending on it in production, and [reach out](mailto:support@getpalm.com) before building on it.\n\nList document requests, newest first.",
        "operationId": "listDocumentRequests",
        "parameters": [
          {
            "name": "business_id",
            "required": false,
            "in": "query",
            "description": "Filter by business",
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "987e6543-e21a-45b6-c789-012345678901"
            }
          },
          {
            "name": "type",
            "required": false,
            "in": "query",
            "description": "Filter by document type",
            "schema": {
              "type": "string",
              "enum": [
                "certificate_of_standing"
              ]
            }
          },
          {
            "name": "status",
            "required": false,
            "in": "query",
            "description": "Filter by status",
            "schema": {
              "type": "string",
              "enum": [
                "queued",
                "processing",
                "completed",
                "canceled"
              ]
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Page size, max 100 (default 10)",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "description": "Cursor from a previous page",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Document requests, newest first",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "object",
                    "has_more",
                    "next_cursor",
                    "data"
                  ],
                  "properties": {
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ],
                      "example": "list",
                      "description": "Object type identifier, always \"list\""
                    },
                    "has_more": {
                      "type": "boolean",
                      "example": true,
                      "description": "Whether there are more results available"
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "example": "crs_7g8h9i0j1k2l3m4n",
                      "description": "Cursor for the next page of results. Only present when has_more is true."
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/DocumentRequest"
                      },
                      "description": "Array of resources for the current page"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "List document requests",
        "tags": [
          "Document Request"
        ]
      }
    },
    "/v1/document-request/{document_request_id}": {
      "get": {
        "description": "> **⚠️ Early access** — This endpoint is in preview and may change in backwards-incompatible ways before it is marked stable. Avoid depending on it in production, and [reach out](mailto:support@getpalm.com) before building on it.\n\nRetrieve a document request, including its status, its documents and, once canceled, why, by whom and when.",
        "operationId": "getDocumentRequest",
        "parameters": [
          {
            "name": "document_request_id",
            "required": true,
            "in": "path",
            "description": "Document request ID",
            "schema": {
              "format": "uuid",
              "example": "0f6b2d84-5a31-4c97-8e42-6d1a9f3b7c58",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The document request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentRequest"
                }
              }
            }
          },
          "404": {
            "description": "Document request not found"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Get a document request",
        "tags": [
          "Document Request"
        ]
      }
    },
    "/v1/document-request/fee": {
      "get": {
        "description": "> **⚠️ Early access** — This endpoint is in preview and may change in backwards-incompatible ways before it is marked stable. Avoid depending on it in production, and [reach out](mailto:support@getpalm.com) before building on it.\n\nEstimated government fee for a document type in one jurisdiction and entity type. Estimates are for planning: the billed government fee is what the jurisdiction actually charged at fulfillment.\n\nOmit `expedited_tier` and, where the state offers expedited processing, the response includes `expedited_tiers`: a menu of `{ tier, fee }` where `fee` is the added surcharge as an `{ amount, currency }` pair (total cost = the standard fee components + `fee.amount`). Supply `expedited_tier` and the surcharge is priced into `fee`; a tier the state does not offer returns `400`.",
        "operationId": "getDocumentRequestFeeEstimate",
        "parameters": [
          {
            "name": "expedited_tier",
            "required": false,
            "in": "query",
            "description": "Expedited processing tier (e.g., expedited, 24_hour, same_day, 2_hour, 1_hour). Omit for standard processing.",
            "schema": {}
          },
          {
            "name": "entity_type",
            "required": true,
            "in": "query",
            "description": "Entity type",
            "schema": {
              "type": "string",
              "enum": [
                "llc",
                "corporation"
              ]
            }
          },
          {
            "name": "jurisdiction",
            "required": true,
            "in": "query",
            "description": "Jurisdiction (ISO 3166-2)",
            "schema": {
              "type": "string",
              "example": "US-DE"
            }
          },
          {
            "name": "type",
            "required": true,
            "in": "query",
            "description": "Document type to price",
            "schema": {
              "type": "string",
              "enum": [
                "certificate_of_standing"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The fee estimate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentRequestFeeEstimate"
                }
              }
            }
          },
          "400": {
            "description": "Missing or invalid query parameters"
          },
          "404": {
            "description": "Fee data not available for this jurisdiction"
          },
          "422": {
            "description": "The jurisdiction or entity type is not supported for the document type (`not_requestable`)"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Get document request fee estimate",
        "tags": [
          "Document Request"
        ]
      }
    },
    "/v1/document-request/{document_request_id}/cancellation": {
      "post": {
        "description": "> **⚠️ Early access** — This endpoint is in preview and may change in backwards-incompatible ways before it is marked stable. Avoid depending on it in production, and [reach out](mailto:support@getpalm.com) before building on it.\n\nCancel a document request before Palm starts the order.\n\n**When it succeeds.** The request must still be `queued`. It moves to the terminal `canceled` status, a `document_request.canceled` webhook fires, and the response returns the request with `status_reason` `partner_requested`, `canceled_by` `partner` and `canceled_at` set.\n\n**When it fails.** Once the request is `processing` (or finished), cancellation returns a 409 `document_request_not_cancellable` problem whose `current_status` member carries the status the decision was made against. A refused cancel on a request in progress still reaches the Palm team working it, so they know you asked to stop. A request a foreign qualification ordered is canceled by canceling that filing: canceling the request itself returns the same 409, with the filing in `filing_id`.\n\n**Canceled by Palm.** Palm can also cancel a request it cannot fulfill, before or during the order. The request moves to `canceled` with `canceled_by` `palm` and the reason in `status_reason`, and the same webhook fires. A request a foreign qualification ordered is canceled with `status_reason` `parent_filing_canceled` when that filing is canceled before Palm starts the order.\n\n**Fees.** A canceled request is not billed.\n\nIn test mode a `queued` request can be canceled the same way.",
        "operationId": "cancelDocumentRequest",
        "parameters": [
          {
            "name": "document_request_id",
            "required": true,
            "in": "path",
            "description": "Document request ID",
            "schema": {
              "format": "uuid",
              "example": "0f6b2d84-5a31-4c97-8e42-6d1a9f3b7c58",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Document request canceled",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentRequest"
                }
              }
            }
          },
          "404": {
            "description": "Document request not found"
          },
          "409": {
            "description": "Document request is already in progress or finished, or was ordered for a foreign qualification (`document_request_not_cancellable`, with `current_status`, and `filing_id` for a foreign qualification)"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Cancel a document request",
        "tags": [
          "Document Request"
        ]
      }
    }
  },
  "info": {
    "title": "Palm Partner API",
    "description": "The Palm API is identity verification and compliance infrastructure for US businesses: onboard businesses, verify businesses and people (KYB/KYC) against authoritative sources, monitor them for changes in real time, and act on their behalf through filings, formation, and registered agent services.",
    "version": "1.0",
    "contact": {
      "name": "Palm Support",
      "url": "https://getpalm.com",
      "email": "support@getpalm.com"
    },
    "termsOfService": "https://getpalm.com/terms",
    "license": {
      "name": "Proprietary",
      "url": "https://getpalm.com/license"
    }
  },
  "tags": [
    {
      "name": "Registry",
      "description": "Search business registries"
    },
    {
      "name": "Business",
      "description": "Manage the businesses in your portfolio"
    },
    {
      "name": "User",
      "description": "Manage the people in your portfolio"
    },
    {
      "name": "Verification",
      "description": "Identity and business verification"
    },
    {
      "name": "Monitor",
      "description": "Continuous monitoring of businesses"
    },
    {
      "name": "Filing",
      "description": "Form a business, apply for an EIN, and register in additional states"
    },
    {
      "name": "Case",
      "description": "Answer a request for information that a filing is waiting on"
    },
    {
      "name": "Registered Agent",
      "description": "Registered agent service for a business"
    },
    {
      "name": "Documents",
      "description": "Retrieve and download any document held for a business or a person"
    },
    {
      "name": "Webhooks",
      "description": "Events Palm delivers to your webhook endpoints"
    }
  ],
  "servers": [
    {
      "url": "https://api.getpalm.com",
      "description": "Production"
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKey": {
        "scheme": "bearer",
        "bearerFormat": "opaque",
        "type": "http",
        "description": "Enter your API key in the format: sk_test_xxxxx or sk_live_xxxxx"
      }
    },
    "schemas": {
      "AccommodationsActivity": {
        "type": "object",
        "properties": {
          "category": {
            "type": "string",
            "enum": [
              "accommodations"
            ],
            "example": "accommodations"
          },
          "type": {
            "type": "string",
            "description": "Type of accommodation",
            "enum": [
              "casino_hotel",
              "hotel",
              "motel",
              "other"
            ],
            "example": "hotel"
          }
        },
        "required": [
          "category",
          "type"
        ]
      },
      "Address": {
        "type": "object",
        "properties": {
          "street_line_1": {
            "type": "string",
            "example": "One Coca-Cola Plaza NW",
            "description": "Street address line 1"
          },
          "street_line_2": {
            "type": "string",
            "example": "Suite 200",
            "description": "Street address line 2 (apt, suite, etc.)"
          },
          "city": {
            "type": "string",
            "example": "Atlanta",
            "description": "City"
          },
          "region": {
            "type": "string",
            "example": "GA",
            "description": "State or region code"
          },
          "postal_code": {
            "type": "string",
            "example": "30313",
            "description": "Postal/ZIP code"
          },
          "country": {
            "type": "string",
            "example": "US",
            "description": "Country code"
          }
        },
        "required": [
          "country"
        ]
      },
      "AssociateRequest": {
        "type": "object",
        "properties": {
          "user_id": {
            "type": "string",
            "description": "Reference to existing user. If provided, identity fields are not required as data is pulled from the vault.",
            "format": "uuid",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          "first_name": {
            "type": "string",
            "example": "Jane",
            "description": "First name. Required when user_id is not provided."
          },
          "last_name": {
            "type": "string",
            "example": "Smith",
            "description": "Last name. Required when user_id is not provided."
          },
          "middle_name": {
            "type": "string",
            "example": "M",
            "description": "Middle name"
          },
          "date_of_birth": {
            "type": "string",
            "example": "1985-05-20",
            "format": "date",
            "description": "Date of birth (YYYY-MM-DD). Required when user_id is not provided."
          },
          "ssn": {
            "type": "string",
            "example": "987-65-4321",
            "description": "Social Security Number. Required when user_id is not provided."
          },
          "email": {
            "type": "string",
            "example": "jane.smith@example.com",
            "description": "Email address"
          },
          "phone_number": {
            "type": "string",
            "example": "+15559876543",
            "description": "Phone number"
          },
          "address_line_1": {
            "type": "string",
            "example": "123 Main St",
            "description": "Street address line 1. Required when user_id is not provided."
          },
          "address_line_2": {
            "type": "string",
            "example": "Suite 100",
            "description": "Street address line 2"
          },
          "city": {
            "type": "string",
            "example": "San Francisco",
            "description": "City. Required when user_id is not provided."
          },
          "region": {
            "type": "string",
            "example": "CA",
            "description": "Region (state/province/county). Required when user_id is not provided."
          },
          "postal_code": {
            "type": "string",
            "example": "94102",
            "description": "Postal code. Required when user_id is not provided."
          },
          "country": {
            "type": "string",
            "example": "US",
            "description": "Country (2-letter ISO code)"
          },
          "ownership_percentage": {
            "type": "number",
            "example": 50,
            "description": "Ownership percentage (0-100)"
          },
          "title": {
            "type": "string",
            "example": "CEO",
            "description": "Job title"
          }
        },
        "required": [
          "first_name",
          "last_name",
          "date_of_birth",
          "ssn",
          "address_line_1",
          "city",
          "region",
          "postal_code"
        ]
      },
      "AssociateResponse": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string",
            "example": "agent",
            "enum": [
              "agent",
              "manager",
              "officer",
              "director",
              "member",
              "organizer"
            ],
            "description": "Role of the associate in the business"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "example": "CT Corporation System",
            "description": "Name of the associate"
          },
          "title": {
            "type": "string",
            "example": "Registered Agent",
            "description": "Title or position"
          },
          "type": {
            "type": "string",
            "example": "organization",
            "enum": [
              "person",
              "organization"
            ],
            "description": "Whether the associate is a person or an organization. Officers can be organizations too, for example an LLC that manages another LLC. Officers the registry has not classified yet are returned as `person`."
          },
          "address": {
            "description": "Address of the associate",
            "allOf": [
              {
                "$ref": "#/components/schemas/Address"
              }
            ]
          }
        },
        "required": [
          "role",
          "name",
          "type"
        ]
      },
      "AuthenticationProblemDetail": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "example": "https://api.getpalm.com/problems/authentication_error"
          },
          "title": {
            "type": "string",
            "example": "Unauthorized"
          },
          "status": {
            "type": "number",
            "example": 401
          },
          "detail": {
            "type": "string",
            "example": "No valid authentication provided. Please provide one of the accepted authentication methods."
          },
          "instance": {
            "type": "string",
            "example": "/business/registry/search"
          }
        },
        "required": [
          "type",
          "title",
          "status",
          "detail",
          "instance"
        ]
      },
      "Business": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the resource",
            "format": "uuid",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          "object": {
            "type": "string",
            "description": "Object type identifier, always \"business\"",
            "example": "business",
            "enum": [
              "business"
            ]
          },
          "mode": {
            "type": "string",
            "description": "Whether this resource was created with test or live credentials. Test and live data are fully isolated — a test resource never appears in live results and vice versa.",
            "enum": [
              "test",
              "live"
            ],
            "example": "live"
          },
          "created_at": {
            "type": "string",
            "description": "ISO 8601 timestamp of when the resource was created",
            "format": "date-time",
            "example": "2025-10-24T10:30:00Z"
          },
          "updated_at": {
            "type": "string",
            "description": "ISO 8601 timestamp of when the resource was last updated",
            "format": "date-time",
            "example": "2025-10-24T15:45:00Z"
          },
          "metadata": {
            "type": "object",
            "description": "Store up to 50 custom key-value pairs for application-specific data. Useful for storing references to external systems, feature flags, or other custom attributes.",
            "additionalProperties": {
              "type": "string"
            },
            "example": {
              "external_id": "user_123_in_my_system",
              "customer_tier": "premium",
              "signup_source": "mobile_app"
            }
          },
          "palm_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Palm identifier for the business, used for monitoring and external integrations",
            "example": "1234-5678-9012"
          },
          "status": {
            "type": "string",
            "description": "Current status of the business",
            "enum": [
              "active",
              "suspended",
              "deleted"
            ],
            "example": "active"
          },
          "display_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Display name for the business",
            "example": "Acme Corp"
          },
          "ein_fingerprint": {
            "type": [
              "string",
              "null"
            ],
            "description": "SHA-256 fingerprint of the business's EIN (Employer Identification Number). Used for duplicate detection and search without exposing the actual EIN. Automatically generated when EIN is stored in vault.",
            "example": "c9f6ef5h141i49398hkm345621iii90jh3el0007"
          },
          "registration_type": {
            "description": "Whether the business is registered in the state where it was formed (`domestic`) or in another state (`foreign`). Read from `business.formation_jurisdiction` and `business.registration_jurisdiction`; null when either is missing.",
            "example": "foreign",
            "oneOf": [
              {
                "$ref": "#/components/schemas/RegistrationType"
              },
              {
                "type": "null"
              }
            ]
          },
          "domestic_business_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "When this business is linked as a registration in another state, the ID of its domestic business. Null when it is not linked; linking is optional. List every business linked to a business with the `domestic_business_id` filter on business search.",
            "format": "uuid",
            "example": "987e6543-e21a-45b6-c789-012345678901"
          },
          "verification": {
            "description": "Most recent verification information. Null if business has never been verified.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/BusinessVerification"
              },
              {
                "type": "null"
              }
            ]
          },
          "vault": {
            "type": [
              "object",
              "null"
            ],
            "description": "Cached vault field values for non-encrypted fields. Keys are full field IDs (e.g., \"business.legal_name\"). Only includes fields where encrypted=false in vault_field_definition.",
            "additionalProperties": true,
            "example": {
              "business.legal_name": "Acme Corporation Inc.",
              "business.entity_type": "llc",
              "business.formation_jurisdiction": "US-DE",
              "business.formation_date": "2020-03-15",
              "business.address_line_1": "123 Main St",
              "business.city": "San Francisco",
              "business.region": "CA",
              "business.postal_code": "94105",
              "business.country": "US"
            }
          }
        },
        "required": [
          "id",
          "object",
          "mode",
          "created_at",
          "updated_at",
          "metadata",
          "palm_id",
          "status",
          "display_name",
          "ein_fingerprint",
          "registration_type",
          "domestic_business_id",
          "verification",
          "vault"
        ]
      },
      "BusinessCreateRequest": {
        "type": "object",
        "properties": {
          "metadata": {
            "type": "object",
            "description": "Store up to 50 custom key-value pairs for application-specific data. Useful for storing references to external systems, feature flags, or other custom attributes.",
            "additionalProperties": {
              "type": "string"
            },
            "maxProperties": 50,
            "example": {
              "external_id": "user_789_in_my_system",
              "customer_tier": "standard",
              "signup_source": "web"
            }
          },
          "display_name": {
            "type": "string",
            "description": "Display name for the business",
            "example": "Acme Corp"
          },
          "vault": {
            "description": "Business data to store in the vault. Use vault field IDs as keys (e.g., \"business.ein\", \"business.legal_name\"). See `BusinessVaultFields` for the complete list of available fields.",
            "example": {
              "business.legal_name": "Acme Corporation Inc.",
              "business.entity_type": "llc",
              "business.formation_jurisdiction": "US-DE",
              "business.formation_date": "2026-03-15",
              "business.address_line_1": "123 Business Blvd",
              "business.address_line_2": "Suite 100",
              "business.city": "Wilmington",
              "business.region": "DE",
              "business.postal_code": "19801",
              "business.country": "US"
            },
            "allOf": [
              {
                "$ref": "#/components/schemas/BusinessVaultFields"
              }
            ]
          },
          "domestic_business": {
            "description": "Optional. When this business is a registration in another state of a company you also hold in your account, its domestic business to link it to. That business must already be in your account, be domestic, and have the same formation jurisdiction and entity type; both need `business.formation_jurisdiction`, `business.registration_jurisdiction` and `business.entity_type`. A foreign qualification Palm files creates and links the new state's business for you, so link only registrations filed outside Palm.",
            "allOf": [
              {
                "$ref": "#/components/schemas/DomesticBusinessReference"
              }
            ]
          }
        }
      },
      "BusinessCreatedEvent": {
        "type": "object",
        "description": "A business was added to your portfolio. `data.object` is the business as it stands after the change.",
        "required": [
          "id",
          "object",
          "type",
          "created_at",
          "mode",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for this event, prefixed `evt_`. Use it to de-duplicate deliveries.",
            "example": "evt_1768473000000_1fc4ca763f65"
          },
          "object": {
            "type": "string",
            "enum": [
              "event"
            ],
            "description": "Always `event`."
          },
          "type": {
            "type": "string",
            "enum": [
              "business.created"
            ],
            "description": "The event type."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event occurred.",
            "example": "2026-01-15T10:30:00.000Z"
          },
          "mode": {
            "type": "string",
            "enum": [
              "test",
              "live"
            ],
            "description": "Whether the event was produced in test or live mode. Matches the endpoint it is delivered to."
          },
          "data": {
            "type": "object",
            "required": [
              "object"
            ],
            "properties": {
              "object": {
                "$ref": "#/components/schemas/Business"
              }
            }
          }
        }
      },
      "BusinessFilingDueEvent": {
        "type": "object",
        "description": "A compliance filing for a monitored business is coming due. `data.object` describes the filing and its due date; `data.business` identifies the business.",
        "required": [
          "id",
          "object",
          "type",
          "created_at",
          "mode",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for this event, prefixed `evt_`. Use it to de-duplicate deliveries.",
            "example": "evt_1768473000000_ccb760cd4e1e"
          },
          "object": {
            "type": "string",
            "enum": [
              "event"
            ],
            "description": "Always `event`."
          },
          "type": {
            "type": "string",
            "enum": [
              "business.filing.due"
            ],
            "description": "The event type."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event occurred.",
            "example": "2026-01-15T10:30:00.000Z"
          },
          "mode": {
            "type": "string",
            "enum": [
              "test",
              "live"
            ],
            "description": "Whether the event was produced in test or live mode. Matches the endpoint it is delivered to."
          },
          "data": {
            "type": "object",
            "required": [
              "object",
              "business"
            ],
            "properties": {
              "object": {
                "$ref": "#/components/schemas/ComplianceFiling"
              },
              "business": {
                "$ref": "#/components/schemas/MonitoredBusinessReference"
              }
            }
          }
        }
      },
      "BusinessFilingOverdueEvent": {
        "type": "object",
        "description": "A compliance filing for a monitored business is past due. `data.object` describes the filing and its due date; `data.business` identifies the business.",
        "required": [
          "id",
          "object",
          "type",
          "created_at",
          "mode",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for this event, prefixed `evt_`. Use it to de-duplicate deliveries.",
            "example": "evt_1768473000000_a8b14b3bc6fe"
          },
          "object": {
            "type": "string",
            "enum": [
              "event"
            ],
            "description": "Always `event`."
          },
          "type": {
            "type": "string",
            "enum": [
              "business.filing.overdue"
            ],
            "description": "The event type."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event occurred.",
            "example": "2026-01-15T10:30:00.000Z"
          },
          "mode": {
            "type": "string",
            "enum": [
              "test",
              "live"
            ],
            "description": "Whether the event was produced in test or live mode. Matches the endpoint it is delivered to."
          },
          "data": {
            "type": "object",
            "required": [
              "object",
              "business"
            ],
            "properties": {
              "object": {
                "$ref": "#/components/schemas/ComplianceFiling"
              },
              "business": {
                "$ref": "#/components/schemas/MonitoredBusinessReference"
              }
            }
          }
        }
      },
      "BusinessReference": {
        "type": "object",
        "properties": {
          "business_id": {
            "type": "string",
            "description": "Unique identifier for the business",
            "format": "uuid",
            "example": "987e6543-e21a-45b6-c789-012345678901"
          },
          "business_name": {
            "type": "string",
            "description": "Name of the business",
            "example": "Acme Corporation"
          },
          "ownership_percentage": {
            "type": "number",
            "description": "Percentage of ownership in the business",
            "minimum": 0,
            "maximum": 100,
            "example": 35.5
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "User's title or role in the business",
            "example": "CEO"
          }
        },
        "required": [
          "business_id",
          "business_name",
          "ownership_percentage",
          "title"
        ]
      },
      "BusinessRegistrationUpdatedEvent": {
        "type": "object",
        "description": "A monitored business changed on the registry: status, standing, entity type, name, address, agent, associates, filings or identifiers. `data.business` identifies the business and `data.changes` lists each change with a human-readable summary and the previous and current values.",
        "required": [
          "id",
          "object",
          "type",
          "created_at",
          "mode",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for this event, prefixed `evt_`. Use it to de-duplicate deliveries.",
            "example": "evt_1768473000000_7aba06d32fc9"
          },
          "object": {
            "type": "string",
            "enum": [
              "event"
            ],
            "description": "Always `event`."
          },
          "type": {
            "type": "string",
            "enum": [
              "business.registration.updated"
            ],
            "description": "The event type."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event occurred.",
            "example": "2026-01-15T10:30:00.000Z"
          },
          "mode": {
            "type": "string",
            "enum": [
              "test",
              "live"
            ],
            "description": "Whether the event was produced in test or live mode. Matches the endpoint it is delivered to."
          },
          "data": {
            "type": "object",
            "required": [
              "business",
              "changes"
            ],
            "properties": {
              "business": {
                "$ref": "#/components/schemas/MonitoredBusinessReference"
              },
              "changes": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ChangeEntry"
                }
              }
            }
          }
        }
      },
      "BusinessRegistrySearchRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Business name to search. Required when neither associate.name nor palm_id is provided.",
            "example": "The Coca-Cola Company"
          },
          "associate": {
            "description": "Search by a person associated with a business (officer, director, manager, member, or registered agent). Required when neither name nor palm_id is provided.",
            "allOf": [
              {
                "$ref": "#/components/schemas/RegistryAssociateSearch"
              }
            ]
          },
          "palm_id": {
            "type": "string",
            "description": "Palm ID of a specific registry business. When provided, returns that record directly without name-based matching.",
            "example": "4604-3477-1850"
          },
          "registration_jurisdiction": {
            "type": "string",
            "description": "Registration jurisdiction in ISO 3166-2 format (e.g., US-CA, US-NY, US-TX)",
            "example": "US-FL"
          },
          "formation_jurisdiction": {
            "type": "string",
            "description": "Formation jurisdiction in ISO 3166-2 format (e.g., US-DE, US-CA, US-WY)",
            "example": "US-DE"
          },
          "location_street": {
            "type": "string",
            "description": "Street address where business is physically located",
            "example": "One Coca-Cola Plaza NW"
          },
          "location_city": {
            "type": "string",
            "description": "City where business is physically located",
            "example": "Atlanta"
          },
          "location_region": {
            "type": "string",
            "description": "Region/state/province where business is physically located (ISO 3166-2 format: XX-YY)",
            "example": "US-GA"
          },
          "location_postal_code": {
            "type": "string",
            "description": "Postal/ZIP code where business is physically located",
            "example": "30313"
          },
          "entity_type": {
            "type": "string",
            "description": "Entity type to filter by. Types are mutually exclusive.",
            "example": "corporation",
            "enum": [
              "llc",
              "corporation",
              "lp",
              "llp",
              "nonprofit",
              "professional_llc",
              "professional_corporation",
              "other"
            ]
          },
          "status": {
            "type": "string",
            "description": "Business status",
            "example": "active",
            "enum": [
              "active",
              "inactive",
              "dissolved",
              "expired",
              "merged",
              "withdrawn",
              "pending",
              "canceled"
            ]
          },
          "formation_date": {
            "description": "Filter by business formation date (inclusive range). Either bound is optional.",
            "allOf": [
              {
                "$ref": "#/components/schemas/DateRange"
              }
            ]
          }
        }
      },
      "BusinessRemovedEvent": {
        "type": "object",
        "description": "A business was removed from your portfolio. `data.object` is the business as it stands after the change. Status is `deleted`.",
        "required": [
          "id",
          "object",
          "type",
          "created_at",
          "mode",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for this event, prefixed `evt_`. Use it to de-duplicate deliveries.",
            "example": "evt_1768473000000_d3e44d6229d6"
          },
          "object": {
            "type": "string",
            "enum": [
              "event"
            ],
            "description": "Always `event`."
          },
          "type": {
            "type": "string",
            "enum": [
              "business.removed"
            ],
            "description": "The event type."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event occurred.",
            "example": "2026-01-15T10:30:00.000Z"
          },
          "mode": {
            "type": "string",
            "enum": [
              "test",
              "live"
            ],
            "description": "Whether the event was produced in test or live mode. Matches the endpoint it is delivered to."
          },
          "data": {
            "type": "object",
            "required": [
              "object"
            ],
            "properties": {
              "object": {
                "$ref": "#/components/schemas/Business"
              }
            }
          }
        }
      },
      "BusinessSearchRequest": {
        "type": "object",
        "properties": {
          "display_name": {
            "type": "string",
            "description": "Filter by display name (partial match, case-insensitive)",
            "example": "Acme Corp"
          },
          "ein": {
            "type": "string",
            "description": "Filter by EIN (exact match). Value is hashed for secure lookup.",
            "example": "12-3456789"
          },
          "domestic_business_id": {
            "type": "string",
            "description": "Return the businesses linked to this domestic business as its registrations in other states",
            "format": "uuid",
            "example": "987e6543-e21a-45b6-c789-012345678901"
          },
          "vault": {
            "description": "Filter by vault fields using prefixed field names. Supports: business.legal_name (partial), business.entity_type, business.formation_jurisdiction, business.registration_jurisdiction, business.formation_date, business.city (partial), business.region, business.postal_code, business.country.",
            "example": {
              "business.legal_name": "Acme",
              "business.entity_type": "llc",
              "business.registration_jurisdiction": "US-CA"
            },
            "allOf": [
              {
                "$ref": "#/components/schemas/BusinessVaultFields"
              }
            ]
          },
          "metadata": {
            "type": "object",
            "description": "Filter by metadata fields. Use dot notation for nested keys. Example: { \"industry\": \"technology\", \"settings.notify\": \"true\" }",
            "example": {
              "industry": "technology"
            }
          },
          "cursor": {
            "type": "string",
            "description": "Pagination cursor from a previous response. A cursor is bound to the `sort` and `order` that produced it: send those same values on every page, and start over without a cursor whenever either one changes."
          },
          "limit": {
            "type": "number",
            "description": "Maximum number of results to return (1-100)",
            "default": 25
          },
          "sort": {
            "type": "string",
            "description": "Field to sort by. `jurisdiction` sorts by registration jurisdiction, `formation_jurisdiction` by formation jurisdiction.",
            "enum": [
              "created_at",
              "name",
              "jurisdiction",
              "formation_jurisdiction",
              "entity_type",
              "risk_level",
              "last_verified"
            ],
            "default": "created_at"
          },
          "order": {
            "type": "string",
            "description": "Sort order direction",
            "enum": [
              "asc",
              "desc"
            ],
            "default": "desc"
          }
        }
      },
      "BusinessSearchResult": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the resource",
            "format": "uuid",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          "object": {
            "type": "string",
            "description": "Object type identifier, always \"business\"",
            "example": "business",
            "enum": [
              "business"
            ]
          },
          "mode": {
            "type": "string",
            "description": "Whether this resource was created with test or live credentials. Test and live data are fully isolated — a test resource never appears in live results and vice versa.",
            "enum": [
              "test",
              "live"
            ],
            "example": "live"
          },
          "created_at": {
            "type": "string",
            "description": "ISO 8601 timestamp of when the resource was created",
            "format": "date-time",
            "example": "2025-10-24T10:30:00Z"
          },
          "updated_at": {
            "type": "string",
            "description": "ISO 8601 timestamp of when the resource was last updated",
            "format": "date-time",
            "example": "2025-10-24T15:45:00Z"
          },
          "metadata": {
            "type": "object",
            "description": "Store up to 50 custom key-value pairs for application-specific data. Useful for storing references to external systems, feature flags, or other custom attributes.",
            "additionalProperties": {
              "type": "string"
            },
            "example": {
              "external_id": "user_123_in_my_system",
              "customer_tier": "premium",
              "signup_source": "mobile_app"
            }
          },
          "palm_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Palm identifier for the business, used for monitoring and external integrations",
            "example": "1234-5678-9012"
          },
          "status": {
            "type": "string",
            "description": "Current status of the business",
            "enum": [
              "active",
              "suspended",
              "deleted"
            ],
            "example": "active"
          },
          "display_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Display name for the business",
            "example": "Acme Corp"
          },
          "ein_fingerprint": {
            "type": [
              "string",
              "null"
            ],
            "description": "SHA-256 fingerprint of the business's EIN (Employer Identification Number). Used for duplicate detection and search without exposing the actual EIN. Automatically generated when EIN is stored in vault.",
            "example": "c9f6ef5h141i49398hkm345621iii90jh3el0007"
          },
          "registration_type": {
            "description": "Whether the business is registered in the state where it was formed (`domestic`) or in another state (`foreign`). Read from `business.formation_jurisdiction` and `business.registration_jurisdiction`; null when either is missing.",
            "example": "foreign",
            "oneOf": [
              {
                "$ref": "#/components/schemas/RegistrationType"
              },
              {
                "type": "null"
              }
            ]
          },
          "domestic_business_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "When this business is linked as a registration in another state, the ID of its domestic business. Null when it is not linked; linking is optional. List every business linked to a business with the `domestic_business_id` filter on business search.",
            "format": "uuid",
            "example": "987e6543-e21a-45b6-c789-012345678901"
          },
          "verification": {
            "description": "Most recent verification information. Null if business has never been verified.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/BusinessVerification"
              },
              {
                "type": "null"
              }
            ]
          },
          "vault": {
            "type": [
              "object",
              "null"
            ],
            "description": "Cached vault field values for non-encrypted fields. Keys are full field IDs (e.g., \"business.legal_name\"). Only includes fields where encrypted=false in vault_field_definition.",
            "additionalProperties": true,
            "example": {
              "business.legal_name": "Acme Corporation Inc.",
              "business.entity_type": "llc",
              "business.formation_jurisdiction": "US-DE",
              "business.formation_date": "2020-03-15",
              "business.address_line_1": "123 Main St",
              "business.city": "San Francisco",
              "business.region": "CA",
              "business.postal_code": "94105",
              "business.country": "US"
            }
          }
        },
        "required": [
          "id",
          "object",
          "mode",
          "created_at",
          "updated_at",
          "metadata",
          "palm_id",
          "status",
          "display_name",
          "ein_fingerprint",
          "registration_type",
          "domestic_business_id",
          "verification",
          "vault"
        ]
      },
      "BusinessUpdateRequest": {
        "type": "object",
        "properties": {
          "metadata": {
            "type": "object",
            "description": "Store up to 50 custom key-value pairs for application-specific data. Metadata updates are merged with existing metadata. To remove a metadata field, set its value to null.",
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            },
            "maxProperties": 50,
            "example": {
              "customer_tier": "premium",
              "notes": null
            }
          },
          "display_name": {
            "type": "string",
            "description": "Display name for the business",
            "example": "Acme Corp"
          },
          "domestic_business": {
            "description": "Optional. Links this business, as a registration in another state, to its domestic business, under the same rules as on create. Send null to remove the link. A foreign qualification Palm files creates and links the new state's business for you, so link only registrations filed outside Palm.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/DomesticBusinessReference"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "BusinessVaultFields": {
        "type": "object",
        "properties": {
          "business.legal_name": {
            "type": "string",
            "description": "Legal business name as registered with the Secretary of State",
            "example": "Acme Corporation"
          },
          "business.domestic_legal_name": {
            "type": "string",
            "description": "Legal name of the business as registered in its domestic state. Set on a foreign registration whose name in this state may differ; it never changes once set.",
            "example": "Acme Holdings LLC"
          },
          "business.dba_name": {
            "type": "string",
            "description": "Doing Business As (DBA) name",
            "example": "Acme Co"
          },
          "business.ein": {
            "type": "string",
            "description": "Employer Identification Number (EIN) in format XX-XXXXXXX",
            "example": "12-3456789"
          },
          "business.entity_type": {
            "type": "string",
            "description": "Type of business entity",
            "example": "llc",
            "enum": [
              "llc",
              "corporation",
              "lp",
              "llp",
              "nonprofit",
              "professional_llc",
              "professional_corporation",
              "other"
            ]
          },
          "business.formation_date": {
            "type": "string",
            "description": "Date the business was legally formed (YYYY-MM-DD)",
            "example": "2020-05-15"
          },
          "business.formation_jurisdiction": {
            "type": "string",
            "description": "Jurisdiction where the business was originally formed (US-XX format)",
            "example": "US-DE"
          },
          "business.registration_jurisdiction": {
            "type": "string",
            "description": "Jurisdiction where the business is registered to operate (US-XX format)",
            "example": "US-CA"
          },
          "business.registration_number": {
            "type": "string",
            "description": "Registration or file number the registration jurisdiction assigned to the business. Written automatically when a Palm formation completes; set it yourself for a business Palm did not form.",
            "example": "0805123456"
          },
          "business.address_line_1": {
            "type": "string",
            "description": "Business street address line 1",
            "example": "123 Business Blvd"
          },
          "business.address_line_2": {
            "type": "string",
            "description": "Business street address line 2 (suite, floor, etc.)",
            "example": "Suite 100"
          },
          "business.city": {
            "type": "string",
            "description": "Business city",
            "example": "San Francisco"
          },
          "business.region": {
            "type": "string",
            "description": "Business state, province, or region code",
            "example": "CA"
          },
          "business.postal_code": {
            "type": "string",
            "description": "Business postal or ZIP code",
            "example": "94102"
          },
          "business.country": {
            "type": "string",
            "description": "Business country (ISO 3166-1 alpha-2 code)",
            "example": "US"
          },
          "business.phone_number": {
            "type": "string",
            "description": "Business phone number (E.164 format recommended)",
            "example": "+15551234567"
          },
          "business.email": {
            "type": "string",
            "description": "Business email address",
            "example": "contact@acme.com"
          },
          "business.website": {
            "type": "string",
            "description": "Business website URL",
            "example": "https://acme.com"
          },
          "business.naics_code": {
            "type": "string",
            "description": "NAICS code for business industry classification",
            "example": "541511"
          }
        }
      },
      "BusinessVerification": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "ID of the verification attempt",
            "format": "uuid",
            "example": "550e8400-e29b-41d4-a716-446655440000"
          },
          "risk_level": {
            "type": [
              "string",
              "null"
            ],
            "description": "Risk level determined by the verification. Null while the verification is still in progress.",
            "enum": [
              "low",
              "medium",
              "high",
              "critical",
              null
            ],
            "example": "low"
          },
          "workflow": {
            "description": "Workflow used for this verification",
            "allOf": [
              {
                "$ref": "#/components/schemas/BusinessVerificationWorkflow"
              }
            ]
          },
          "executed_at": {
            "type": "string",
            "description": "Timestamp when the verification was executed",
            "format": "date-time",
            "example": "2024-01-15T10:30:00.000Z"
          }
        },
        "required": [
          "id",
          "risk_level",
          "workflow",
          "executed_at"
        ]
      },
      "BusinessVerificationCompletedEvent": {
        "type": "object",
        "description": "A business verification finished. `data.object` is the verification result: risk level and reasons plus per-field match outcomes against the registry record. `completed` means the check ran, not that it passed; read `risk.level`.",
        "required": [
          "id",
          "object",
          "type",
          "created_at",
          "mode",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for this event, prefixed `evt_`. Use it to de-duplicate deliveries.",
            "example": "evt_1768473000000_89c000877e7e"
          },
          "object": {
            "type": "string",
            "enum": [
              "event"
            ],
            "description": "Always `event`."
          },
          "type": {
            "type": "string",
            "enum": [
              "business.verification.completed"
            ],
            "description": "The event type."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event occurred.",
            "example": "2026-01-15T10:30:00.000Z"
          },
          "mode": {
            "type": "string",
            "enum": [
              "test",
              "live"
            ],
            "description": "Whether the event was produced in test or live mode. Matches the endpoint it is delivered to."
          },
          "data": {
            "type": "object",
            "required": [
              "object"
            ],
            "properties": {
              "object": {
                "$ref": "#/components/schemas/BusinessVerificationResponse"
              }
            }
          }
        }
      },
      "BusinessVerificationMatch": {
        "type": "object",
        "properties": {
          "legal_name": {
            "type": "string",
            "description": "Legal name match result. `partial_match` = identified under a name variation (e.g. a DBA).",
            "enum": [
              "match",
              "partial_match",
              "no_match",
              "not_checked"
            ]
          },
          "ein": {
            "type": "string",
            "description": "EIN match result (includes IRS TIN matching validation)",
            "enum": [
              "match",
              "partial_match",
              "no_match",
              "not_checked"
            ]
          },
          "entity_type": {
            "type": "string",
            "description": "Entity type match result",
            "enum": [
              "match",
              "partial_match",
              "no_match",
              "not_checked"
            ]
          },
          "registration_jurisdiction": {
            "type": "string",
            "description": "Registration jurisdiction match result (where business is registered to operate)",
            "enum": [
              "match",
              "partial_match",
              "no_match",
              "not_checked"
            ]
          },
          "formation_jurisdiction": {
            "type": "string",
            "description": "Formation jurisdiction match result (where business was legally formed)",
            "enum": [
              "match",
              "partial_match",
              "no_match",
              "not_checked"
            ]
          },
          "formation_date": {
            "type": "string",
            "description": "Formation date match result. `partial_match` = within one day of the registry date (filing lag).",
            "enum": [
              "match",
              "partial_match",
              "no_match",
              "not_checked"
            ]
          },
          "address_line_1": {
            "type": "string",
            "description": "Business address line 1 match result",
            "enum": [
              "match",
              "partial_match",
              "no_match",
              "not_checked"
            ]
          },
          "address_line_2": {
            "type": "string",
            "description": "Business address line 2 match result",
            "enum": [
              "match",
              "partial_match",
              "no_match",
              "not_checked"
            ]
          },
          "city": {
            "type": "string",
            "description": "City/locality match result",
            "enum": [
              "match",
              "partial_match",
              "no_match",
              "not_checked"
            ]
          },
          "region": {
            "type": "string",
            "description": "Region match result (state/province/county)",
            "enum": [
              "match",
              "partial_match",
              "no_match",
              "not_checked"
            ]
          },
          "postal_code": {
            "type": "string",
            "description": "Postal code match result",
            "enum": [
              "match",
              "partial_match",
              "no_match",
              "not_checked"
            ]
          }
        }
      },
      "BusinessVerificationRequest": {
        "type": "object",
        "properties": {
          "reference_id": {
            "type": "string",
            "description": "Your reference ID for tracking",
            "example": "biz_12345"
          },
          "workflow_key": {
            "type": "string",
            "description": "Workflow key to use for verification (determines required fields). If not provided, uses organization default.",
            "pattern": "^[a-z0-9_]+$",
            "default": "business_verification_default",
            "example": "business_verification_default"
          },
          "legal_name": {
            "type": "string",
            "example": "The Coca-Cola Company",
            "description": "Legal business name"
          },
          "ein": {
            "type": "string",
            "example": "58-0628465",
            "description": "Employer Identification Number"
          },
          "entity_type": {
            "type": "string",
            "example": "corporation",
            "description": "Entity type",
            "enum": [
              "llc",
              "corporation",
              "lp",
              "llp",
              "nonprofit",
              "professional_llc",
              "professional_corporation",
              "other"
            ]
          },
          "registration_jurisdiction": {
            "type": "string",
            "example": "US-FL",
            "description": "Registration jurisdiction in ISO 3166-2 format (e.g., US-CA, US-NY, US-TX)"
          },
          "formation_jurisdiction": {
            "type": "string",
            "example": "US-DE",
            "description": "Formation jurisdiction in ISO 3166-2 format (e.g., US-DE, US-CA, US-WY)"
          },
          "formation_date": {
            "type": "string",
            "example": "1961-01-03",
            "format": "date",
            "description": "Formation date (YYYY-MM-DD)"
          },
          "address_line_1": {
            "type": "string",
            "example": "One Coca-Cola Plaza NW",
            "description": "Street address line 1"
          },
          "address_line_2": {
            "type": "string",
            "example": "Suite 100",
            "description": "Street address line 2"
          },
          "city": {
            "type": "string",
            "example": "Atlanta",
            "description": "City"
          },
          "region": {
            "type": "string",
            "example": "GA",
            "description": "Region (state/province/county)"
          },
          "postal_code": {
            "type": "string",
            "example": "30313",
            "description": "Postal code"
          },
          "country": {
            "type": "string",
            "example": "US",
            "description": "Country (2-letter ISO code)"
          },
          "phone_number": {
            "type": "string",
            "example": "+15551234567",
            "description": "Business phone number"
          },
          "email": {
            "type": "string",
            "example": "contact@coca-cola.com",
            "description": "Business email address"
          },
          "website": {
            "type": "string",
            "example": "https://www.coca-cola.com",
            "description": "Business website URL"
          },
          "associates": {
            "description": "Associated people to verify",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AssociateRequest"
            }
          },
          "metadata": {
            "type": "object",
            "description": "Custom metadata.\n\nIn **test mode** (`sk_test_` key), business verification is **always simulated** — it never queries live registry, IRS, or any authoritative source, so no-directive test requests return a deterministic clean pass rather than real registry data. The reserved key `_simulate` selects the outcome. Value is `<outcome>[:sync]`:\n\n- Risk levels: `low` (default), `medium`, `high`, `critical`\n- Scenarios: `inactive`, `newly_registered`, `tin_mismatch`, `no_match`\n- `fail` → terminal `status: failed`\n- Resolves synchronously by default (mirroring the live fast-path). Append `:async` (e.g. `low:async`) to instead receive `status: in_progress` now and the result via the `business.verification.completed` webhook after a short delay.\n\nIgnored in live mode.",
            "additionalProperties": true,
            "example": {
              "external_id": "biz_789",
              "source": "onboarding_flow"
            }
          }
        },
        "required": [
          "legal_name",
          "region"
        ]
      },
      "BusinessVerificationResponse": {
        "type": "object",
        "properties": {
          "verification_id": {
            "type": "string",
            "description": "Unique verification ID",
            "format": "uuid",
            "example": "550e8400-e29b-41d4-a716-446655440000"
          },
          "business_id": {
            "type": "string",
            "description": "ID of the business entity created or verified",
            "format": "uuid",
            "example": "987e6543-e21a-45b6-c789-012345678901"
          },
          "reference_id": {
            "type": "string",
            "description": "Your reference ID (if provided in the request)",
            "example": "biz_12345"
          },
          "status": {
            "type": "string",
            "description": "Current status of the verification. Branch on this before reading `risk` or `match`:\n\n- `completed` — Terminal. Either a confident match (populated `match`, evaluated `risk.level`) OR a \"no match\" verdict (empty `match: {}`, `risk.level: critical` with `\"Business not found\"` reason).\n- `in_progress` — Not yet resolved. `risk.level` is `null`; `match` may be empty or partial — treat both as unset until terminal. Final outcome delivered via `business.verification.completed` webhook.\n- `failed` — Terminal. The verification could not be completed. Safe to retry.",
            "enum": [
              "pending",
              "in_progress",
              "completed",
              "failed"
            ],
            "example": "completed"
          },
          "mode": {
            "type": "string",
            "enum": [
              "test",
              "live"
            ],
            "example": "live",
            "description": "Test/live partition the verification was created under. Determined by the API key used."
          },
          "risk": {
            "description": "Business risk assessment. Only meaningful when `status: completed`. See `BusinessVerificationRisk.level` for the three response shapes (matched / no-match / async-pending).",
            "allOf": [
              {
                "$ref": "#/components/schemas/BusinessVerificationRisk"
              }
            ]
          },
          "match": {
            "description": "Field-level match results against the matched authoritative record. On a matched terminal, every submitted field is present with an explicit result (`match`, `partial_match`, `no_match`, or `not_checked`) — never omitted. `partial_match` marks genuine near-matches (name variation/DBA, ±1-day formation date, address containment); formatting differences (abbreviations, ZIP+4) normalize to `match`. Empty (or near-empty) in two cases: (1) terminal \"no match\" outcome (`status: completed`, `risk.level: critical`) where no record was identified — a submitted `ein` still reports `not_checked`; (2) async-pending outcome (`status: in_progress`) where verification hasn't resolved yet — wait for the webhook. Only fields the partner submitted in the request ever appear.",
            "allOf": [
              {
                "$ref": "#/components/schemas/BusinessVerificationMatch"
              }
            ]
          },
          "associates": {
            "description": "Associated people verification results (full KYC results for each associate)",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UserVerificationResponse"
            }
          },
          "created_at": {
            "type": "string",
            "description": "ISO 8601 timestamp of when the verification was created",
            "format": "date-time",
            "example": "2025-10-24T10:30:00Z"
          },
          "updated_at": {
            "type": "string",
            "description": "ISO 8601 timestamp of when the verification was last updated",
            "format": "date-time",
            "example": "2025-10-24T10:35:00Z"
          }
        },
        "required": [
          "verification_id",
          "business_id",
          "status",
          "mode",
          "risk",
          "match",
          "created_at"
        ]
      },
      "BusinessVerificationRisk": {
        "type": "object",
        "properties": {
          "level": {
            "type": [
              "string",
              "null"
            ],
            "description": "Overall business risk assessment level. Three meaningful shapes:\n\n- A `RiskLevel` value (`low` / `medium` / `high` / `critical`) when `status: completed` and a record was matched — reflects risk evaluation against the matched authoritative record.\n- `critical` when `status: completed` and `match: {}` — terminal \"no match\" verdict. `reasons` will contain a `\"Business not found in any authoritative source\"`-shaped entry.\n- `null` when `status: in_progress` — verification hasn't completed and risk has not been evaluated. Treat as unset.\n\nAlways check `status` first; do not act on `level` while `status: in_progress`.",
            "enum": [
              "low",
              "medium",
              "high",
              "critical",
              null
            ],
            "example": "low"
          },
          "reasons": {
            "description": "Human-readable risk findings. Empty array when no risk signals fired (or when `status: in_progress`). For terminal \"no match\" outcomes, contains a single `\"Business not found in any authoritative source\"`-shaped entry.",
            "example": [
              "Business status is dissolved",
              "Submitted EIN does not match IRS records",
              "Business registered less than 90 days ago"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "level",
          "reasons"
        ]
      },
      "BusinessVerificationWorkflow": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the workflow",
            "example": "Business Verification"
          },
          "version": {
            "type": "number",
            "description": "Version of the workflow",
            "example": 1
          }
        },
        "required": [
          "name",
          "version"
        ]
      },
      "Case": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the resource",
            "format": "uuid",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          "object": {
            "type": "string",
            "description": "Object type",
            "example": "case",
            "enum": [
              "case"
            ]
          },
          "mode": {
            "type": "string",
            "description": "Whether this resource was created with test or live credentials. Test and live data are fully isolated — a test resource never appears in live results and vice versa.",
            "enum": [
              "test",
              "live"
            ],
            "example": "live"
          },
          "created_at": {
            "type": "string",
            "description": "ISO 8601 timestamp of when the resource was created",
            "format": "date-time",
            "example": "2025-10-24T10:30:00Z"
          },
          "updated_at": {
            "type": "string",
            "description": "ISO 8601 timestamp of when the resource was last updated",
            "format": "date-time",
            "example": "2025-10-24T15:45:00Z"
          },
          "metadata": {
            "type": "object",
            "description": "Store up to 50 custom key-value pairs for application-specific data. Useful for storing references to external systems, feature flags, or other custom attributes.",
            "additionalProperties": {
              "type": "string"
            },
            "example": {
              "external_id": "user_123_in_my_system",
              "customer_tier": "premium",
              "signup_source": "mobile_app"
            }
          },
          "parent_type": {
            "type": "string",
            "description": "Type of the parent resource this case attaches to.",
            "enum": [
              "filing",
              "verification",
              "business",
              "session"
            ]
          },
          "parent_id": {
            "type": "string",
            "description": "ID of the parent resource named by `parent_type`.",
            "format": "uuid",
            "example": "4b2d9e17-8c35-4a6b-9f02-1e7d5a3c8b96"
          },
          "kind": {
            "type": "string",
            "description": "Typed kind of case. Each kind has its own request/response payload shape — see the request/response fields.",
            "enum": [
              "missing_information",
              "legal_name_change",
              "ra_termination",
              "late_fee_approval"
            ]
          },
          "status": {
            "type": "string",
            "description": "Lifecycle status. `needs_response` means the partner must act; `under_review` means Palm is working on it. Both are open states. `resolved` and `superseded` are terminal.",
            "enum": [
              "needs_response",
              "under_review",
              "resolved",
              "superseded"
            ]
          },
          "summary": {
            "type": "string",
            "description": "One-line summary of the case.",
            "example": "Additional information needed to complete your filing."
          },
          "details": {
            "type": "string",
            "description": "Markdown-formatted details about the case."
          },
          "request": {
            "description": "Typed request payload — what Palm is asking for.",
            "allOf": [
              {
                "$ref": "#/components/schemas/CaseRequestPayload"
              }
            ]
          },
          "response": {
            "description": "Typed response payload — what the partner submitted. Present once the partner has responded. For a `legal_name_change` case, `fields.legal_name` is the business name to file under instead. For a `late_fee_approval` case, `fields.approved` is `true` when the partner approved the late fee and `false` when it declined.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/CaseResponsePayload"
              },
              {
                "type": "null"
              }
            ]
          },
          "due_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Timestamp by which the case is expected to be resolved.",
            "format": "date-time"
          },
          "opened_at": {
            "type": "string",
            "description": "Timestamp the case was opened.",
            "format": "date-time"
          },
          "resolved_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Timestamp the case was resolved or superseded.",
            "format": "date-time"
          },
          "resolution_reason": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the case left an open state. Set when status is `resolved` or `superseded`.",
            "enum": [
              "response_received",
              "no_response_needed",
              "parent_canceled",
              "parent_completed",
              "parent_failed",
              null
            ]
          }
        },
        "required": [
          "id",
          "object",
          "mode",
          "created_at",
          "updated_at",
          "metadata",
          "parent_type",
          "parent_id",
          "kind",
          "status",
          "summary",
          "opened_at"
        ]
      },
      "CaseLateFee": {
        "type": "object",
        "properties": {
          "amount": {
            "description": "The late fee the filing office asks for.",
            "allOf": [
              {
                "$ref": "#/components/schemas/CaseLateFeeAmount"
              }
            ]
          },
          "reason": {
            "type": "string",
            "description": "Why the filing office asks for it, in plain words.",
            "maxLength": 2000,
            "example": "The Florida Department of State charges a penalty because the business transacted business in Florida before registering."
          }
        },
        "required": [
          "amount",
          "reason"
        ]
      },
      "CaseLateFeeAmount": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "number",
            "description": "Amount in major units of `currency`, for example dollars.",
            "example": 250
          },
          "currency": {
            "type": "string",
            "description": "ISO 4217 currency code.",
            "example": "USD"
          }
        },
        "required": [
          "amount",
          "currency"
        ]
      },
      "CaseOpenedEvent": {
        "type": "object",
        "description": "A case is awaiting your response for the first time. `data.object` is the case; `request.fields` lists what is needed.",
        "required": [
          "id",
          "object",
          "type",
          "created_at",
          "mode",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for this event, prefixed `evt_`. Use it to de-duplicate deliveries.",
            "example": "evt_1768473000000_a4ead76d6646"
          },
          "object": {
            "type": "string",
            "enum": [
              "event"
            ],
            "description": "Always `event`."
          },
          "type": {
            "type": "string",
            "enum": [
              "case.opened"
            ],
            "description": "The event type."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event occurred.",
            "example": "2026-01-15T10:30:00.000Z"
          },
          "mode": {
            "type": "string",
            "enum": [
              "test",
              "live"
            ],
            "description": "Whether the event was produced in test or live mode. Matches the endpoint it is delivered to."
          },
          "data": {
            "type": "object",
            "required": [
              "object"
            ],
            "properties": {
              "object": {
                "$ref": "#/components/schemas/Case"
              }
            }
          }
        }
      },
      "CaseRequestPayload": {
        "type": "object",
        "properties": {
          "fields": {
            "description": "Ordered list of fields Palm is requesting from you. A `legal_name_change` case always includes a field named `legal_name`, answered with up to 255 characters. A `late_fee_approval` case always includes a boolean field named `approved`.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FieldSpec"
            }
          },
          "late_fee": {
            "description": "Only on a `late_fee_approval` case: the late fee the filing office asks for and why. The office's notice or a screenshot of the charge is in `documents`. Answer with `fields.approved` set to `true` to have Palm pay it and file, or `false` to decline; a declined late fee is not paid and the filing is canceled.",
            "allOf": [
              {
                "$ref": "#/components/schemas/CaseLateFee"
              }
            ]
          },
          "documents": {
            "description": "IDs of documents Palm attached for you, such as a letter from the state or a form to sign and return. Each is related to this case; retrieve it by id through the document endpoints.",
            "example": [
              "906f369f-a73b-46a2-8184-ccc5c2848abd"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          }
        },
        "required": [
          "fields"
        ]
      },
      "CaseResolvedEvent": {
        "type": "object",
        "description": "A case reached a terminal state. `data.object` is the case; `resolution_reason` says how it closed.",
        "required": [
          "id",
          "object",
          "type",
          "created_at",
          "mode",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for this event, prefixed `evt_`. Use it to de-duplicate deliveries.",
            "example": "evt_1768473000000_a8f9128d12ba"
          },
          "object": {
            "type": "string",
            "enum": [
              "event"
            ],
            "description": "Always `event`."
          },
          "type": {
            "type": "string",
            "enum": [
              "case.resolved"
            ],
            "description": "The event type."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event occurred.",
            "example": "2026-01-15T10:30:00.000Z"
          },
          "mode": {
            "type": "string",
            "enum": [
              "test",
              "live"
            ],
            "description": "Whether the event was produced in test or live mode. Matches the endpoint it is delivered to."
          },
          "data": {
            "type": "object",
            "required": [
              "object"
            ],
            "properties": {
              "object": {
                "$ref": "#/components/schemas/Case"
              }
            }
          }
        }
      },
      "CaseResponsePayload": {
        "type": "object",
        "properties": {
          "fields": {
            "type": "object",
            "description": "Map of field name to value. Keys must match the names from the case request; required fields must be present.",
            "additionalProperties": true,
            "example": {
              "legal_name": "Acme Holdings LLC",
              "signed_consent_letter": "906f369f-a73b-46a2-8184-ccc5c2848abd"
            }
          },
          "documents": {
            "description": "IDs of documents uploaded to the business that support this response, in addition to any `document` fields. Each becomes related to the case and its filing.",
            "example": [
              "906f369f-a73b-46a2-8184-ccc5c2848abd"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          }
        }
      },
      "CaseResponseRequest": {
        "type": "object",
        "properties": {
          "response": {
            "description": "Typed response payload — what the partner is submitting for this case.",
            "allOf": [
              {
                "$ref": "#/components/schemas/CaseResponsePayload"
              }
            ]
          }
        },
        "required": [
          "response"
        ]
      },
      "CaseUpdatedEvent": {
        "type": "object",
        "description": "A case you can see changed hands, such as moving to `under_review` after your response, or Palm attached documents for you. `data.object` is the case.",
        "required": [
          "id",
          "object",
          "type",
          "created_at",
          "mode",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for this event, prefixed `evt_`. Use it to de-duplicate deliveries.",
            "example": "evt_1768473000000_accd29a87d21"
          },
          "object": {
            "type": "string",
            "enum": [
              "event"
            ],
            "description": "Always `event`."
          },
          "type": {
            "type": "string",
            "enum": [
              "case.updated"
            ],
            "description": "The event type."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event occurred.",
            "example": "2026-01-15T10:30:00.000Z"
          },
          "mode": {
            "type": "string",
            "enum": [
              "test",
              "live"
            ],
            "description": "Whether the event was produced in test or live mode. Matches the endpoint it is delivered to."
          },
          "data": {
            "type": "object",
            "required": [
              "object"
            ],
            "properties": {
              "object": {
                "$ref": "#/components/schemas/Case"
              }
            }
          }
        }
      },
      "ChangeEntry": {
        "type": "object",
        "properties": {
          "attribute": {
            "type": "string",
            "example": "name.legal",
            "description": "The attribute that changed. Uses dot notation for subtypes (e.g., name.legal, name.dba, address.principal, address.mailing). Top-level for singular attributes (e.g., status, agent, associate, filing, standing, identifier, entity_type)."
          },
          "action": {
            "type": "string",
            "enum": [
              "added",
              "updated",
              "removed"
            ],
            "example": "updated",
            "description": "What happened to the attribute"
          },
          "summary": {
            "type": "string",
            "example": "Legal name changed from OLD NAME LLC to NEW NAME LLC",
            "description": "Human-readable description of the change"
          },
          "previous_value": {
            "example": "OLD NAME LLC",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "additionalProperties": true
              },
              {
                "type": "null"
              }
            ],
            "description": "Previous value before the change (null for added attributes). May be a string or an object depending on attribute type."
          },
          "current_value": {
            "example": "NEW NAME LLC",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "additionalProperties": true
              },
              {
                "type": "null"
              }
            ],
            "description": "Current value after the change (null for removed attributes). May be a string or an object depending on attribute type."
          }
        },
        "required": [
          "attribute",
          "action",
          "summary",
          "previous_value",
          "current_value"
        ]
      },
      "ComplianceFiling": {
        "type": "object",
        "properties": {
          "type": {
            "description": "Filing type",
            "allOf": [
              {
                "$ref": "#/components/schemas/FilingType"
              }
            ]
          },
          "frequency": {
            "type": "string",
            "example": "annual",
            "description": "Filing frequency (e.g., annual, biennial)"
          },
          "due_date": {
            "type": [
              "string",
              "null"
            ],
            "example": "2026-04-15",
            "format": "date",
            "description": "Date the filing is due"
          }
        },
        "required": [
          "type",
          "frequency",
          "due_date"
        ]
      },
      "ConstructionActivity": {
        "type": "object",
        "properties": {
          "category": {
            "type": "string",
            "enum": [
              "construction"
            ],
            "example": "construction"
          },
          "detail": {
            "description": "Construction follow-up details",
            "allOf": [
              {
                "$ref": "#/components/schemas/ConstructionDetail"
              }
            ]
          }
        },
        "required": [
          "category",
          "detail"
        ]
      },
      "ConstructionDetail": {
        "type": "object",
        "properties": {
          "single_trade": {
            "type": "boolean",
            "description": "Does the business focus on a single construction trade?",
            "example": true
          },
          "trade": {
            "type": "string",
            "description": "The single construction trade. Required when single_trade is true.",
            "example": "Electrical"
          },
          "construction_type": {
            "type": "string",
            "description": "Type of construction. Required when single_trade is false.",
            "enum": [
              "new_residential",
              "remodeling_residential",
              "non_residential",
              "other_structures"
            ]
          },
          "construction_type_detail": {
            "type": "string",
            "description": "Description of the structures built. Required when construction_type is other_structures.",
            "example": "Bridges and tunnels"
          }
        },
        "required": [
          "single_trade"
        ]
      },
      "CorporationFormationRequest": {
        "type": "object",
        "properties": {
          "jurisdiction": {
            "type": "string",
            "description": "Jurisdiction (ISO 3166-2)",
            "example": "US-DE"
          },
          "legal_name": {
            "type": "string",
            "description": "Legal name of the corporation being formed",
            "example": "Acme Corp Inc.",
            "maxLength": 255
          },
          "entity_name": {
            "type": "string",
            "description": "Deprecated: use `legal_name`. Accepted in its place when `legal_name` is omitted.",
            "example": "Acme Corp Inc.",
            "maxLength": 255,
            "deprecated": true
          },
          "purpose": {
            "type": "string",
            "description": "Purpose clause for the articles of incorporation. Some states require user-supplied text; others (notably Delaware) use a statutory boilerplate clause that Palm fills in automatically. Distinct from the EIN principal_activity / principal_activity_detail fields, which describe the business's actual activity for IRS purposes.",
            "example": "Any lawful purpose"
          },
          "phone": {
            "type": "string",
            "description": "Business phone number",
            "example": "919-555-1234"
          },
          "email": {
            "type": "string",
            "description": "Business email address",
            "example": "info@acme.com"
          },
          "website": {
            "type": "string",
            "description": "Business website",
            "example": "https://acme.com"
          },
          "effective_date": {
            "type": "string",
            "description": "Delayed effective date (YYYY-MM-DD). If omitted, defaults to the date the formation request is received by Palm.",
            "example": "2026-05-01"
          },
          "contact": {
            "description": "Primary contact for questions about this filing. Used by Palm operations; never sent on the filing itself.",
            "allOf": [
              {
                "$ref": "#/components/schemas/FilingContact"
              }
            ]
          },
          "principal_address": {
            "description": "Principal office address",
            "allOf": [
              {
                "$ref": "#/components/schemas/FormationAddress"
              }
            ]
          },
          "mailing_address": {
            "description": "Mailing address if different from the principal office. Defaults to principal_address when omitted.",
            "allOf": [
              {
                "$ref": "#/components/schemas/FormationAddress"
              }
            ]
          },
          "incorporators": {
            "description": "Persons or entities executing the articles of incorporation (incorporators). At least one required.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FormationParty"
            }
          },
          "stock_structure": {
            "description": "Authorized capital stock structure",
            "allOf": [
              {
                "$ref": "#/components/schemas/StockStructure"
              }
            ]
          },
          "initial_directors": {
            "description": "Initial board of directors. Optional on most state formation forms but useful for downstream records. Corporate officers go in `initial_officers`, not here.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FormationDirector"
            }
          },
          "initial_officers": {
            "description": "Initial corporate officers (president, secretary, treasurer, etc.). Optional on most state formation forms; required by some (e.g. MA). The office is carried in each officer's typed `role`.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FormationOfficer"
            }
          },
          "registered_agent": {
            "description": "Registered agent. If provided, your own registered agent is used on the filing. If omitted, Palm provides registered agent service.",
            "allOf": [
              {
                "$ref": "#/components/schemas/FormationRegisteredAgent"
              }
            ]
          },
          "ein": {
            "description": "Bundle an EIN application with the formation. Palm submits to IRS after the formation succeeds.",
            "allOf": [
              {
                "$ref": "#/components/schemas/FormationEin"
              }
            ]
          },
          "note": {
            "type": "string",
            "description": "Context for Palm operations to read before submitting this filing, such as an existing name reservation. Returned on the filing.",
            "maxLength": 2000,
            "example": "The member holds name reservation 2026-123456 for this name."
          },
          "metadata": {
            "type": "object",
            "description": "Partner-defined metadata. Round-tripped on webhooks and the filing record."
          },
          "expedited_tier": {
            "type": "string",
            "description": "Expedited processing tier. Omit for standard processing. Valid values are jurisdiction-specific — discover them via GET /v1/filing/formation/requirement (`expedited_tiers`) and price them via GET /v1/filing/formation/fee (`expedited_tiers`). Rejected with 400 if the value is not offered by the jurisdiction.",
            "example": "same_day"
          }
        },
        "required": [
          "jurisdiction",
          "legal_name",
          "purpose",
          "email",
          "contact",
          "principal_address",
          "incorporators",
          "stock_structure"
        ],
        "additionalProperties": true
      },
      "DateRange": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "description": "Inclusive lower bound (ISO-8601 date or datetime)",
            "example": "2026-03-23"
          },
          "to": {
            "type": "string",
            "description": "Inclusive upper bound (ISO-8601 date or datetime)",
            "example": "2026-04-22"
          }
        }
      },
      "Document": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the document. Pass this to the document download endpoints.",
            "format": "uuid",
            "example": "906f369f-a73b-46a2-8184-ccc5c2848abd"
          },
          "object": {
            "type": "string",
            "description": "Object type identifier, always \"document\"",
            "enum": [
              "document"
            ],
            "example": "document"
          },
          "mode": {
            "type": "string",
            "enum": [
              "test",
              "live"
            ],
            "example": "live",
            "description": "Whether this resource is test or live; test and live data are isolated."
          },
          "resource_type": {
            "type": "string",
            "description": "Whether this document belongs to a business or to a person.",
            "enum": [
              "user",
              "business"
            ],
            "example": "business"
          },
          "resource_id": {
            "type": "string",
            "description": "ID of the business or person this document belongs to. Use it to route a document delivered by webhook without a follow-up lookup.",
            "format": "uuid",
            "example": "987e6543-e21a-45b6-c789-012345678901"
          },
          "related_items": {
            "description": "The work this document is part of, such as the case it was submitted in response to or the filing it was produced by. References only; empty when the document is not tied to any work.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DocumentRelatedItem"
            }
          },
          "types": {
            "type": "array",
            "description": "All document types that apply to this document.",
            "example": [
              "receipt",
              "filing_confirmation"
            ],
            "items": {
              "type": "string",
              "enum": [
                "passport",
                "drivers_license",
                "national_id",
                "government_id",
                "articles_of_incorporation",
                "certificate_of_formation",
                "operating_agreement",
                "bylaws",
                "ein_letter",
                "ein_letter_alternate",
                "business_license",
                "certificate_of_standing",
                "certificate_of_authority",
                "bank_statement",
                "tax_return",
                "filing_confirmation",
                "welcome_letter",
                "proof_of_address",
                "service_of_process",
                "notice",
                "mail",
                "ra_change_confirmation",
                "ra_resignation",
                "receipt",
                "other"
              ]
            }
          },
          "type": {
            "type": "string",
            "description": "Deprecated: use `types`. The first entry of `types`.",
            "enum": [
              "passport",
              "drivers_license",
              "national_id",
              "government_id",
              "articles_of_incorporation",
              "certificate_of_formation",
              "operating_agreement",
              "bylaws",
              "ein_letter",
              "ein_letter_alternate",
              "business_license",
              "certificate_of_standing",
              "certificate_of_authority",
              "bank_statement",
              "tax_return",
              "filing_confirmation",
              "welcome_letter",
              "proof_of_address",
              "service_of_process",
              "notice",
              "mail",
              "ra_change_confirmation",
              "ra_resignation",
              "receipt",
              "other"
            ],
            "example": "articles_of_incorporation",
            "deprecated": true
          },
          "filename": {
            "type": "string",
            "description": "Original filename of the uploaded document",
            "maxLength": 255,
            "example": "articles_of_incorporation.pdf"
          },
          "file_size": {
            "type": "number",
            "description": "Size of the file in bytes",
            "minimum": 0,
            "example": 524288
          },
          "content_type": {
            "type": "string",
            "description": "MIME type of the file",
            "example": "application/pdf"
          },
          "status": {
            "type": "string",
            "description": "Current status of the document",
            "enum": [
              "pending",
              "verified"
            ],
            "example": "verified"
          },
          "upload_date": {
            "type": "string",
            "description": "ISO 8601 timestamp when the document was uploaded",
            "format": "date-time",
            "example": "2025-10-24T10:30:00Z"
          },
          "metadata": {
            "type": "object",
            "description": "Custom metadata",
            "additionalProperties": {
              "type": "string"
            },
            "example": {
              "category": "incorporation"
            }
          },
          "created_at": {
            "type": "string",
            "description": "ISO 8601 timestamp when the document record was created",
            "format": "date-time",
            "example": "2025-10-24T10:30:00Z"
          },
          "updated_at": {
            "type": "string",
            "description": "ISO 8601 timestamp when the document record was last updated",
            "format": "date-time",
            "example": "2025-10-24T10:35:00Z"
          }
        },
        "required": [
          "id",
          "object",
          "mode",
          "resource_type",
          "resource_id",
          "related_items",
          "types",
          "type",
          "filename",
          "file_size",
          "content_type",
          "status",
          "upload_date",
          "metadata",
          "created_at",
          "updated_at"
        ]
      },
      "DocumentCreatedEvent": {
        "type": "object",
        "description": "Palm attached a new document to one of your resources, such as a filing artifact or forwarded registered-agent mail. `data.object` is the document; route by its `types`.",
        "required": [
          "id",
          "object",
          "type",
          "created_at",
          "mode",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for this event, prefixed `evt_`. Use it to de-duplicate deliveries.",
            "example": "evt_1768473000000_500b22b255d8"
          },
          "object": {
            "type": "string",
            "enum": [
              "event"
            ],
            "description": "Always `event`."
          },
          "type": {
            "type": "string",
            "enum": [
              "document.created"
            ],
            "description": "The event type."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event occurred.",
            "example": "2026-01-15T10:30:00.000Z"
          },
          "mode": {
            "type": "string",
            "enum": [
              "test",
              "live"
            ],
            "description": "Whether the event was produced in test or live mode. Matches the endpoint it is delivered to."
          },
          "data": {
            "type": "object",
            "required": [
              "object"
            ],
            "properties": {
              "object": {
                "$ref": "#/components/schemas/Document"
              }
            }
          }
        }
      },
      "DocumentMaxAge": {
        "type": "object",
        "properties": {
          "value": {
            "type": "number",
            "description": "Number of units.",
            "example": 6
          },
          "unit": {
            "type": "string",
            "description": "Unit of the window.",
            "enum": [
              "days",
              "months"
            ],
            "example": "months"
          }
        },
        "required": [
          "value",
          "unit"
        ]
      },
      "DocumentRelatedItem": {
        "type": "object",
        "properties": {
          "object": {
            "type": "string",
            "description": "Type of the related resource.",
            "enum": [
              "case",
              "filing"
            ]
          },
          "id": {
            "type": "string",
            "description": "ID of the related resource.",
            "format": "uuid",
            "example": "2a6f8d31-4e97-4b52-8c1d-9f3a7e5b2c84"
          }
        },
        "required": [
          "object",
          "id"
        ]
      },
      "DocumentRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the resource",
            "format": "uuid",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          "object": {
            "type": "string",
            "description": "Object type",
            "example": "document_request",
            "enum": [
              "document_request"
            ]
          },
          "mode": {
            "type": "string",
            "description": "Whether this resource was created with test or live credentials. Test and live data are fully isolated — a test resource never appears in live results and vice versa.",
            "enum": [
              "test",
              "live"
            ],
            "example": "live"
          },
          "created_at": {
            "type": "string",
            "description": "ISO 8601 timestamp of when the resource was created",
            "format": "date-time",
            "example": "2025-10-24T10:30:00Z"
          },
          "updated_at": {
            "type": "string",
            "description": "ISO 8601 timestamp of when the resource was last updated",
            "format": "date-time",
            "example": "2025-10-24T15:45:00Z"
          },
          "metadata": {
            "type": "object",
            "description": "Store up to 50 custom key-value pairs for application-specific data. Useful for storing references to external systems, feature flags, or other custom attributes.",
            "additionalProperties": {
              "type": "string"
            },
            "example": {
              "external_id": "user_123_in_my_system",
              "customer_tier": "premium",
              "signup_source": "mobile_app"
            }
          },
          "type": {
            "type": "string",
            "description": "Requested document type",
            "enum": [
              "certificate_of_standing"
            ]
          },
          "status": {
            "type": "string",
            "description": "Current status",
            "enum": [
              "queued",
              "processing",
              "completed",
              "canceled"
            ]
          },
          "business_id": {
            "type": "string",
            "description": "Business the request and its documents attach to.",
            "format": "uuid",
            "example": "987e6543-e21a-45b6-c789-012345678901"
          },
          "palm_id": {
            "type": "string",
            "description": "Palm ID of the registration the request resolved to.",
            "example": "2735-1926-5317"
          },
          "registration_jurisdiction": {
            "type": "string",
            "description": "Jurisdiction of the registration (ISO 3166-2).",
            "example": "US-DE"
          },
          "registration_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "The registration's number in that jurisdiction.",
            "example": "7086953"
          },
          "expedited_tier": {
            "type": [
              "string",
              "null"
            ],
            "description": "Expedited processing tier requested, or null for standard processing.",
            "example": "expedited"
          },
          "documents": {
            "description": "Documents delivered by this request, stored on the business record. Empty until delivery. A request the jurisdiction refused to fulfill delivers what it returned, such as its refusal or fee receipt. Check each document's `types` for `certificate_of_standing` to tell a delivered certificate from a refusal. Retrieve the certificate at `GET /document/:id`: its `metadata.certificate_name` is the jurisdiction's own name for it, such as `Certificate of Status`, and its `metadata.issued_date` is the date printed on it, each when known.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DocumentRequestDocument"
            }
          },
          "completed_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO 8601 timestamp of when the request completed, `null` until then.",
            "format": "date-time",
            "example": "2026-10-08T16:22:06Z"
          },
          "status_reason": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the request was canceled: `partner_requested` when you canceled it, `parent_filing_canceled` when the foreign qualification that ordered it was canceled, or the reason Palm wrote when Palm canceled it. `null` unless `canceled`.",
            "example": "partner_requested"
          },
          "canceled_by": {
            "type": [
              "string",
              "null"
            ],
            "description": "Who canceled the request: `partner` (you) or `palm`. `null` unless `canceled`.",
            "enum": [
              "partner",
              "palm",
              null
            ],
            "example": "partner"
          },
          "canceled_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO 8601 timestamp of when the request was canceled, `null` unless `canceled`.",
            "format": "date-time",
            "example": "2026-10-08T16:22:06Z"
          }
        },
        "required": [
          "id",
          "object",
          "mode",
          "created_at",
          "updated_at",
          "metadata",
          "type",
          "status",
          "business_id",
          "palm_id",
          "registration_jurisdiction",
          "documents"
        ]
      },
      "DocumentRequestCanceledEvent": {
        "type": "object",
        "description": "A document request was canceled before it completed, by you or by Palm. `data.object` is the document request; `status_reason`, `canceled_by` and `canceled_at` say why, by whom and when. A canceled request is not billed.",
        "required": [
          "id",
          "object",
          "type",
          "created_at",
          "mode",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for this event, prefixed `evt_`. Use it to de-duplicate deliveries.",
            "example": "evt_1768473000000_b2ce873656a7"
          },
          "object": {
            "type": "string",
            "enum": [
              "event"
            ],
            "description": "Always `event`."
          },
          "type": {
            "type": "string",
            "enum": [
              "document_request.canceled"
            ],
            "description": "The event type."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event occurred.",
            "example": "2026-01-15T10:30:00.000Z"
          },
          "mode": {
            "type": "string",
            "enum": [
              "test",
              "live"
            ],
            "description": "Whether the event was produced in test or live mode. Matches the endpoint it is delivered to."
          },
          "data": {
            "type": "object",
            "required": [
              "object"
            ],
            "properties": {
              "object": {
                "$ref": "#/components/schemas/DocumentRequest"
              }
            }
          }
        }
      },
      "DocumentRequestCompletedEvent": {
        "type": "object",
        "description": "A document request was fulfilled. `data.object` is the document request; `documents` lists the delivered files. When the jurisdiction refuses to issue the document, the request completes with what the jurisdiction returned, such as its refusal or fee receipt. Check each document's `types` for `certificate_of_standing` to tell a delivered certificate from a refusal.",
        "required": [
          "id",
          "object",
          "type",
          "created_at",
          "mode",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for this event, prefixed `evt_`. Use it to de-duplicate deliveries.",
            "example": "evt_1768473000000_ab97c9e12bed"
          },
          "object": {
            "type": "string",
            "enum": [
              "event"
            ],
            "description": "Always `event`."
          },
          "type": {
            "type": "string",
            "enum": [
              "document_request.completed"
            ],
            "description": "The event type."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event occurred.",
            "example": "2026-01-15T10:30:00.000Z"
          },
          "mode": {
            "type": "string",
            "enum": [
              "test",
              "live"
            ],
            "description": "Whether the event was produced in test or live mode. Matches the endpoint it is delivered to."
          },
          "data": {
            "type": "object",
            "required": [
              "object"
            ],
            "properties": {
              "object": {
                "$ref": "#/components/schemas/DocumentRequest"
              }
            }
          }
        }
      },
      "DocumentRequestCreateRequest": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Document type to request.",
            "enum": [
              "certificate_of_standing"
            ],
            "example": "certificate_of_standing"
          },
          "palm_id": {
            "type": "string",
            "description": "Palm ID of the registration. Provide exactly one of this, registration_jurisdiction with registration_number, or business_id.",
            "example": "4604-3477-1850"
          },
          "registration_jurisdiction": {
            "type": "string",
            "description": "Registration jurisdiction in ISO 3166-2 format (e.g., US-DE, US-CO, US-WY)",
            "example": "US-DE"
          },
          "registration_number": {
            "type": "string",
            "description": "The registration's number in that jurisdiction",
            "example": "7286832"
          },
          "business_id": {
            "type": "string",
            "description": "A business already in your portfolio. The request and the certificate it delivers are saved on it.",
            "format": "uuid",
            "example": "987e6543-e21a-45b6-c789-012345678901"
          },
          "expedited_tier": {
            "type": "string",
            "description": "Expedited processing tier. Omit for standard processing. GET /v1/document-request/fee lists the tiers a state offers (`expedited_tiers`); a tier the state does not offer returns 400.",
            "example": "expedited"
          },
          "metadata": {
            "type": "object",
            "description": "Up to 50 custom key-value pairs, echoed back on the resource. In test mode, the reserved key `_simulate` set to `refused` completes the request with a sample refusal and no certificate, as a request the state refuses completes; set to `canceled` it has Palm cancel the request with a sample reason. Without it, a test request completes with a sample certificate. Ignored in live mode.",
            "additionalProperties": {
              "type": "string"
            },
            "example": {
              "loan_application": "LA-2291"
            }
          }
        },
        "required": [
          "type"
        ]
      },
      "DocumentRequestDocument": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Document ID",
            "format": "uuid",
            "example": "906f369f-a73b-46a2-8184-ccc5c2848abd"
          },
          "object": {
            "type": "string",
            "description": "Object type",
            "enum": [
              "document"
            ],
            "example": "document"
          },
          "types": {
            "type": "array",
            "description": "All document types that apply to this document.",
            "example": [
              "certificate_of_standing"
            ],
            "items": {
              "type": "string",
              "enum": [
                "passport",
                "drivers_license",
                "national_id",
                "government_id",
                "articles_of_incorporation",
                "certificate_of_formation",
                "operating_agreement",
                "bylaws",
                "ein_letter",
                "ein_letter_alternate",
                "business_license",
                "certificate_of_standing",
                "certificate_of_authority",
                "bank_statement",
                "tax_return",
                "filing_confirmation",
                "welcome_letter",
                "proof_of_address",
                "service_of_process",
                "notice",
                "mail",
                "ra_change_confirmation",
                "ra_resignation",
                "receipt",
                "other"
              ]
            }
          },
          "uploaded_at": {
            "type": "string",
            "description": "ISO 8601 timestamp of when the document was stored.",
            "format": "date-time",
            "example": "2026-10-08T16:22:05Z"
          }
        },
        "required": [
          "id",
          "object",
          "types",
          "uploaded_at"
        ]
      },
      "DocumentRequestFeeEstimate": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Document type",
            "enum": [
              "certificate_of_standing"
            ]
          },
          "entity_type": {
            "type": "string",
            "description": "Entity type the estimate prices",
            "enum": [
              "llc",
              "corporation"
            ],
            "example": "llc"
          },
          "jurisdiction": {
            "type": "string",
            "description": "Jurisdiction (ISO 3166-2)",
            "example": "US-DE"
          },
          "fee": {
            "description": "Government fee breakdown by component, with a `total` that assumes card payment.",
            "allOf": [
              {
                "$ref": "#/components/schemas/FeeBreakdown"
              }
            ]
          },
          "expedited_tiers": {
            "description": "Priced menu of expedited tiers the jurisdiction offers. Present only when `expedited_tier` was not supplied and the state offers expedited processing.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExpeditedFeeOption"
            }
          }
        },
        "required": [
          "type",
          "entity_type",
          "jurisdiction",
          "fee"
        ]
      },
      "DocumentRequestProcessingEvent": {
        "type": "object",
        "description": "A document request is being fulfilled. `data.object` is the document request as it stands after the change.",
        "required": [
          "id",
          "object",
          "type",
          "created_at",
          "mode",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for this event, prefixed `evt_`. Use it to de-duplicate deliveries.",
            "example": "evt_1768473000000_5f04cff52cdb"
          },
          "object": {
            "type": "string",
            "enum": [
              "event"
            ],
            "description": "Always `event`."
          },
          "type": {
            "type": "string",
            "enum": [
              "document_request.processing"
            ],
            "description": "The event type."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event occurred.",
            "example": "2026-01-15T10:30:00.000Z"
          },
          "mode": {
            "type": "string",
            "enum": [
              "test",
              "live"
            ],
            "description": "Whether the event was produced in test or live mode. Matches the endpoint it is delivered to."
          },
          "data": {
            "type": "object",
            "required": [
              "object"
            ],
            "properties": {
              "object": {
                "$ref": "#/components/schemas/DocumentRequest"
              }
            }
          }
        }
      },
      "DocumentRequestRelatedItem": {
        "type": "object",
        "properties": {
          "object": {
            "type": "string",
            "description": "Object type",
            "enum": [
              "document_request"
            ]
          },
          "id": {
            "type": "string",
            "description": "Document request ID",
            "format": "uuid"
          },
          "type": {
            "type": "string",
            "description": "Requested document type",
            "enum": [
              "certificate_of_standing"
            ]
          },
          "status": {
            "type": "string",
            "description": "Current document request status",
            "enum": [
              "queued",
              "processing",
              "completed",
              "canceled"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "type",
          "status"
        ]
      },
      "DocumentUpdatedEvent": {
        "type": "object",
        "description": "A document already on one of your resources changed: Palm identified new `types` for it, or a document you uploaded is now part of a case you can see. `data.object` is the document; `related_items` names the case and filing.",
        "required": [
          "id",
          "object",
          "type",
          "created_at",
          "mode",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for this event, prefixed `evt_`. Use it to de-duplicate deliveries.",
            "example": "evt_1768473000000_053436bea148"
          },
          "object": {
            "type": "string",
            "enum": [
              "event"
            ],
            "description": "Always `event`."
          },
          "type": {
            "type": "string",
            "enum": [
              "document.updated"
            ],
            "description": "The event type."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event occurred.",
            "example": "2026-01-15T10:30:00.000Z"
          },
          "mode": {
            "type": "string",
            "enum": [
              "test",
              "live"
            ],
            "description": "Whether the event was produced in test or live mode. Matches the endpoint it is delivered to."
          },
          "data": {
            "type": "object",
            "required": [
              "object"
            ],
            "properties": {
              "object": {
                "$ref": "#/components/schemas/Document"
              }
            }
          }
        }
      },
      "DocumentUploadRequest": {
        "type": "object",
        "properties": {
          "file": {
            "type": "string",
            "description": "The document file to upload.",
            "format": "binary"
          },
          "types": {
            "type": "array",
            "description": "All document types that apply to the file, sent as repeated `types` form fields. The first entry is the primary type. Required unless `type` is sent.",
            "example": [
              "receipt",
              "filing_confirmation"
            ],
            "items": {
              "type": "string",
              "enum": [
                "passport",
                "drivers_license",
                "national_id",
                "government_id",
                "articles_of_incorporation",
                "certificate_of_formation",
                "operating_agreement",
                "bylaws",
                "ein_letter",
                "ein_letter_alternate",
                "business_license",
                "certificate_of_standing",
                "certificate_of_authority",
                "bank_statement",
                "tax_return",
                "filing_confirmation",
                "welcome_letter",
                "proof_of_address",
                "service_of_process",
                "notice",
                "mail",
                "ra_change_confirmation",
                "ra_resignation",
                "receipt",
                "other"
              ]
            }
          },
          "type": {
            "type": "string",
            "description": "Deprecated: use `types`. A single document type, equivalent to `types` with one entry. Not accepted together with `types`.",
            "enum": [
              "passport",
              "drivers_license",
              "national_id",
              "government_id",
              "articles_of_incorporation",
              "certificate_of_formation",
              "operating_agreement",
              "bylaws",
              "ein_letter",
              "ein_letter_alternate",
              "business_license",
              "certificate_of_standing",
              "certificate_of_authority",
              "bank_statement",
              "tax_return",
              "filing_confirmation",
              "welcome_letter",
              "proof_of_address",
              "service_of_process",
              "notice",
              "mail",
              "ra_change_confirmation",
              "ra_resignation",
              "receipt",
              "other"
            ],
            "example": "articles_of_incorporation",
            "deprecated": true
          },
          "metadata": {
            "type": "object",
            "description": "Additional metadata, sent either as a JSON object string or as repeated `metadata[key]` form fields.",
            "additionalProperties": {
              "type": "string"
            },
            "example": {
              "verification_id": "123e4567-e89b-12d3-a456-426614174000",
              "category": "incorporation",
              "notes": "Primary incorporation document"
            }
          }
        },
        "required": [
          "file"
        ]
      },
      "DomesticBusinessReference": {
        "type": "object",
        "properties": {
          "business_id": {
            "type": "string",
            "description": "ID of the domestic business in your account",
            "format": "uuid",
            "example": "987e6543-e21a-45b6-c789-012345678901"
          },
          "palm_id": {
            "type": "string",
            "description": "Palm ID of the domestic business",
            "example": "1234-5678-9012"
          },
          "registration_number": {
            "type": "string",
            "description": "Registration number the formation state assigned. Matched against the business in your account whose registration jurisdiction is this business's formation jurisdiction; case, spaces and leading zeros are ignored.",
            "example": "6123456"
          }
        }
      },
      "EinApplicationRequest": {
        "type": "object",
        "properties": {
          "business_id": {
            "type": "string",
            "description": "Business ID of a business you previously [vaulted](/api-reference/v1/business/add-a-business) with Palm.",
            "format": "uuid",
            "example": "987e6543-e21a-45b6-c789-012345678901"
          },
          "responsible_party": {
            "description": "Responsible party for the entity",
            "allOf": [
              {
                "$ref": "#/components/schemas/EinResponsibleParty"
              }
            ]
          },
          "reason": {
            "type": "string",
            "description": "Reason for applying",
            "enum": [
              "started_new_business",
              "hired_employees",
              "banking_purposes",
              "changed_organization_type",
              "purchased_business",
              "created_trust",
              "created_pension_plan",
              "withholding_compliance",
              "other"
            ],
            "example": "started_new_business"
          },
          "reason_detail": {
            "type": "string",
            "description": "Details for the reason. Required if reason is \"other\".",
            "example": "Compliance with state reporting requirements"
          },
          "fiscal_year_end_month": {
            "type": "integer",
            "minimum": 1,
            "maximum": 12,
            "description": "Closing month of accounting year. 1-12, most entities use 12 for calendar year.",
            "example": 12
          },
          "expected_employee_count": {
            "description": "Highest number of employees expected in next 12 months by category",
            "allOf": [
              {
                "$ref": "#/components/schemas/EinExpectedEmployeeCount"
              }
            ]
          },
          "wage_date": {
            "type": "string",
            "format": "date",
            "description": "Date wages will first be paid. Required if total expected employees > 0.",
            "example": "2026-04-01"
          },
          "principal_activity": {
            "description": "Principal activity category, matching the IRS online EIN flow. Pick the one that best describes the business:\n- `accommodations`: hotels, motels, casino hotels\n- `construction`: contractors and construction trades\n- `finance`: banks, brokers, lenders, investment and advisory firms\n- `food_service`: restaurants, bars, catering, coffee/ice-cream shops\n- `health_care`: physicians, dentists, hospitals, clinics, mental-health practitioners\n- `insurance`: insurance carriers, agents, and brokers\n- `manufacturing`: producing goods from raw materials\n- `real_estate`: renting, building, selling, or managing property\n- `rental_and_leasing`: renting or leasing real estate or goods\n- `retail`: selling goods to consumers (online, storefront, direct, auction)\n- `social_assistance`: nursing homes, shelters, youth services\n- `transportation`: moving cargo or passengers\n- `warehousing`: storage and warehousing\n- `wholesale`: selling goods to businesses for resale\n- `other`: anything not covered above (consulting, repair, services, etc.)\n\nThe object is discriminated by `category`; each category carries its own follow-up fields.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/AccommodationsActivity"
              },
              {
                "$ref": "#/components/schemas/ConstructionActivity"
              },
              {
                "$ref": "#/components/schemas/FinanceActivity"
              },
              {
                "$ref": "#/components/schemas/FoodServiceActivity"
              },
              {
                "$ref": "#/components/schemas/HealthCareActivity"
              },
              {
                "$ref": "#/components/schemas/InsuranceActivity"
              },
              {
                "$ref": "#/components/schemas/ManufacturingActivity"
              },
              {
                "$ref": "#/components/schemas/RealEstateActivity"
              },
              {
                "$ref": "#/components/schemas/RentalAndLeasingActivity"
              },
              {
                "$ref": "#/components/schemas/RetailActivity"
              },
              {
                "$ref": "#/components/schemas/SocialAssistanceActivity"
              },
              {
                "$ref": "#/components/schemas/TransportationActivity"
              },
              {
                "$ref": "#/components/schemas/WarehousingActivity"
              },
              {
                "$ref": "#/components/schemas/WholesaleActivity"
              },
              {
                "$ref": "#/components/schemas/OtherActivity"
              }
            ],
            "discriminator": {
              "propertyName": "category",
              "mapping": {
                "accommodations": "#/components/schemas/AccommodationsActivity",
                "construction": "#/components/schemas/ConstructionActivity",
                "finance": "#/components/schemas/FinanceActivity",
                "food_service": "#/components/schemas/FoodServiceActivity",
                "health_care": "#/components/schemas/HealthCareActivity",
                "insurance": "#/components/schemas/InsuranceActivity",
                "manufacturing": "#/components/schemas/ManufacturingActivity",
                "real_estate": "#/components/schemas/RealEstateActivity",
                "rental_and_leasing": "#/components/schemas/RentalAndLeasingActivity",
                "retail": "#/components/schemas/RetailActivity",
                "social_assistance": "#/components/schemas/SocialAssistanceActivity",
                "transportation": "#/components/schemas/TransportationActivity",
                "warehousing": "#/components/schemas/WarehousingActivity",
                "wholesale": "#/components/schemas/WholesaleActivity",
                "other": "#/components/schemas/OtherActivity"
              }
            }
          },
          "principal_activity_detail": {
            "type": "string",
            "description": "Free-text description of the principal line of merchandise sold, products produced, or services provided (IRS Form SS-4, line 17).",
            "example": "Software consulting services"
          },
          "has_previous_ein": {
            "type": "boolean",
            "description": "Has the entity previously applied for and received an EIN?",
            "example": false
          },
          "previous_ein": {
            "type": "string",
            "description": "Previous EIN if applicable. Required if has_previous_ein is true.",
            "example": "12-3456789"
          },
          "trade_name": {
            "type": "string",
            "description": "Trade name / DBA if different from legal name",
            "example": "Acme Trading Co"
          },
          "form_944_election": {
            "type": "boolean",
            "description": "Elect to file Form 944 annually instead of Form 941 quarterly. Applies if expected annual employment tax liability is $1,000 or less.",
            "example": false
          },
          "owns_highway_vehicle": {
            "type": "boolean",
            "description": "Whether the business owns a highway motor vehicle with a taxable gross weight of 55,000 pounds or more.",
            "example": false
          },
          "involves_gambling": {
            "type": "boolean",
            "description": "Whether the business involves gambling or wagering.",
            "example": false
          },
          "files_form_720": {
            "type": "boolean",
            "description": "Whether the business needs to file Form 720 (Quarterly Federal Excise Tax Return).",
            "example": false
          },
          "involves_alcohol_tobacco_firearms": {
            "type": "boolean",
            "description": "Whether the business sells or manufactures alcohol, tobacco, or firearms.",
            "example": false
          },
          "phone": {
            "type": "string",
            "description": "Business phone number",
            "example": "919-555-1234"
          },
          "mailing_address": {
            "description": "Mailing address, if different from the business address",
            "allOf": [
              {
                "$ref": "#/components/schemas/FormationAddress"
              }
            ]
          },
          "llc_member_count": {
            "type": "integer",
            "minimum": 1,
            "description": "Number of members in the LLC — the IRS EIN application asks this for every LLC (including a professional LLC), so it is required when the referenced business is an LLC. When it is 2 and the business is physically located in a community property state (AZ, CA, ID, LA, NM, NV, TX, WA, WI), members_are_married_couple is required. Not asked for corporations: ignored, with a warning on the dry-run, when the business is a corporation.",
            "example": 1
          },
          "members_are_married_couple": {
            "type": "boolean",
            "description": "Whether the two LLC members are married to each other. Required when llc_member_count is 2 and the business is physically located in a community property state (AZ, CA, ID, LA, NM, NV, TX, WA, WI), where the IRS EIN application asks whether the members are husband and wife.",
            "example": false
          },
          "llc_classification": {
            "type": "string",
            "description": "Federal tax classification election for a married-couple LLC in a community property state (Rev. Proc. 2002-69): treat the LLC as single-member (disregarded entity) or multi-member (partnership). Required if members_are_married_couple is true.",
            "enum": [
              "single_member",
              "multi_member"
            ],
            "example": "single_member"
          },
          "corporation_subtype": {
            "type": "string",
            "description": "Type of corporation as the IRS EIN application asks it on the corporation path: corporation (a C corporation), s_corporation, personal_service_corporation, reit, ric, or settlement_fund. Applies to corporations (including a professional corporation) only; ignored, with a warning on the dry-run, when the business is an LLC. Optional — when omitted the application is filed as a plain corporation.",
            "enum": [
              "corporation",
              "s_corporation",
              "personal_service_corporation",
              "reit",
              "ric",
              "settlement_fund"
            ],
            "example": "corporation"
          },
          "note": {
            "type": "string",
            "description": "Context for Palm operations to read before submitting this filing, such as an existing name reservation. Returned on the filing.",
            "maxLength": 2000,
            "example": "The member holds name reservation 2026-123456 for this name."
          },
          "metadata": {
            "type": "object",
            "description": "Partner-defined metadata",
            "example": {
              "internal_ref": "REF-123"
            }
          }
        },
        "required": [
          "business_id",
          "responsible_party",
          "reason",
          "fiscal_year_end_month",
          "expected_employee_count",
          "principal_activity",
          "principal_activity_detail",
          "has_previous_ein"
        ]
      },
      "EinExpectedEmployeeCount": {
        "type": "object",
        "properties": {
          "agricultural": {
            "type": "integer",
            "minimum": 0,
            "description": "Expected agricultural employees in next 12 months",
            "example": 0
          },
          "other": {
            "type": "integer",
            "minimum": 0,
            "description": "Expected other (non-agricultural) employees in next 12 months",
            "example": 5
          }
        },
        "required": [
          "agricultural",
          "other"
        ]
      },
      "EinFilingResult": {
        "type": "object",
        "properties": {
          "ein_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Issued Employer Identification Number.",
            "example": "12-3456789"
          },
          "legal_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Legal name the EIN was issued to.",
            "example": "Acme Holdings LLC"
          },
          "entity_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Deprecated: use `legal_name`. The same value.",
            "example": "Acme Holdings LLC",
            "deprecated": true
          }
        },
        "required": [
          "ein_number",
          "legal_name",
          "entity_name"
        ]
      },
      "EinResponsibleParty": {
        "type": "object",
        "properties": {
          "user_id": {
            "type": "string",
            "description": "Existing user ID to reference as the responsible party. If provided, first_name, last_name, and ssn are not required in the request but must be present in the user vault.",
            "format": "uuid",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          "first_name": {
            "type": "string",
            "description": "First name. Required if user_id is not provided.",
            "example": "Jane"
          },
          "middle_name": {
            "type": "string",
            "description": "Middle name or initial",
            "example": "A"
          },
          "last_name": {
            "type": "string",
            "description": "Last name. Required if user_id is not provided.",
            "example": "Doe"
          },
          "ssn": {
            "type": "string",
            "description": "SSN or ITIN. Required if user_id is not provided.",
            "example": "123-45-6789"
          }
        }
      },
      "ExpeditedFeeOption": {
        "type": "object",
        "properties": {
          "tier": {
            "type": "string",
            "description": "Expedited tier identifier, accepted as `expedited_tier` on the formation create endpoints.",
            "example": "same_day"
          },
          "fee": {
            "description": "Added expedited surcharge for this tier.",
            "allOf": [
              {
                "$ref": "#/components/schemas/FeeAmount"
              }
            ]
          }
        },
        "required": [
          "tier",
          "fee"
        ]
      },
      "FeeAmount": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "number",
            "description": "Fee amount in whole units",
            "example": 125
          },
          "currency": {
            "type": "string",
            "description": "Currency code",
            "example": "USD"
          }
        },
        "required": [
          "amount",
          "currency"
        ]
      },
      "FeeBreakdown": {
        "type": "object",
        "properties": {
          "base": {
            "description": "Base filing fee total.",
            "allOf": [
              {
                "$ref": "#/components/schemas/FeeAmount"
              }
            ]
          },
          "dynamic": {
            "description": "Variable fee total (e.g. franchise tax, share-based or expedited surcharges).",
            "allOf": [
              {
                "$ref": "#/components/schemas/FeeAmount"
              }
            ]
          },
          "late": {
            "description": "Late fee total.",
            "allOf": [
              {
                "$ref": "#/components/schemas/FeeAmount"
              }
            ]
          },
          "credit_card": {
            "description": "Credit-card payment surcharge total.",
            "allOf": [
              {
                "$ref": "#/components/schemas/FeeAmount"
              }
            ]
          },
          "ach": {
            "description": "ACH payment surcharge total.",
            "allOf": [
              {
                "$ref": "#/components/schemas/FeeAmount"
              }
            ]
          },
          "total": {
            "description": "Grand total across the applicable fee components — a convenience so you do not have to sum the breakdown yourself. Assumes a credit-card payment method, so it is `base + dynamic + late + credit_card` (the mutually-exclusive `ach` surcharge is excluded). `items` and any `expedited_tiers` menu are not included; a requested `expedited_tier` surcharge is already in `dynamic`. Always an estimate.",
            "allOf": [
              {
                "$ref": "#/components/schemas/FeeAmount"
              }
            ]
          },
          "items": {
            "description": "Itemized breakdown — one entry per evaluated rule. Component totals above are sums across these.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FeeLine"
            }
          }
        },
        "required": [
          "total"
        ]
      },
      "FeeLine": {
        "type": "object",
        "properties": {
          "component_type": {
            "type": "string",
            "description": "Component type this rule rolls up under",
            "enum": [
              "base",
              "dynamic",
              "late",
              "credit_card",
              "ach"
            ],
            "example": "dynamic"
          },
          "name": {
            "type": "string",
            "description": "Stable identifier within the component (e.g., \"filing\", \"franchise_tax\", \"expedited\"). \"default\" when there is exactly one rule for this component.",
            "example": "franchise_tax"
          },
          "amount": {
            "type": "number",
            "description": "Fee amount in whole units",
            "example": 500
          },
          "currency": {
            "type": "string",
            "description": "Currency code",
            "example": "USD"
          }
        },
        "required": [
          "component_type",
          "name",
          "amount",
          "currency"
        ]
      },
      "FeeWarning": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "What the warning is about. `late_fee_not_published`: the filing office may charge a late fee for business done before registering, but publishes no amount or method; Palm asks you to approve it before paying.",
            "example": "late_fee_not_published"
          },
          "message": {
            "type": "string",
            "description": "The warning, worded for the business owner.",
            "example": "If your business operated in Ohio before registering, the Ohio Secretary of State may charge a fee for it. Ohio has not published the amount. It may charge this when the registration is filed."
          }
        },
        "required": [
          "code",
          "message"
        ]
      },
      "FieldSpec": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Stable machine-readable identifier for the requested field. Used as the key in the response payload. Matches the filing request field name when one corresponds.",
            "example": "legal_name"
          },
          "type": {
            "type": "string",
            "description": "Type of the requested value. One of: string, number, boolean, date, document, object, list. For `document`, respond with the id of a document already uploaded to the business. For `object` and `list`, respond with the JSON value in the same shape the field has in the filing request, for example an address object for `principal_address`.",
            "example": "string"
          },
          "description": {
            "type": "string",
            "description": "Human-readable prompt explaining what is being asked.",
            "example": "Corrected legal name (state rejected \"Acme LLC\" — name already taken)."
          },
          "required": {
            "type": "boolean",
            "description": "Whether this field must be present in the response. Defaults to true.",
            "example": true
          },
          "example": {
            "description": "Example value to help you understand the expected format.",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ],
            "example": "Acme Holdings LLC"
          },
          "document_types": {
            "type": "array",
            "description": "For `type: document`, the document types that satisfy this field. Any type is accepted when omitted. Not used by other field types.",
            "example": [
              "other"
            ],
            "items": {
              "type": "string",
              "enum": [
                "passport",
                "drivers_license",
                "national_id",
                "government_id",
                "articles_of_incorporation",
                "certificate_of_formation",
                "operating_agreement",
                "bylaws",
                "ein_letter",
                "ein_letter_alternate",
                "business_license",
                "certificate_of_standing",
                "certificate_of_authority",
                "bank_statement",
                "tax_return",
                "filing_confirmation",
                "welcome_letter",
                "proof_of_address",
                "service_of_process",
                "notice",
                "mail",
                "ra_change_confirmation",
                "ra_resignation",
                "receipt",
                "other"
              ]
            }
          }
        },
        "required": [
          "name",
          "type",
          "description"
        ]
      },
      "Filing": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the resource",
            "format": "uuid",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          "object": {
            "type": "string",
            "description": "Object type",
            "example": "filing",
            "enum": [
              "filing"
            ]
          },
          "mode": {
            "type": "string",
            "description": "Whether this resource was created with test or live credentials. Test and live data are fully isolated — a test resource never appears in live results and vice versa.",
            "enum": [
              "test",
              "live"
            ],
            "example": "live"
          },
          "created_at": {
            "type": "string",
            "description": "ISO 8601 timestamp of when the resource was created",
            "format": "date-time",
            "example": "2025-10-24T10:30:00Z"
          },
          "updated_at": {
            "type": "string",
            "description": "ISO 8601 timestamp of when the resource was last updated",
            "format": "date-time",
            "example": "2025-10-24T15:45:00Z"
          },
          "metadata": {
            "type": "object",
            "description": "Store up to 50 custom key-value pairs for application-specific data. Useful for storing references to external systems, feature flags, or other custom attributes.",
            "additionalProperties": {
              "type": "string"
            },
            "example": {
              "external_id": "user_123_in_my_system",
              "customer_tier": "premium",
              "signup_source": "mobile_app"
            }
          },
          "type": {
            "type": "string",
            "description": "Filing type",
            "enum": [
              "formation",
              "ein",
              "amendment",
              "scorp_election",
              "foreign_qualification"
            ]
          },
          "status": {
            "type": "string",
            "description": "Current status",
            "enum": [
              "queued",
              "ready_to_file",
              "processing",
              "filed",
              "completed",
              "canceled"
            ]
          },
          "entity_type": {
            "type": "string",
            "description": "Entity type. Set on formations and foreign qualifications (derived from the referenced business).",
            "enum": [
              "llc",
              "professional_llc",
              "corporation",
              "professional_corporation"
            ]
          },
          "jurisdiction": {
            "type": "string",
            "description": "Jurisdiction the filing is made in (ISO 3166-2). For a foreign qualification this is the target state.",
            "example": "US-NC"
          },
          "legal_name": {
            "type": "string",
            "description": "Business name the filing is being made under, as sent on the request. For a foreign qualification, the name being registered in the target state: the legal name of the business, or the alternate name the state accepted once the filing completes. Changes when a `legal_name_change` case resolves.",
            "example": "Acme Holdings LLC"
          },
          "name": {
            "type": "string",
            "description": "Deprecated: use `legal_name`. The same value.",
            "example": "Acme Holdings LLC",
            "deprecated": true
          },
          "expedited_tier": {
            "type": [
              "string",
              "null"
            ],
            "description": "Expedited processing tier requested for this filing, or null for standard processing. Only set on filings submitted with an `expedited_tier`.",
            "example": "same_day"
          },
          "note": {
            "type": [
              "string",
              "null"
            ],
            "description": "Context the partner sent for Palm operations when creating this filing, or null when none was sent.",
            "example": "The member holds name reservation 2026-123456 for this name."
          },
          "business_id": {
            "type": "string",
            "description": "Linked business ID. For a foreign qualification this is the new business record created for the target-state registration, whose `formation_jurisdiction` and `registration_jurisdiction` say where the entity was formed and where it is registered.",
            "format": "uuid"
          },
          "result": {
            "description": "Filing result — populated on completion, `null` until then. Shape depends on the filing `type`: formation → `{ registration_number, formation_date }`; foreign qualification → `{ registration_number, registration_date, palm_id }`; EIN → `{ ein_number, legal_name }`. Other filing types have no result.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/FormationFilingResult"
              },
              {
                "$ref": "#/components/schemas/ForeignQualificationFilingResult"
              },
              {
                "$ref": "#/components/schemas/EinFilingResult"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent_filing_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Parent filing ID (for bundled EIN/RA)",
            "format": "uuid"
          },
          "related_items": {
            "type": "array",
            "description": "Bundle of obligations tracked under this filing, each with its own object type and status: filings (state registration, EIN), the registered agent (`id` is the business, resolvable at `GET /business/:id/registered-agent`), and, on a foreign qualification, the document request for the home-state certificate of good standing Palm ordered (`id` resolvable at `GET /document-request/:id`).",
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/FilingRelatedItem"
                },
                {
                  "$ref": "#/components/schemas/RegisteredAgentRelatedItem"
                },
                {
                  "$ref": "#/components/schemas/DocumentRequestRelatedItem"
                }
              ]
            }
          },
          "documents": {
            "description": "Documents associated with this filing",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FilingDocument"
            }
          },
          "fee": {
            "description": "Fee components keyed by type (base, dynamic, late, credit_card, ach), plus a convenience `total` grand total (assumes credit-card payment). Only present components are included. When `items` is set, it lists each evaluated rule for itemized rendering — the component-keyed values are the sums across those items.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/FeeBreakdown"
              },
              {
                "type": "null"
              }
            ]
          },
          "status_reason": {
            "type": "string",
            "description": "Reason the filing was canceled (partner request, parent off-boarded, duplicate, etc.). Only present when status is `canceled`."
          },
          "canceled_by": {
            "type": "string",
            "description": "Role that initiated the cancellation. One of: `partner`, `palm`. Only present when status is `canceled`."
          },
          "canceled_at": {
            "type": "string",
            "description": "Timestamp the filing was canceled",
            "format": "date-time"
          },
          "cases": {
            "description": "Cases attached to this filing. One entry per partner-visible case, in chronological order. Each case carries a typed `request` payload describing what Palm needs and, once submitted, a typed `response`. Partners respond via `POST /v1/case/:case_id/response`. An entry with `status=needs_response` is an outstanding ask — its presence is the signal that the filing needs partner action.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Case"
            }
          }
        },
        "required": [
          "id",
          "object",
          "mode",
          "created_at",
          "updated_at",
          "metadata",
          "type",
          "status"
        ]
      },
      "FilingCanceledEvent": {
        "type": "object",
        "description": "A filing was canceled before completion. `data.object` is the filing as it stands after the change. `status_reason` and `canceled_by` say why and by whom.",
        "required": [
          "id",
          "object",
          "type",
          "created_at",
          "mode",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for this event, prefixed `evt_`. Use it to de-duplicate deliveries.",
            "example": "evt_1768473000000_5c3d3e1efc74"
          },
          "object": {
            "type": "string",
            "enum": [
              "event"
            ],
            "description": "Always `event`."
          },
          "type": {
            "type": "string",
            "enum": [
              "filing.canceled"
            ],
            "description": "The event type."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event occurred.",
            "example": "2026-01-15T10:30:00.000Z"
          },
          "mode": {
            "type": "string",
            "enum": [
              "test",
              "live"
            ],
            "description": "Whether the event was produced in test or live mode. Matches the endpoint it is delivered to."
          },
          "data": {
            "type": "object",
            "required": [
              "object"
            ],
            "properties": {
              "object": {
                "$ref": "#/components/schemas/Filing"
              }
            }
          }
        }
      },
      "FilingCompletedEvent": {
        "type": "object",
        "description": "A filing was accepted by the authority. `data.object` is the filing as it stands after the change. `result` carries the outcome and `documents` the artifacts.",
        "required": [
          "id",
          "object",
          "type",
          "created_at",
          "mode",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for this event, prefixed `evt_`. Use it to de-duplicate deliveries.",
            "example": "evt_1768473000000_375b5e2a3f1b"
          },
          "object": {
            "type": "string",
            "enum": [
              "event"
            ],
            "description": "Always `event`."
          },
          "type": {
            "type": "string",
            "enum": [
              "filing.completed"
            ],
            "description": "The event type."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event occurred.",
            "example": "2026-01-15T10:30:00.000Z"
          },
          "mode": {
            "type": "string",
            "enum": [
              "test",
              "live"
            ],
            "description": "Whether the event was produced in test or live mode. Matches the endpoint it is delivered to."
          },
          "data": {
            "type": "object",
            "required": [
              "object"
            ],
            "properties": {
              "object": {
                "$ref": "#/components/schemas/Filing"
              }
            }
          }
        }
      },
      "FilingContact": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Contact name",
            "example": "Jane Doe"
          },
          "email": {
            "type": "string",
            "description": "Contact email",
            "example": "jane@acme.com"
          },
          "phone": {
            "type": "string",
            "description": "Contact phone number",
            "example": "919-555-1234"
          }
        },
        "required": [
          "name",
          "email"
        ]
      },
      "FilingDocument": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Document ID",
            "format": "uuid"
          },
          "object": {
            "type": "string",
            "description": "Object type",
            "enum": [
              "document"
            ]
          },
          "types": {
            "type": "array",
            "description": "All document types that apply to this document.",
            "example": [
              "receipt",
              "filing_confirmation"
            ],
            "items": {
              "type": "string",
              "enum": [
                "passport",
                "drivers_license",
                "national_id",
                "government_id",
                "articles_of_incorporation",
                "certificate_of_formation",
                "operating_agreement",
                "bylaws",
                "ein_letter",
                "ein_letter_alternate",
                "business_license",
                "certificate_of_standing",
                "certificate_of_authority",
                "bank_statement",
                "tax_return",
                "filing_confirmation",
                "welcome_letter",
                "proof_of_address",
                "service_of_process",
                "notice",
                "mail",
                "ra_change_confirmation",
                "ra_resignation",
                "receipt",
                "other"
              ]
            }
          },
          "type": {
            "type": "string",
            "description": "Deprecated: use `types`. The first entry of `types`.",
            "example": "articles_of_organization",
            "deprecated": true
          },
          "uploaded_at": {
            "type": "string",
            "description": "Upload timestamp",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "object",
          "types",
          "type",
          "uploaded_at"
        ]
      },
      "FilingFeeEstimateResult": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Filing type",
            "example": "formation"
          },
          "entity_type": {
            "type": "string",
            "description": "Entity type",
            "example": "llc"
          },
          "jurisdiction": {
            "type": "string",
            "description": "Jurisdiction (ISO 3166-2)",
            "example": "US-NC"
          },
          "fee": {
            "description": "Fee breakdown by component, with an optional itemized list.",
            "allOf": [
              {
                "$ref": "#/components/schemas/FeeBreakdown"
              }
            ]
          },
          "expedited_tiers": {
            "description": "Priced menu of expedited tiers the jurisdiction offers. Present only when `expedited_tier` was not supplied and the state offers expedited processing.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExpeditedFeeOption"
            }
          },
          "warnings": {
            "description": "Charges the state may add that the estimate cannot price, such as a late fee the filing office does not publish. Apart from `fee.items` and not in `fee.total`. Absent when there are none.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FeeWarning"
            }
          }
        },
        "required": [
          "type",
          "jurisdiction",
          "fee"
        ]
      },
      "FilingFiledEvent": {
        "type": "object",
        "description": "A filing was submitted to the authority and is awaiting its decision. `data.object` is the filing as it stands after the change.",
        "required": [
          "id",
          "object",
          "type",
          "created_at",
          "mode",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for this event, prefixed `evt_`. Use it to de-duplicate deliveries.",
            "example": "evt_1768473000000_2a97c089b8b5"
          },
          "object": {
            "type": "string",
            "enum": [
              "event"
            ],
            "description": "Always `event`."
          },
          "type": {
            "type": "string",
            "enum": [
              "filing.filed"
            ],
            "description": "The event type."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event occurred.",
            "example": "2026-01-15T10:30:00.000Z"
          },
          "mode": {
            "type": "string",
            "enum": [
              "test",
              "live"
            ],
            "description": "Whether the event was produced in test or live mode. Matches the endpoint it is delivered to."
          },
          "data": {
            "type": "object",
            "required": [
              "object"
            ],
            "properties": {
              "object": {
                "$ref": "#/components/schemas/Filing"
              }
            }
          }
        }
      },
      "FilingPrerequisite": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Document the state needs.",
            "enum": [
              "certificate_of_standing",
              "certified_copy",
              "registered_agent_consent",
              "name_consent",
              "fictitious_name_resolution",
              "additional_provisions",
              "other"
            ],
            "example": "certificate_of_standing"
          },
          "description": {
            "type": "string",
            "description": "What the state asks for, in its own words.",
            "example": "A certificate of existence from the home jurisdiction, dated within six months of filing."
          },
          "required": {
            "type": "boolean",
            "description": "Whether the state always needs it.",
            "example": true
          },
          "condition": {
            "type": [
              "string",
              "null"
            ],
            "description": "When the document is only needed in some situations, the situation in plain language. Null when it is always needed.",
            "example": null
          },
          "issuer": {
            "type": [
              "string",
              "null"
            ],
            "description": "Who issues the document. Null when the filer writes it.",
            "example": "Secretary of State of the home jurisdiction"
          },
          "max_age": {
            "description": "Maximum age of the document at submission. Null when the state sets no limit.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/DocumentMaxAge"
              },
              {
                "type": "null"
              }
            ]
          },
          "accepted_formats": {
            "description": "File formats the state accepts, as lowercase extensions. Empty when the state does not say.",
            "example": [
              "pdf"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "provided_by": {
            "type": "string",
            "description": "Who supplies the document. Palm orders the home-state certificate, and certified copies of the home-state documents, as part of the filing.",
            "enum": [
              "palm",
              "partner"
            ],
            "example": "palm"
          }
        },
        "required": [
          "type",
          "description",
          "required",
          "condition",
          "issuer",
          "max_age",
          "accepted_formats",
          "provided_by"
        ]
      },
      "FilingProcessingEvent": {
        "type": "object",
        "description": "A filing is being prepared or is waiting on the authority. `data.object` is the filing as it stands after the change.",
        "required": [
          "id",
          "object",
          "type",
          "created_at",
          "mode",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for this event, prefixed `evt_`. Use it to de-duplicate deliveries.",
            "example": "evt_1768473000000_e05fd9e1292b"
          },
          "object": {
            "type": "string",
            "enum": [
              "event"
            ],
            "description": "Always `event`."
          },
          "type": {
            "type": "string",
            "enum": [
              "filing.processing"
            ],
            "description": "The event type."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event occurred.",
            "example": "2026-01-15T10:30:00.000Z"
          },
          "mode": {
            "type": "string",
            "enum": [
              "test",
              "live"
            ],
            "description": "Whether the event was produced in test or live mode. Matches the endpoint it is delivered to."
          },
          "data": {
            "type": "object",
            "required": [
              "object"
            ],
            "properties": {
              "object": {
                "$ref": "#/components/schemas/Filing"
              }
            }
          }
        }
      },
      "FilingQueuedEvent": {
        "type": "object",
        "description": "A filing was accepted and is waiting to be prepared. `data.object` is the filing as it stands after the change.",
        "required": [
          "id",
          "object",
          "type",
          "created_at",
          "mode",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for this event, prefixed `evt_`. Use it to de-duplicate deliveries.",
            "example": "evt_1768473000000_0607522d42bc"
          },
          "object": {
            "type": "string",
            "enum": [
              "event"
            ],
            "description": "Always `event`."
          },
          "type": {
            "type": "string",
            "enum": [
              "filing.queued"
            ],
            "description": "The event type."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event occurred.",
            "example": "2026-01-15T10:30:00.000Z"
          },
          "mode": {
            "type": "string",
            "enum": [
              "test",
              "live"
            ],
            "description": "Whether the event was produced in test or live mode. Matches the endpoint it is delivered to."
          },
          "data": {
            "type": "object",
            "required": [
              "object"
            ],
            "properties": {
              "object": {
                "$ref": "#/components/schemas/Filing"
              }
            }
          }
        }
      },
      "FilingReadyToFileEvent": {
        "type": "object",
        "description": "A filing has everything it needs and is about to be submitted. `data.object` is the filing as it stands after the change.",
        "required": [
          "id",
          "object",
          "type",
          "created_at",
          "mode",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for this event, prefixed `evt_`. Use it to de-duplicate deliveries.",
            "example": "evt_1768473000000_15da40794368"
          },
          "object": {
            "type": "string",
            "enum": [
              "event"
            ],
            "description": "Always `event`."
          },
          "type": {
            "type": "string",
            "enum": [
              "filing.ready_to_file"
            ],
            "description": "The event type."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event occurred.",
            "example": "2026-01-15T10:30:00.000Z"
          },
          "mode": {
            "type": "string",
            "enum": [
              "test",
              "live"
            ],
            "description": "Whether the event was produced in test or live mode. Matches the endpoint it is delivered to."
          },
          "data": {
            "type": "object",
            "required": [
              "object"
            ],
            "properties": {
              "object": {
                "$ref": "#/components/schemas/Filing"
              }
            }
          }
        }
      },
      "FilingRelatedItem": {
        "type": "object",
        "properties": {
          "object": {
            "type": "string",
            "description": "Object type",
            "enum": [
              "filing"
            ]
          },
          "id": {
            "type": "string",
            "description": "Filing ID",
            "format": "uuid"
          },
          "type": {
            "type": "string",
            "description": "Filing type",
            "enum": [
              "formation",
              "ein",
              "amendment",
              "scorp_election",
              "foreign_qualification"
            ]
          },
          "status": {
            "type": "string",
            "description": "Current filing status",
            "enum": [
              "queued",
              "ready_to_file",
              "processing",
              "filed",
              "completed",
              "canceled"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "type",
          "status"
        ]
      },
      "FilingRequirementResult": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Filing type",
            "example": "formation"
          },
          "entity_type": {
            "type": "string",
            "description": "Entity type",
            "example": "llc"
          },
          "jurisdiction": {
            "type": "string",
            "description": "Jurisdiction (ISO 3166-2)",
            "example": "US-NC"
          },
          "expedited_tiers": {
            "description": "Expedited processing tiers this jurisdiction offers, accepted as the `expedited_tier` value on the formation create endpoints. Empty array when the state offers no expedited option. Present only when a jurisdiction is supplied. For the cost of each tier, call GET /v1/filing/formation/fee — the `expedited_tiers` field prices them.",
            "example": [
              "24_hour",
              "same_day",
              "1_hour"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "prerequisites": {
            "description": "Foreign qualification only: documents the target state needs alongside the application, each with whether it is always required and who supplies it. Empty when none have been captured for the state, which is not a claim that none are needed.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FilingPrerequisite"
            }
          },
          "post_filing_obligations": {
            "description": "Foreign qualification only: obligations the registration starts once accepted.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PostFilingObligation"
            }
          },
          "schema": {
            "type": "object",
            "description": "JSON Schema describing the request body for this filing.",
            "additionalProperties": true,
            "example": {
              "type": "object",
              "required": [
                "jurisdiction",
                "legal_name",
                "purpose",
                "email",
                "contact",
                "principal_address",
                "organizers"
              ],
              "properties": {
                "legal_name": {
                  "type": "string"
                },
                "purpose": {
                  "type": "string"
                },
                "email": {
                  "type": "string",
                  "format": "email",
                  "description": "Business email address"
                },
                "contact": {
                  "type": "object",
                  "required": [
                    "name",
                    "email"
                  ],
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "email": {
                      "type": "string",
                      "format": "email"
                    },
                    "phone": {
                      "type": "string"
                    }
                  }
                },
                "principal_address": {
                  "type": "object",
                  "description": "Principal office address",
                  "required": [
                    "street_line_1",
                    "city",
                    "region",
                    "postal_code",
                    "country"
                  ],
                  "properties": {
                    "street_line_1": {
                      "type": "string"
                    },
                    "city": {
                      "type": "string"
                    },
                    "region": {
                      "type": "string",
                      "description": "State or region code"
                    },
                    "postal_code": {
                      "type": "string"
                    },
                    "country": {
                      "type": "string",
                      "description": "ISO 3166-1 alpha-2 country code"
                    }
                  }
                },
                "mailing_address": {
                  "type": "object",
                  "description": "Mailing address if different from principal office",
                  "properties": {
                    "street_line_1": {
                      "type": "string"
                    },
                    "city": {
                      "type": "string"
                    },
                    "region": {
                      "type": "string",
                      "description": "State or region code"
                    },
                    "postal_code": {
                      "type": "string"
                    },
                    "country": {
                      "type": "string",
                      "description": "ISO 3166-1 alpha-2 country code"
                    }
                  }
                },
                "registered_agent": {
                  "type": "object",
                  "required": [
                    "type",
                    "name",
                    "address"
                  ],
                  "properties": {
                    "type": {
                      "type": "string",
                      "enum": [
                        "person",
                        "organization"
                      ]
                    },
                    "name": {
                      "type": "object",
                      "description": "A person or an entity. Discriminated by `type`.",
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "person",
                            "entity"
                          ]
                        },
                        "first": {
                          "type": "string",
                          "description": "Required when type is \"person\""
                        },
                        "last": {
                          "type": "string",
                          "description": "Required when type is \"person\""
                        },
                        "entity_name": {
                          "type": "string",
                          "description": "Required when type is \"entity\""
                        }
                      }
                    },
                    "address": {
                      "type": "object",
                      "description": "Registered office address (must be in the formation jurisdiction)",
                      "properties": {
                        "street_line_1": {
                          "type": "string"
                        },
                        "city": {
                          "type": "string"
                        },
                        "region": {
                          "type": "string"
                        },
                        "postal_code": {
                          "type": "string"
                        },
                        "country": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "organizers": {
                  "type": "array",
                  "minItems": 1,
                  "items": {
                    "type": "object",
                    "required": [
                      "name",
                      "address"
                    ],
                    "properties": {
                      "name": {
                        "type": "object",
                        "required": [
                          "type"
                        ],
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "person",
                              "entity"
                            ]
                          },
                          "first": {
                            "type": "string"
                          },
                          "last": {
                            "type": "string"
                          },
                          "entity_name": {
                            "type": "string"
                          }
                        }
                      },
                      "address": {
                        "type": "object",
                        "description": "Party address"
                      },
                      "title": {
                        "type": "string"
                      }
                    }
                  }
                },
                "tax_accounts": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "sales_tax"
                    ]
                  }
                },
                "fein": {
                  "type": "string"
                },
                "ldr_sales_tax": {
                  "type": "object"
                }
              },
              "allOf": [
                {
                  "if": {
                    "properties": {
                      "tax_accounts": {
                        "contains": {
                          "const": "sales_tax"
                        }
                      }
                    },
                    "required": [
                      "tax_accounts"
                    ]
                  },
                  "then": {
                    "required": [
                      "ldr_sales_tax",
                      "fein"
                    ]
                  }
                }
              ]
            }
          }
        },
        "required": [
          "type",
          "schema"
        ]
      },
      "FilingType": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "annual_report",
            "description": "Normalized filing type ID (e.g., annual_report, statement_of_information)"
          },
          "name": {
            "type": "string",
            "example": "Annual Report",
            "description": "Human-readable filing name"
          }
        },
        "required": [
          "id",
          "name"
        ]
      },
      "FinanceActivity": {
        "type": "object",
        "properties": {
          "category": {
            "type": "string",
            "enum": [
              "finance"
            ],
            "example": "finance"
          },
          "type": {
            "type": "string",
            "description": "Type of finance activity",
            "enum": [
              "commodities_broker",
              "credit_card_issuing",
              "investment_advice",
              "investment_club",
              "investment_holding",
              "mortgage_broker",
              "mortgage_company",
              "portfolio_management",
              "sales_financing",
              "securities_broker",
              "trust_administration",
              "venture_capital",
              "other"
            ],
            "example": "investment_advice"
          }
        },
        "required": [
          "category",
          "type"
        ]
      },
      "FoodServiceActivity": {
        "type": "object",
        "properties": {
          "category": {
            "type": "string",
            "enum": [
              "food_service"
            ],
            "example": "food_service"
          },
          "type": {
            "type": "string",
            "description": "Type of food service",
            "enum": [
              "bar",
              "bar_and_restaurant",
              "catering_service",
              "coffee_shop",
              "fast_food_restaurant",
              "full_service_restaurant",
              "ice_cream_shop",
              "mobile_food_service",
              "other"
            ],
            "example": "full_service_restaurant"
          }
        },
        "required": [
          "category",
          "type"
        ]
      },
      "ForeignGoverningPerson": {
        "type": "object",
        "properties": {
          "name": {
            "description": "Person or entity name",
            "allOf": [
              {
                "$ref": "#/components/schemas/PartyName"
              }
            ]
          },
          "address": {
            "description": "Address",
            "allOf": [
              {
                "$ref": "#/components/schemas/FormationAddress"
              }
            ]
          },
          "role": {
            "type": "string",
            "description": "Whether this person is a member or a manager",
            "enum": [
              "member",
              "manager"
            ],
            "example": "member"
          },
          "title": {
            "type": "string",
            "description": "Title or capacity (e.g., \"Member\", \"Managing Member\"). Required by some jurisdictions, which may limit it to set values; the requirement schema lists them.",
            "example": "Managing Member"
          },
          "email": {
            "type": "string",
            "description": "Email. Required by some jurisdictions.",
            "example": "member@example.com"
          },
          "phone": {
            "type": "string",
            "description": "Phone.",
            "example": "512-555-1234"
          }
        },
        "required": [
          "name"
        ]
      },
      "ForeignQualificationFilingResult": {
        "type": "object",
        "properties": {
          "registration_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Registration or file number the target state assigned to the registration.",
            "example": "0805123456"
          },
          "registration_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Date the target state accepted the registration (YYYY-MM-DD).",
            "example": "2026-10-14"
          },
          "palm_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Palm identifier of the new registration, once its registry record appears. Null until then; also stamped on the new business record.",
            "example": "7001-2233-4455"
          }
        },
        "required": [
          "registration_number",
          "registration_date",
          "palm_id"
        ]
      },
      "ForeignQualificationRegisteredAgent": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Whether the registered agent is a person or an organization",
            "enum": [
              "person",
              "organization"
            ],
            "example": "person"
          },
          "name": {
            "description": "Registered agent name",
            "allOf": [
              {
                "$ref": "#/components/schemas/PartyName"
              }
            ]
          },
          "address": {
            "description": "Registered office address (must be in the state you are registering in, the request's `jurisdiction`)",
            "allOf": [
              {
                "$ref": "#/components/schemas/FormationAddress"
              }
            ]
          },
          "mailing_address": {
            "description": "Mailing address if different from the registered office",
            "allOf": [
              {
                "$ref": "#/components/schemas/FormationAddress"
              }
            ]
          },
          "email": {
            "type": "string",
            "description": "Registered agent email. Required by some jurisdictions.",
            "example": "agent@example.com"
          },
          "phone": {
            "type": "string",
            "description": "Registered agent phone",
            "example": "919-555-1234"
          }
        },
        "required": [
          "type",
          "name",
          "address"
        ]
      },
      "ForeignQualificationRequest": {
        "type": "object",
        "properties": {
          "jurisdiction": {
            "type": "string",
            "description": "The state to register in (ISO 3166-2). Becomes the registration jurisdiction of the new business record.",
            "example": "US-TX"
          },
          "business_id": {
            "type": "string",
            "description": "The existing business in your account, as registered in its formation state: its registration jurisdiction must equal its formation jurisdiction. Its legal name, entity type, formation jurisdiction, formation date and registration number are read from the record and are never accepted on this request.",
            "format": "uuid",
            "example": "987e6543-e21a-45b6-c789-012345678901"
          },
          "alternate_names": {
            "description": "Up to 3 backup names, in the order to try them. Palm files under the legal name first; if the target state refuses it, Palm files under the first alternate name the state accepts, without asking you. Each must differ from the legal name and from each other, and must satisfy the target state’s naming rules. The request is refused only when neither the legal name nor any alternate name is available in the target state. The new business’s `legal_name` is the name the state registers.",
            "maxItems": 3,
            "example": [
              "Acme Holdings of Texas LLC"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "contact": {
            "description": "Primary contact for questions about this filing. Used by Palm operations; never sent to the state.",
            "allOf": [
              {
                "$ref": "#/components/schemas/FilingContact"
              }
            ]
          },
          "email": {
            "type": "string",
            "description": "Business email address",
            "example": "info@acme.com"
          },
          "phone": {
            "type": "string",
            "description": "Business phone number",
            "example": "512-555-1234"
          },
          "website": {
            "type": "string",
            "description": "Business website",
            "example": "https://acme.com"
          },
          "principal_address": {
            "description": "Principal office address, as you hold it",
            "allOf": [
              {
                "$ref": "#/components/schemas/FormationAddress"
              }
            ]
          },
          "mailing_address": {
            "description": "Mailing address if different from the principal office. Defaults to principal_address when omitted.",
            "allOf": [
              {
                "$ref": "#/components/schemas/FormationAddress"
              }
            ]
          },
          "governing_persons": {
            "description": "Members or managers of the LLC, where the target state asks for them. The requirement endpoint says whether the state does.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ForeignGoverningPerson"
            }
          },
          "purpose": {
            "type": "string",
            "description": "Purpose of the business in the target state, where the state asks for one.",
            "example": "Any lawful purpose"
          },
          "registered_agent": {
            "description": "Your own registered agent in the target state. If omitted, Palm provides registered agent service there.",
            "allOf": [
              {
                "$ref": "#/components/schemas/ForeignQualificationRegisteredAgent"
              }
            ]
          },
          "expedited_tier": {
            "type": "string",
            "description": "Expedited processing tier. Omit for standard processing. Valid values are jurisdiction-specific — discover them via GET /v1/filing/foreign-qualification/requirement (`expedited_tiers`) and price them via GET /v1/filing/foreign-qualification/fee (`expedited_tiers`). Rejected with 400 if the value is not offered by the jurisdiction.",
            "example": "expedited"
          },
          "note": {
            "type": "string",
            "description": "Context for Palm operations to read before submitting this filing, such as an existing name reservation. Returned on the filing.",
            "maxLength": 2000,
            "example": "The member holds name reservation 2026-123456 for this name."
          },
          "metadata": {
            "type": "object",
            "description": "Partner-defined metadata. Round-tripped on webhooks and the filing record."
          }
        },
        "required": [
          "jurisdiction",
          "business_id",
          "contact",
          "email",
          "principal_address"
        ]
      },
      "FormationAddress": {
        "type": "object",
        "properties": {
          "street_line_1": {
            "type": "string",
            "description": "Street address line 1",
            "example": "123 Main St"
          },
          "street_line_2": {
            "type": "string",
            "description": "Apt, suite, unit, etc.",
            "example": "Suite 200"
          },
          "city": {
            "type": "string",
            "description": "City",
            "example": "Raleigh"
          },
          "region": {
            "type": "string",
            "description": "State or region code",
            "example": "NC"
          },
          "postal_code": {
            "type": "string",
            "description": "Postal/ZIP code",
            "example": "27601"
          },
          "county": {
            "type": "string",
            "description": "County name (required by some jurisdictions)",
            "example": "Mecklenburg"
          },
          "country": {
            "type": "string",
            "description": "ISO 3166-1 alpha-2 country code",
            "example": "US"
          }
        },
        "required": [
          "street_line_1",
          "city",
          "region",
          "postal_code",
          "country"
        ]
      },
      "FormationDirector": {
        "type": "object",
        "properties": {
          "name": {
            "description": "Director name",
            "allOf": [
              {
                "$ref": "#/components/schemas/PersonName"
              }
            ]
          },
          "address": {
            "description": "Address",
            "allOf": [
              {
                "$ref": "#/components/schemas/FormationAddress"
              }
            ]
          },
          "title": {
            "type": "string",
            "description": "Board role, if any (e.g., \"Chair\").",
            "example": "Chair"
          },
          "email": {
            "type": "string",
            "description": "Email. Required by some jurisdictions (e.g. MT, VT).",
            "example": "director@example.com"
          },
          "phone": {
            "type": "string",
            "description": "Phone.",
            "example": "919-555-1234"
          },
          "ssn": {
            "type": "string",
            "description": "Social Security Number. Required by some jurisdictions' filing portals. Routed to the user vault — never persisted in plaintext on the filing.",
            "example": "123-45-6789"
          }
        },
        "required": [
          "name"
        ]
      },
      "FormationEin": {
        "type": "object",
        "properties": {
          "responsible_party": {
            "description": "Responsible party for the entity",
            "allOf": [
              {
                "$ref": "#/components/schemas/EinResponsibleParty"
              }
            ]
          },
          "reason": {
            "type": "string",
            "description": "Reason for applying",
            "enum": [
              "started_new_business",
              "hired_employees",
              "banking_purposes",
              "changed_organization_type",
              "purchased_business",
              "created_trust",
              "created_pension_plan",
              "withholding_compliance",
              "other"
            ],
            "example": "started_new_business"
          },
          "reason_detail": {
            "type": "string",
            "description": "Details for the reason. Required if reason is \"other\".",
            "example": "Compliance with state reporting requirements"
          },
          "fiscal_year_end_month": {
            "type": "integer",
            "minimum": 1,
            "maximum": 12,
            "description": "Closing month of accounting year. 1-12.",
            "example": 12
          },
          "expected_employee_count": {
            "description": "Expected employees in next 12 months by category",
            "allOf": [
              {
                "$ref": "#/components/schemas/EinExpectedEmployeeCount"
              }
            ]
          },
          "wage_date": {
            "type": "string",
            "format": "date",
            "description": "Date wages will first be paid. Required if total expected employees > 0.",
            "example": "2026-04-01"
          },
          "principal_activity": {
            "description": "Principal activity category, matching the IRS online EIN flow. Pick the one that best describes the business:\n- `accommodations`: hotels, motels, casino hotels\n- `construction`: contractors and construction trades\n- `finance`: banks, brokers, lenders, investment and advisory firms\n- `food_service`: restaurants, bars, catering, coffee/ice-cream shops\n- `health_care`: physicians, dentists, hospitals, clinics, mental-health practitioners\n- `insurance`: insurance carriers, agents, and brokers\n- `manufacturing`: producing goods from raw materials\n- `real_estate`: renting, building, selling, or managing property\n- `rental_and_leasing`: renting or leasing real estate or goods\n- `retail`: selling goods to consumers (online, storefront, direct, auction)\n- `social_assistance`: nursing homes, shelters, youth services\n- `transportation`: moving cargo or passengers\n- `warehousing`: storage and warehousing\n- `wholesale`: selling goods to businesses for resale\n- `other`: anything not covered above (consulting, repair, services, etc.)\n\nThe object is discriminated by `category`; each category carries its own follow-up fields.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/AccommodationsActivity"
              },
              {
                "$ref": "#/components/schemas/ConstructionActivity"
              },
              {
                "$ref": "#/components/schemas/FinanceActivity"
              },
              {
                "$ref": "#/components/schemas/FoodServiceActivity"
              },
              {
                "$ref": "#/components/schemas/HealthCareActivity"
              },
              {
                "$ref": "#/components/schemas/InsuranceActivity"
              },
              {
                "$ref": "#/components/schemas/ManufacturingActivity"
              },
              {
                "$ref": "#/components/schemas/RealEstateActivity"
              },
              {
                "$ref": "#/components/schemas/RentalAndLeasingActivity"
              },
              {
                "$ref": "#/components/schemas/RetailActivity"
              },
              {
                "$ref": "#/components/schemas/SocialAssistanceActivity"
              },
              {
                "$ref": "#/components/schemas/TransportationActivity"
              },
              {
                "$ref": "#/components/schemas/WarehousingActivity"
              },
              {
                "$ref": "#/components/schemas/WholesaleActivity"
              },
              {
                "$ref": "#/components/schemas/OtherActivity"
              }
            ],
            "discriminator": {
              "propertyName": "category",
              "mapping": {
                "accommodations": "#/components/schemas/AccommodationsActivity",
                "construction": "#/components/schemas/ConstructionActivity",
                "finance": "#/components/schemas/FinanceActivity",
                "food_service": "#/components/schemas/FoodServiceActivity",
                "health_care": "#/components/schemas/HealthCareActivity",
                "insurance": "#/components/schemas/InsuranceActivity",
                "manufacturing": "#/components/schemas/ManufacturingActivity",
                "real_estate": "#/components/schemas/RealEstateActivity",
                "rental_and_leasing": "#/components/schemas/RentalAndLeasingActivity",
                "retail": "#/components/schemas/RetailActivity",
                "social_assistance": "#/components/schemas/SocialAssistanceActivity",
                "transportation": "#/components/schemas/TransportationActivity",
                "warehousing": "#/components/schemas/WarehousingActivity",
                "wholesale": "#/components/schemas/WholesaleActivity",
                "other": "#/components/schemas/OtherActivity"
              }
            }
          },
          "principal_activity_detail": {
            "type": "string",
            "description": "Free-text description of the principal line of merchandise sold, products produced, or services provided (IRS Form SS-4, line 17).",
            "example": "Software consulting services"
          },
          "has_previous_ein": {
            "type": "boolean",
            "description": "Has the entity previously received an EIN?",
            "example": false
          },
          "previous_ein": {
            "type": "string",
            "description": "Previous EIN if applicable. Required if has_previous_ein is true.",
            "example": "12-3456789"
          },
          "trade_name": {
            "type": "string",
            "description": "Trade name / DBA if different from legal name",
            "example": "Acme Trading Co"
          },
          "form_944_election": {
            "type": "boolean",
            "description": "Elect to file Form 944 annually instead of Form 941 quarterly",
            "example": false
          },
          "owns_highway_vehicle": {
            "type": "boolean",
            "description": "Whether the business owns a highway motor vehicle with a taxable gross weight of 55,000 pounds or more.",
            "example": false
          },
          "involves_gambling": {
            "type": "boolean",
            "description": "Whether the business involves gambling or wagering.",
            "example": false
          },
          "files_form_720": {
            "type": "boolean",
            "description": "Whether the business needs to file Form 720 (Quarterly Federal Excise Tax Return).",
            "example": false
          },
          "involves_alcohol_tobacco_firearms": {
            "type": "boolean",
            "description": "Whether the business sells or manufactures alcohol, tobacco, or firearms.",
            "example": false
          },
          "phone": {
            "type": "string",
            "description": "Business phone number",
            "example": "919-555-1234"
          },
          "mailing_address": {
            "description": "Mailing address, if different from the business address",
            "allOf": [
              {
                "$ref": "#/components/schemas/FormationAddress"
              }
            ]
          },
          "llc_member_count": {
            "type": "integer",
            "minimum": 1,
            "description": "Number of members in the LLC — the IRS EIN application asks this for every LLC. Optional. When omitted, the number of members listed in initial_governing_persons is filed. When a declared count disagrees with that list, the dry-run warns and the declared count is what is filed. Not asked for corporations: ignored, with a warning on the dry-run, on a corporation formation.",
            "example": 1
          },
          "members_are_married_couple": {
            "type": "boolean",
            "description": "Whether the two LLC members are married to each other. Required for a two-member LLC physically located in a community property state (AZ, CA, ID, LA, NM, NV, TX, WA, WI), where the IRS EIN application asks whether the members are husband and wife.",
            "example": false
          },
          "llc_classification": {
            "type": "string",
            "description": "Federal tax classification election for a married-couple LLC in a community property state (Rev. Proc. 2002-69): treat the LLC as single-member (disregarded entity) or multi-member (partnership). Required if members_are_married_couple is true.",
            "enum": [
              "single_member",
              "multi_member"
            ],
            "example": "single_member"
          },
          "corporation_subtype": {
            "type": "string",
            "description": "Type of corporation as the IRS EIN application asks it on the corporation path: corporation (a C corporation), s_corporation, personal_service_corporation, reit, ric, or settlement_fund. Applies to corporation formations only; ignored, with a warning on the dry-run, on an LLC formation. Optional — when omitted the application is filed as a plain corporation.",
            "enum": [
              "corporation",
              "s_corporation",
              "personal_service_corporation",
              "reit",
              "ric",
              "settlement_fund"
            ],
            "example": "corporation"
          }
        },
        "required": [
          "responsible_party",
          "reason",
          "fiscal_year_end_month",
          "expected_employee_count",
          "principal_activity",
          "principal_activity_detail",
          "has_previous_ein"
        ]
      },
      "FormationFilingResult": {
        "type": "object",
        "properties": {
          "registration_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "State-assigned registration/file number.",
            "example": "NC-12345678"
          },
          "formation_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Date the entity was formed (YYYY-MM-DD).",
            "example": "2026-06-23"
          }
        },
        "required": [
          "registration_number",
          "formation_date"
        ]
      },
      "FormationOfficer": {
        "type": "object",
        "properties": {
          "name": {
            "description": "Officer name",
            "allOf": [
              {
                "$ref": "#/components/schemas/PersonName"
              }
            ]
          },
          "role": {
            "type": "string",
            "description": "Office held. Use \"other\" with `title` for a role outside the enum.",
            "enum": [
              "president",
              "vice_president",
              "secretary",
              "treasurer",
              "ceo",
              "cfo",
              "coo",
              "chair",
              "assistant_secretary",
              "assistant_treasurer",
              "clerk",
              "other"
            ],
            "example": "president"
          },
          "title": {
            "type": "string",
            "description": "Display label, or the literal role when role is \"other\".",
            "example": "President"
          },
          "address": {
            "description": "Address",
            "allOf": [
              {
                "$ref": "#/components/schemas/FormationAddress"
              }
            ]
          },
          "email": {
            "type": "string",
            "description": "Email. Required by some jurisdictions.",
            "example": "officer@example.com"
          },
          "phone": {
            "type": "string",
            "description": "Phone.",
            "example": "919-555-1234"
          },
          "ssn": {
            "type": "string",
            "description": "Social Security Number. Required by some jurisdictions' filing portals. Routed to the user vault — never persisted in plaintext on the filing.",
            "example": "123-45-6789"
          }
        },
        "required": [
          "name",
          "role"
        ]
      },
      "FormationParty": {
        "type": "object",
        "properties": {
          "name": {
            "description": "Party name (person or entity)",
            "allOf": [
              {
                "$ref": "#/components/schemas/PartyName"
              }
            ]
          },
          "address": {
            "description": "Party address",
            "allOf": [
              {
                "$ref": "#/components/schemas/FormationAddress"
              }
            ]
          },
          "title": {
            "type": "string",
            "description": "Title or capacity (e.g., \"Member\", \"Authorized Person\")",
            "example": "Authorized Person"
          },
          "email": {
            "type": "string",
            "description": "Email. Required by some jurisdictions (e.g. MT, WV).",
            "example": "incorporator@example.com"
          },
          "phone": {
            "type": "string",
            "description": "Phone. Required by some jurisdictions (e.g. WV).",
            "example": "919-555-1234"
          },
          "entity_type": {
            "type": "string",
            "description": "Kind of business entity the party is when it signs on behalf of one. Some jurisdictions collect it; the requirement schema lists the allowed values.",
            "example": "limited_liability_company"
          }
        },
        "required": [
          "name",
          "address"
        ]
      },
      "FormationRegisteredAgent": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Whether the registered agent is a person or an organization",
            "enum": [
              "person",
              "organization"
            ],
            "example": "person"
          },
          "name": {
            "description": "Registered agent name",
            "allOf": [
              {
                "$ref": "#/components/schemas/PartyName"
              }
            ]
          },
          "address": {
            "description": "Registered office address (must be in the formation jurisdiction)",
            "allOf": [
              {
                "$ref": "#/components/schemas/FormationAddress"
              }
            ]
          },
          "mailing_address": {
            "description": "Mailing address if different from the registered office",
            "allOf": [
              {
                "$ref": "#/components/schemas/FormationAddress"
              }
            ]
          },
          "email": {
            "type": "string",
            "description": "Registered agent email. Required by some jurisdictions.",
            "example": "agent@example.com"
          },
          "phone": {
            "type": "string",
            "description": "Registered agent phone",
            "example": "919-555-1234"
          }
        },
        "required": [
          "type",
          "name",
          "address"
        ]
      },
      "GoverningPerson": {
        "type": "object",
        "properties": {
          "name": {
            "description": "Person or entity name",
            "allOf": [
              {
                "$ref": "#/components/schemas/PartyName"
              }
            ]
          },
          "address": {
            "description": "Address",
            "allOf": [
              {
                "$ref": "#/components/schemas/FormationAddress"
              }
            ]
          },
          "role": {
            "type": "string",
            "description": "Whether this person is a member or a manager",
            "enum": [
              "member",
              "manager"
            ],
            "example": "member"
          },
          "title": {
            "type": "string",
            "description": "Title or capacity (e.g., \"Member\", \"Managing Member\"). Required by some jurisdictions, which may limit it to set values; the requirement schema lists them.",
            "example": "Managing Member"
          },
          "email": {
            "type": "string",
            "description": "Email. Required by some jurisdictions (e.g. MT, LA).",
            "example": "member@example.com"
          },
          "phone": {
            "type": "string",
            "description": "Phone.",
            "example": "919-555-1234"
          },
          "ssn": {
            "type": "string",
            "description": "Social Security Number. Required by some jurisdictions' filing portals (e.g. WV managers). Routed to the user vault — never persisted in plaintext on the filing.",
            "example": "123-45-6789"
          }
        },
        "required": [
          "name"
        ]
      },
      "HealthCareActivity": {
        "type": "object",
        "properties": {
          "category": {
            "type": "string",
            "enum": [
              "health_care"
            ],
            "example": "health_care"
          },
          "includes_md": {
            "type": "boolean",
            "description": "Does the establishment include M.D. practitioners?",
            "example": true
          },
          "md_role": {
            "type": "string",
            "description": "M.D. practitioner role. Required when includes_md is true.",
            "enum": [
              "medical_doctor",
              "psychiatrist",
              "other_mental_health_practitioner"
            ]
          },
          "non_md_role": {
            "type": "string",
            "description": "Non-M.D. practitioner type. Required when includes_md is false.",
            "enum": [
              "chiropractor",
              "dentist",
              "hmo_medical_center",
              "hospital",
              "kidney_dialysis_center",
              "optometrist",
              "outpatient_care_center",
              "podiatrist",
              "psychologist",
              "other_mental_health_practitioner",
              "other"
            ]
          }
        },
        "required": [
          "category",
          "includes_md"
        ]
      },
      "IndustryCode": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "example": "312111",
            "description": "Industry classification code"
          },
          "type": {
            "type": "string",
            "example": "naics",
            "enum": [
              "naics",
              "sic",
              "other"
            ],
            "description": "Classification system type"
          },
          "description": {
            "type": "string",
            "example": "Soft Drink Manufacturing",
            "description": "Description of the industry code"
          }
        },
        "required": [
          "code",
          "type"
        ]
      },
      "InsuranceActivity": {
        "type": "object",
        "properties": {
          "category": {
            "type": "string",
            "enum": [
              "insurance"
            ],
            "example": "insurance"
          },
          "type": {
            "type": "string",
            "description": "Type of insurance activity",
            "enum": [
              "insurance_carrier",
              "insurance_agent_or_broker",
              "other"
            ],
            "example": "insurance_agent_or_broker"
          },
          "support_activity_detail": {
            "type": "string",
            "description": "Description of the support activity. Required when type is other.",
            "example": "Claims adjusting"
          }
        },
        "required": [
          "category",
          "type"
        ]
      },
      "InternalErrorProblemDetail": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "example": "https://api.getpalm.com/problems/internal_error"
          },
          "title": {
            "type": "string",
            "example": "Internal Server Error"
          },
          "status": {
            "type": "number",
            "example": 500
          },
          "detail": {
            "type": "string",
            "example": "An internal server error occurred. Please contact support if this persists."
          },
          "instance": {
            "type": "string",
            "example": "/business/registry/search"
          }
        },
        "required": [
          "type",
          "title",
          "status",
          "detail",
          "instance"
        ]
      },
      "LlcFormationRequest": {
        "type": "object",
        "properties": {
          "jurisdiction": {
            "type": "string",
            "description": "Jurisdiction (ISO 3166-2)",
            "example": "US-NC"
          },
          "legal_name": {
            "type": "string",
            "description": "Legal name of the LLC being formed",
            "example": "Acme Holdings LLC",
            "maxLength": 255
          },
          "entity_name": {
            "type": "string",
            "description": "Deprecated: use `legal_name`. Accepted in its place when `legal_name` is omitted.",
            "example": "Acme Holdings LLC",
            "maxLength": 255,
            "deprecated": true
          },
          "purpose": {
            "type": "string",
            "description": "Purpose clause for the articles of organization. Some states require user-supplied text; others use a statutory boilerplate clause that Palm fills in automatically. Distinct from the EIN principal_activity / principal_activity_detail fields, which describe the business's actual activity for IRS purposes.",
            "example": "Any lawful purpose"
          },
          "phone": {
            "type": "string",
            "description": "Business phone number",
            "example": "919-555-1234"
          },
          "email": {
            "type": "string",
            "description": "Business email address",
            "example": "info@acme.com"
          },
          "website": {
            "type": "string",
            "description": "Business website",
            "example": "https://acme.com"
          },
          "effective_date": {
            "type": "string",
            "description": "Delayed effective date (YYYY-MM-DD). If omitted, defaults to the date the formation request is received by Palm.",
            "example": "2026-05-01"
          },
          "contact": {
            "description": "Primary contact for questions about this filing. Used by Palm operations; never sent on the filing itself.",
            "allOf": [
              {
                "$ref": "#/components/schemas/FilingContact"
              }
            ]
          },
          "principal_address": {
            "description": "Principal office address",
            "allOf": [
              {
                "$ref": "#/components/schemas/FormationAddress"
              }
            ]
          },
          "mailing_address": {
            "description": "Mailing address if different from the principal office. Defaults to principal_address when omitted.",
            "allOf": [
              {
                "$ref": "#/components/schemas/FormationAddress"
              }
            ]
          },
          "organizers": {
            "description": "Persons or entities executing the articles of organization (organizers / authorized persons). At least one required.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FormationParty"
            }
          },
          "initial_governing_persons": {
            "description": "Initial members or managers of the LLC. Optional on most state formation forms but useful for downstream records and filings.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GoverningPerson"
            }
          },
          "registered_agent": {
            "description": "Registered agent. If provided, your own registered agent is used on the filing. If omitted, Palm provides registered agent service.",
            "allOf": [
              {
                "$ref": "#/components/schemas/FormationRegisteredAgent"
              }
            ]
          },
          "ein": {
            "description": "Bundle an EIN application with the formation. Palm submits to IRS after the formation succeeds.",
            "allOf": [
              {
                "$ref": "#/components/schemas/FormationEin"
              }
            ]
          },
          "note": {
            "type": "string",
            "description": "Context for Palm operations to read before submitting this filing, such as an existing name reservation. Returned on the filing.",
            "maxLength": 2000,
            "example": "The member holds name reservation 2026-123456 for this name."
          },
          "metadata": {
            "type": "object",
            "description": "Partner-defined metadata. Round-tripped on webhooks and the filing record."
          },
          "expedited_tier": {
            "type": "string",
            "description": "Expedited processing tier. Omit for standard processing. Valid values are jurisdiction-specific — discover them via GET /v1/filing/formation/requirement (`expedited_tiers`) and price them via GET /v1/filing/formation/fee (`expedited_tiers`). Rejected with 400 if the value is not offered by the jurisdiction.",
            "example": "same_day"
          }
        },
        "required": [
          "jurisdiction",
          "legal_name",
          "purpose",
          "email",
          "contact",
          "principal_address",
          "organizers"
        ],
        "additionalProperties": true
      },
      "ManufacturingActivity": {
        "type": "object",
        "properties": {
          "category": {
            "type": "string",
            "enum": [
              "manufacturing"
            ],
            "example": "manufacturing"
          },
          "goods": {
            "type": "string",
            "description": "Type of goods produced and primary materials used",
            "example": "Aluminum cans from sheet aluminum"
          }
        },
        "required": [
          "category",
          "goods"
        ]
      },
      "MonitoredBusinessReference": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "987e6543-e21a-45b6-c789-012345678901",
            "format": "uuid",
            "description": "Business ID in your organization"
          },
          "palm_id": {
            "type": "string",
            "example": "1234-5678-9012",
            "description": "Palm ID for the business"
          },
          "legal_name": {
            "type": [
              "string",
              "null"
            ],
            "example": "Acme Corporation",
            "description": "Business legal name (may be null if not yet resolved)"
          },
          "registration_jurisdiction_id": {
            "type": [
              "string",
              "null"
            ],
            "example": "US-DE",
            "description": "Registration jurisdiction (ISO 3166-2, may be null if not yet resolved)"
          }
        },
        "required": [
          "id",
          "palm_id",
          "legal_name",
          "registration_jurisdiction_id"
        ]
      },
      "NameDesignator": {
        "type": "object",
        "properties": {
          "entity_type": {
            "type": "string",
            "description": "Entity type the designators apply to",
            "enum": [
              "llc",
              "professional_llc",
              "corporation",
              "professional_corporation"
            ],
            "example": "llc"
          },
          "required": {
            "type": "boolean",
            "description": "True when the jurisdiction requires the name to carry one of the accepted designators. False when the jurisdiction mandates none for this entity type, in which case `accepted` is empty and any compliant name may be filed with or without a designator.",
            "example": true
          },
          "accepted": {
            "description": "Designators the jurisdiction accepts, in the order the state lists them. A name satisfies the requirement when it ends with any one of them. Empty when `required` is false.",
            "example": [
              "LLC",
              "L.L.C.",
              "Limited Liability Company"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "recommended": {
            "type": [
              "string",
              "null"
            ],
            "description": "The most conventional accepted designator, offered as a default when you append one on the user’s behalf. Null when the jurisdiction requires none.",
            "example": "LLC"
          }
        },
        "required": [
          "entity_type",
          "required",
          "accepted",
          "recommended"
        ]
      },
      "NameDesignatorResult": {
        "type": "object",
        "properties": {
          "jurisdiction": {
            "type": "string",
            "description": "Jurisdiction the designators apply to (ISO 3166-2)",
            "example": "US-TX"
          },
          "designators": {
            "description": "Accepted designators per entity type, one entry per entity type requested. An entity type the jurisdiction does not permit to be formed is omitted, so requesting only that type returns an empty list.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NameDesignator"
            }
          }
        },
        "required": [
          "jurisdiction",
          "designators"
        ]
      },
      "NameEligibilityResult": {
        "type": "object",
        "properties": {
          "eligible": {
            "type": "boolean",
            "description": "True when the name is both compliant with naming rules and available",
            "example": false
          },
          "compliant": {
            "type": "boolean",
            "description": "True when the name has no `error`-severity naming-rule violations",
            "example": false
          },
          "violations": {
            "description": "Naming-rule violations. Any `error` makes the name non-compliant; `needs_approval` and `advisory` items do not, so a compliant name can still carry violations",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NameRuleViolation"
            }
          },
          "available": {
            "type": "boolean",
            "description": "True when no registered business that still holds its name has this name. Names are compared without regard to case or punctuation and, where the jurisdiction says an entity designator does not distinguish two names, without regard to the designator, so `Acme LLC` can be unavailable because `Acme, Inc.` is registered.",
            "example": true
          },
          "alternatives": {
            "description": "Eligible alternative names (only when `suggest=true`)",
            "example": [
              "Maple Street Holdings LLC"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "eligible",
          "compliant",
          "violations",
          "available",
          "alternatives"
        ]
      },
      "NameRuleFix": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "description": "What to fix",
            "enum": [
              "append_designator",
              "fix_designator_typo"
            ],
            "example": "append_designator"
          },
          "message": {
            "type": "string",
            "description": "Plain-language description of the fix",
            "example": "Add the required 'LLC' designator."
          }
        },
        "required": [
          "reason",
          "message"
        ]
      },
      "NameRuleViolation": {
        "type": "object",
        "properties": {
          "rule": {
            "type": "string",
            "description": "The naming rule that was violated. `entity_type_unavailable` means the jurisdiction does not permit the requested entity type to be formed at all, so no name is eligible for it. `profession_rules_not_checked` (advisory) means the jurisdiction sets professional names by profession and they were not applied, because no `profession` was passed or none is recorded for the one passed. `professional_entity_required` (advisory) means the name signals a licensed profession the jurisdiction lets this entity type practise only as a professional entity; the message states the restriction.",
            "example": "required_designator"
          },
          "severity": {
            "type": "string",
            "description": "`error` blocks registration; `needs_approval` means the name is usable only with agency sign-off; `advisory` is a softer content-screening concern",
            "enum": [
              "error",
              "needs_approval",
              "advisory"
            ],
            "example": "error"
          },
          "message": {
            "type": "string",
            "description": "Plain-language explanation and how to fix it",
            "example": "Texas LLC names must end with an accepted designator such as 'LLC' or 'Limited Liability Company'."
          },
          "fix": {
            "description": "A deterministic fix for this violation, present only when it can be auto-corrected — a missing or misspelled entity designator. Describes the fix; ready-to-use candidate names are returned in `alternatives`.",
            "allOf": [
              {
                "$ref": "#/components/schemas/NameRuleFix"
              }
            ]
          }
        },
        "required": [
          "rule",
          "severity",
          "message"
        ]
      },
      "ObligationDeadline": {
        "type": "object",
        "properties": {
          "value": {
            "type": "number",
            "description": "Number of units.",
            "example": 120
          },
          "unit": {
            "type": "string",
            "description": "Unit of the window.",
            "enum": [
              "days",
              "months"
            ],
            "example": "days"
          },
          "from": {
            "type": "string",
            "description": "Event the window counts from.",
            "enum": [
              "filing",
              "approval"
            ],
            "example": "filing"
          }
        },
        "required": [
          "value",
          "unit",
          "from"
        ]
      },
      "OtherActivity": {
        "type": "object",
        "properties": {
          "category": {
            "type": "string",
            "enum": [
              "other"
            ],
            "example": "other"
          },
          "type": {
            "type": "string",
            "description": "Type of activity",
            "enum": [
              "consulting",
              "manufacturing",
              "organization",
              "rental",
              "repair",
              "sell_goods",
              "service",
              "other"
            ],
            "example": "consulting"
          }
        },
        "required": [
          "category",
          "type"
        ]
      },
      "PartyName": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Whether the party is a person or an entity",
            "enum": [
              "person",
              "entity"
            ],
            "example": "person"
          },
          "first": {
            "type": "string",
            "description": "First name. Required when type is \"person\".",
            "example": "Jane"
          },
          "last": {
            "type": "string",
            "description": "Last name. Required when type is \"person\".",
            "example": "Doe"
          },
          "middle": {
            "type": "string",
            "description": "Middle name or initial",
            "example": "A."
          },
          "suffix": {
            "type": "string",
            "description": "Suffix (e.g., Jr., Sr., III)",
            "example": "Jr."
          },
          "entity_name": {
            "type": "string",
            "description": "Legal name of the entity. Required when type is \"entity\".",
            "example": "Acme Holdings LLC"
          }
        },
        "required": [
          "type"
        ]
      },
      "PersonName": {
        "type": "object",
        "properties": {
          "first": {
            "type": "string",
            "description": "First name",
            "example": "Jane"
          },
          "last": {
            "type": "string",
            "description": "Last name",
            "example": "Doe"
          },
          "middle": {
            "type": "string",
            "description": "Middle name or initial",
            "example": "A."
          },
          "suffix": {
            "type": "string",
            "description": "Suffix (e.g., Jr., Sr., III)",
            "example": "Jr."
          }
        },
        "required": [
          "first",
          "last"
        ]
      },
      "PostFilingObligation": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Obligation the registration starts.",
            "enum": [
              "publication",
              "initial_report",
              "tax_registration",
              "business_license",
              "other"
            ],
            "example": "publication"
          },
          "description": {
            "type": "string",
            "description": "What the state asks for, in its own words.",
            "example": "Publish a copy of the application in two newspapers within 120 days of filing."
          },
          "deadline": {
            "description": "When it is due. Null when the state fixes no deadline.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/ObligationDeadline"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "type",
          "description",
          "deadline"
        ]
      },
      "RateLimitProblemDetail": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "example": "https://api.getpalm.com/problems/rate_limit_exceeded"
          },
          "title": {
            "type": "string",
            "example": "Too Many Requests"
          },
          "status": {
            "type": "number",
            "example": 429
          },
          "detail": {
            "type": "string",
            "example": "Rate limit exceeded. Please retry after 60 seconds."
          },
          "instance": {
            "type": "string",
            "example": "/business/registry/search"
          },
          "retry_after": {
            "type": "number",
            "example": 60
          },
          "limit": {
            "type": "number",
            "example": 100000
          },
          "remaining": {
            "type": "number",
            "example": 0
          },
          "reset": {
            "type": "number",
            "example": 1738540800
          }
        },
        "required": [
          "type",
          "title",
          "status",
          "detail",
          "instance"
        ]
      },
      "RealEstateActivity": {
        "type": "object",
        "properties": {
          "category": {
            "type": "string",
            "enum": [
              "real_estate"
            ],
            "example": "real_estate"
          },
          "type": {
            "type": "string",
            "description": "Type of real-estate activity",
            "enum": [
              "rent_lease_owned_property",
              "use_capital_to_build_property",
              "sell_property_for_others",
              "manage_real_estate_for_others",
              "other"
            ],
            "example": "rent_lease_owned_property"
          },
          "rental_property_type": {
            "type": "string",
            "description": "Property type rented/leased. Required when type is rent_lease_owned_property.",
            "enum": [
              "residential",
              "commercial_industrial",
              "other"
            ]
          },
          "construction": {
            "description": "Construction details. Required when type is use_capital_to_build_property (the IRS routes this path through the construction questions).",
            "allOf": [
              {
                "$ref": "#/components/schemas/ConstructionDetail"
              }
            ]
          }
        },
        "required": [
          "category",
          "type"
        ]
      },
      "RegisteredAgent": {
        "type": "object",
        "properties": {
          "object": {
            "type": "string",
            "description": "Object type identifier, always \"registered_agent\"",
            "enum": [
              "registered_agent"
            ],
            "example": "registered_agent"
          },
          "business_id": {
            "type": "string",
            "description": "Business this RA-service state belongs to",
            "format": "uuid",
            "example": "987e6543-e21a-45b6-c789-012345678901"
          },
          "provider": {
            "type": [
              "string",
              "null"
            ],
            "description": "Who provides RA service. `palm` when Palm provides service, `external` when the partner uses a different RA, `null` when no RA is tracked.",
            "enum": [
              "palm",
              "external",
              null
            ],
            "example": "palm"
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "description": "Lifecycle status of Palm-provided RA service. `null` when the partner uses an external RA or has never used Palm RA.",
            "enum": [
              "pending",
              "active",
              "termination_requested",
              "terminated",
              "failed",
              "canceled",
              null
            ],
            "example": "active"
          },
          "jurisdiction": {
            "type": [
              "string",
              "null"
            ],
            "description": "Jurisdiction (state) the RA service is for",
            "example": "CA"
          },
          "started_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO 8601 timestamp when the current service window started",
            "format": "date-time",
            "example": "2026-05-29T10:30:00Z"
          },
          "ended_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO 8601 timestamp when the most recent service window ended (null while active)",
            "format": "date-time",
            "example": null
          },
          "rejection_reason": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the service did not proceed. Carries the rejection reason on the `registered_agent.failed`, `registered_agent.change_failed`, and `registered_agent.termination_failed` webhook payloads, and the cancellation reason on `registered_agent.canceled`. Null on every other event and on reads of the resource.",
            "example": "State refused resignation form: GA requires a successor RA designation"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the registered agent of record for the business in this jurisdiction. Populated when Palm provides RA service and the agent has been assigned; `null` otherwise.",
            "example": "Acme Registered Agent Services, Inc."
          },
          "address": {
            "description": "Mailing address of the registered agent of record. Populated when Palm provides RA service and the agent has been assigned; `null` otherwise.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/Address"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "object",
          "business_id",
          "provider",
          "status",
          "jurisdiction",
          "started_at",
          "ended_at"
        ]
      },
      "RegisteredAgentActivatedEvent": {
        "type": "object",
        "description": "Palm became the registered agent for a business, either through a formation or a change into Palm completing. `data.object` is the registered agent record; status is `active`.",
        "required": [
          "id",
          "object",
          "type",
          "created_at",
          "mode",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for this event, prefixed `evt_`. Use it to de-duplicate deliveries.",
            "example": "evt_1768473000000_fa239874268e"
          },
          "object": {
            "type": "string",
            "enum": [
              "event"
            ],
            "description": "Always `event`."
          },
          "type": {
            "type": "string",
            "enum": [
              "registered_agent.activated"
            ],
            "description": "The event type."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event occurred.",
            "example": "2026-01-15T10:30:00.000Z"
          },
          "mode": {
            "type": "string",
            "enum": [
              "test",
              "live"
            ],
            "description": "Whether the event was produced in test or live mode. Matches the endpoint it is delivered to."
          },
          "data": {
            "type": "object",
            "required": [
              "object"
            ],
            "properties": {
              "object": {
                "$ref": "#/components/schemas/RegisteredAgent"
              }
            }
          }
        }
      },
      "RegisteredAgentCanceledEvent": {
        "type": "object",
        "description": "A pending registered agent was canceled on request before Palm became the agent, for example because the formation filing was canceled. Status is `canceled` and `rejection_reason` carries the reason.",
        "required": [
          "id",
          "object",
          "type",
          "created_at",
          "mode",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for this event, prefixed `evt_`. Use it to de-duplicate deliveries.",
            "example": "evt_1768473000000_57658f48ddbf"
          },
          "object": {
            "type": "string",
            "enum": [
              "event"
            ],
            "description": "Always `event`."
          },
          "type": {
            "type": "string",
            "enum": [
              "registered_agent.canceled"
            ],
            "description": "The event type."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event occurred.",
            "example": "2026-01-15T10:30:00.000Z"
          },
          "mode": {
            "type": "string",
            "enum": [
              "test",
              "live"
            ],
            "description": "Whether the event was produced in test or live mode. Matches the endpoint it is delivered to."
          },
          "data": {
            "type": "object",
            "required": [
              "object"
            ],
            "properties": {
              "object": {
                "$ref": "#/components/schemas/RegisteredAgent"
              }
            }
          }
        }
      },
      "RegisteredAgentChangeFailedEvent": {
        "type": "object",
        "description": "A requested registered agent change could not be completed. The change never applied, so status returns to what it was before the request and the agent of record is unchanged; `rejection_reason` carries the explanation.",
        "required": [
          "id",
          "object",
          "type",
          "created_at",
          "mode",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for this event, prefixed `evt_`. Use it to de-duplicate deliveries.",
            "example": "evt_1768473000000_59c1c2708acf"
          },
          "object": {
            "type": "string",
            "enum": [
              "event"
            ],
            "description": "Always `event`."
          },
          "type": {
            "type": "string",
            "enum": [
              "registered_agent.change_failed"
            ],
            "description": "The event type."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event occurred.",
            "example": "2026-01-15T10:30:00.000Z"
          },
          "mode": {
            "type": "string",
            "enum": [
              "test",
              "live"
            ],
            "description": "Whether the event was produced in test or live mode. Matches the endpoint it is delivered to."
          },
          "data": {
            "type": "object",
            "required": [
              "object"
            ],
            "properties": {
              "object": {
                "$ref": "#/components/schemas/RegisteredAgent"
              }
            }
          }
        }
      },
      "RegisteredAgentChangedEvent": {
        "type": "object",
        "description": "A change away from Palm completed and Palm is no longer the registered agent for the business. `data.object` is the registered agent record; status is `terminated` and provider is `external`.",
        "required": [
          "id",
          "object",
          "type",
          "created_at",
          "mode",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for this event, prefixed `evt_`. Use it to de-duplicate deliveries.",
            "example": "evt_1768473000000_cb79b4581dca"
          },
          "object": {
            "type": "string",
            "enum": [
              "event"
            ],
            "description": "Always `event`."
          },
          "type": {
            "type": "string",
            "enum": [
              "registered_agent.changed"
            ],
            "description": "The event type."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event occurred.",
            "example": "2026-01-15T10:30:00.000Z"
          },
          "mode": {
            "type": "string",
            "enum": [
              "test",
              "live"
            ],
            "description": "Whether the event was produced in test or live mode. Matches the endpoint it is delivered to."
          },
          "data": {
            "type": "object",
            "required": [
              "object"
            ],
            "properties": {
              "object": {
                "$ref": "#/components/schemas/RegisteredAgent"
              }
            }
          }
        }
      },
      "RegisteredAgentFailedEvent": {
        "type": "object",
        "description": "Initial registered agent provisioning could not be completed. Status is `failed` and `rejection_reason` carries the explanation.",
        "required": [
          "id",
          "object",
          "type",
          "created_at",
          "mode",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for this event, prefixed `evt_`. Use it to de-duplicate deliveries.",
            "example": "evt_1768473000000_1a0137e2ce25"
          },
          "object": {
            "type": "string",
            "enum": [
              "event"
            ],
            "description": "Always `event`."
          },
          "type": {
            "type": "string",
            "enum": [
              "registered_agent.failed"
            ],
            "description": "The event type."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event occurred.",
            "example": "2026-01-15T10:30:00.000Z"
          },
          "mode": {
            "type": "string",
            "enum": [
              "test",
              "live"
            ],
            "description": "Whether the event was produced in test or live mode. Matches the endpoint it is delivered to."
          },
          "data": {
            "type": "object",
            "required": [
              "object"
            ],
            "properties": {
              "object": {
                "$ref": "#/components/schemas/RegisteredAgent"
              }
            }
          }
        }
      },
      "RegisteredAgentRelatedItem": {
        "type": "object",
        "properties": {
          "object": {
            "type": "string",
            "description": "Object type",
            "enum": [
              "registered_agent"
            ]
          },
          "id": {
            "type": "string",
            "description": "Business ID that owns the registered-agent resource",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "description": "Current registered-agent status",
            "enum": [
              "pending",
              "active",
              "termination_requested",
              "terminated",
              "failed",
              "canceled"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "status"
        ]
      },
      "RegisteredAgentTerminatedEvent": {
        "type": "object",
        "description": "The termination completed and Palm is no longer the registered agent on file. Status is `terminated` and `ended_at` carries the close timestamp.",
        "required": [
          "id",
          "object",
          "type",
          "created_at",
          "mode",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for this event, prefixed `evt_`. Use it to de-duplicate deliveries.",
            "example": "evt_1768473000000_dbfdd05bf6f9"
          },
          "object": {
            "type": "string",
            "enum": [
              "event"
            ],
            "description": "Always `event`."
          },
          "type": {
            "type": "string",
            "enum": [
              "registered_agent.terminated"
            ],
            "description": "The event type."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event occurred.",
            "example": "2026-01-15T10:30:00.000Z"
          },
          "mode": {
            "type": "string",
            "enum": [
              "test",
              "live"
            ],
            "description": "Whether the event was produced in test or live mode. Matches the endpoint it is delivered to."
          },
          "data": {
            "type": "object",
            "required": [
              "object"
            ],
            "properties": {
              "object": {
                "$ref": "#/components/schemas/RegisteredAgent"
              }
            }
          }
        }
      },
      "RegisteredAgentTerminationFailedEvent": {
        "type": "object",
        "description": "A termination could not be completed. Status reverts to `active` and `rejection_reason` carries the explanation; submit a new request once the blocker is resolved.",
        "required": [
          "id",
          "object",
          "type",
          "created_at",
          "mode",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for this event, prefixed `evt_`. Use it to de-duplicate deliveries.",
            "example": "evt_1768473000000_57c663db07d1"
          },
          "object": {
            "type": "string",
            "enum": [
              "event"
            ],
            "description": "Always `event`."
          },
          "type": {
            "type": "string",
            "enum": [
              "registered_agent.termination_failed"
            ],
            "description": "The event type."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event occurred.",
            "example": "2026-01-15T10:30:00.000Z"
          },
          "mode": {
            "type": "string",
            "enum": [
              "test",
              "live"
            ],
            "description": "Whether the event was produced in test or live mode. Matches the endpoint it is delivered to."
          },
          "data": {
            "type": "object",
            "required": [
              "object"
            ],
            "properties": {
              "object": {
                "$ref": "#/components/schemas/RegisteredAgent"
              }
            }
          }
        }
      },
      "RegisteredAgentTerminationRequestedEvent": {
        "type": "object",
        "description": "You asked Palm to stop acting as registered agent. Status is `termination_requested`; Palm remains the agent on file and keeps forwarding mail until the termination completes.",
        "required": [
          "id",
          "object",
          "type",
          "created_at",
          "mode",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for this event, prefixed `evt_`. Use it to de-duplicate deliveries.",
            "example": "evt_1768473000000_f2fec4a917ff"
          },
          "object": {
            "type": "string",
            "enum": [
              "event"
            ],
            "description": "Always `event`."
          },
          "type": {
            "type": "string",
            "enum": [
              "registered_agent.termination_requested"
            ],
            "description": "The event type."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event occurred.",
            "example": "2026-01-15T10:30:00.000Z"
          },
          "mode": {
            "type": "string",
            "enum": [
              "test",
              "live"
            ],
            "description": "Whether the event was produced in test or live mode. Matches the endpoint it is delivered to."
          },
          "data": {
            "type": "object",
            "required": [
              "object"
            ],
            "properties": {
              "object": {
                "$ref": "#/components/schemas/RegisteredAgent"
              }
            }
          }
        }
      },
      "RegisteredAgentUpdateRequest": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "Which update to perform. Discriminates the rest of the body.",
            "enum": [
              "change_requested",
              "termination_requested"
            ],
            "example": "change_requested"
          },
          "registered_agent": {
            "description": "New registered agent (when `status=change_requested`). Supply agent details to change to your own / a different RA; omit to switch to Palm-provided service.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/FormationRegisteredAgent"
              },
              {
                "type": "null"
              }
            ]
          },
          "reason": {
            "type": "string",
            "description": "Why Palm RA service is being terminated (required when `status=termination_requested`).",
            "enum": [
              "switching_providers",
              "business_dissolved",
              "business_offboarding",
              "other"
            ],
            "example": "switching_providers"
          },
          "reason_detail": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional free-text context. Required by convention when `reason` is `other`.",
            "maxLength": 500,
            "example": "Moving RA service in-house effective end of quarter."
          },
          "metadata": {
            "type": "object",
            "description": "Optional metadata, round-tripped on the resulting work item.",
            "example": {
              "case_id": "case_abc123"
            }
          }
        },
        "required": [
          "status"
        ]
      },
      "RegistrationType": {
        "type": "string",
        "enum": [
          "domestic",
          "foreign"
        ],
        "description": "Whether the business is registered in the state where it was formed (`domestic`) or in another state (`foreign`). Read from `business.formation_jurisdiction` and `business.registration_jurisdiction`; null when either is missing."
      },
      "RegistryAssociateSearch": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of a person associated with a business (officer, director, manager, member, or registered agent). Returns every registered business that person is connected to. Officers and registered agents that are organizations are not matched. Combine with location or jurisdiction filters to narrow results for common names.",
            "example": "Jane Doe"
          }
        },
        "required": [
          "name"
        ]
      },
      "RegistryBusinessDetail": {
        "type": "object",
        "properties": {
          "palm_id": {
            "type": "string",
            "example": "2735-1926-5317",
            "description": "Unique Palm business identifier"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "example": "THE COCA-COLA COMPANY",
            "description": "Business legal name"
          },
          "formation_jurisdiction": {
            "type": [
              "string",
              "null"
            ],
            "example": "US-DE",
            "description": "Jurisdiction where the business was originally formed (US-XX format)"
          },
          "registration_jurisdiction": {
            "type": [
              "string",
              "null"
            ],
            "example": "US-FL",
            "description": "Jurisdiction where the business is registered to operate (US-XX format)"
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "example": "active",
            "enum": [
              "active",
              "inactive",
              "dissolved",
              "expired",
              "merged",
              "withdrawn",
              "pending",
              "canceled",
              null
            ],
            "description": "Current business status from the registry record"
          },
          "entity_type": {
            "type": [
              "string",
              "null"
            ],
            "example": "corporation",
            "enum": [
              "llc",
              "corporation",
              "lp",
              "llp",
              "nonprofit",
              "professional_llc",
              "professional_corporation",
              "other",
              null
            ],
            "description": "Type of business entity"
          },
          "formation_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "example": "1961-01-03",
            "description": "Date the business was formed (YYYY-MM-DD)"
          },
          "registration_number": {
            "type": "string",
            "example": "814956",
            "description": "Registry-assigned registration/file number"
          },
          "principal_address": {
            "description": "Principal place of business address",
            "allOf": [
              {
                "$ref": "#/components/schemas/Address"
              }
            ]
          },
          "mailing_address": {
            "description": "Mailing address",
            "allOf": [
              {
                "$ref": "#/components/schemas/Address"
              }
            ]
          },
          "fictitious_names": {
            "example": [],
            "description": "List of fictitious/DBA names",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "industry_codes": {
            "description": "Industry classification codes (NAICS, SIC)",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IndustryCode"
            }
          },
          "associates": {
            "description": "Officers, directors, agents, and other associates",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AssociateResponse"
            }
          },
          "identifier": {
            "description": "Additional public, cross-registry identifiers. Only identifiers present on the record are included.",
            "allOf": [
              {
                "$ref": "#/components/schemas/RegistryIdentifier"
              }
            ]
          },
          "standing": {
            "description": "Compliance standing with state agencies",
            "allOf": [
              {
                "$ref": "#/components/schemas/StandingResponse"
              }
            ]
          }
        },
        "required": [
          "palm_id",
          "name",
          "formation_date",
          "fictitious_names",
          "industry_codes",
          "associates"
        ]
      },
      "RegistryIdentifier": {
        "type": "object",
        "properties": {
          "lei": {
            "type": "string",
            "example": "UWJKFUJFZ02DKWI3RY53",
            "description": "Legal Entity Identifier (ISO 17442) — 20-character globally unique code issued by GLEIF."
          },
          "sec_cik": {
            "type": "string",
            "example": "0000141617",
            "description": "SEC EDGAR Central Index Key (zero-padded 10-digit) for entities that file with the SEC."
          },
          "business_number": {
            "type": "string",
            "example": "774955926RC0001",
            "description": "Canada Revenue Agency Business Number (BN15) for Canadian businesses."
          },
          "state_tax_id": {
            "type": "string",
            "example": "32005739365",
            "description": "State taxpayer/registration number issued by the jurisdiction (distinct from the federal EIN)."
          },
          "duns": {
            "type": "string",
            "example": "150483782",
            "description": "Dun & Bradstreet DUNS number."
          },
          "vat": {
            "type": "string",
            "example": "GB123456789",
            "description": "Value-added tax (VAT) registration number."
          }
        }
      },
      "RegistrySearchExpandedResult": {
        "type": "object",
        "properties": {
          "palm_id": {
            "type": "string",
            "example": "2735-1926-5317",
            "description": "Unique Palm business identifier"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "example": "THE COCA-COLA COMPANY",
            "description": "Business legal name"
          },
          "formation_jurisdiction": {
            "type": [
              "string",
              "null"
            ],
            "example": "US-DE",
            "description": "Jurisdiction where the business was originally formed (US-XX format)"
          },
          "registration_jurisdiction": {
            "type": [
              "string",
              "null"
            ],
            "example": "US-FL",
            "description": "Jurisdiction where the business is registered to operate (US-XX format)"
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "example": "active",
            "enum": [
              "active",
              "inactive",
              "dissolved",
              "expired",
              "merged",
              "withdrawn",
              "pending",
              "canceled",
              null
            ],
            "description": "Current business status from the registry record"
          },
          "entity_type": {
            "type": [
              "string",
              "null"
            ],
            "example": "corporation",
            "enum": [
              "llc",
              "corporation",
              "lp",
              "llp",
              "nonprofit",
              "professional_llc",
              "professional_corporation",
              "other",
              null
            ],
            "description": "Type of business entity"
          },
          "formation_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "example": "1961-01-03",
            "description": "Date the business was formed (YYYY-MM-DD)"
          },
          "registration_number": {
            "type": "string",
            "example": "814956",
            "description": "Registry-assigned registration/file number"
          },
          "principal_address": {
            "description": "Principal place of business address",
            "allOf": [
              {
                "$ref": "#/components/schemas/Address"
              }
            ]
          },
          "mailing_address": {
            "description": "Mailing address",
            "allOf": [
              {
                "$ref": "#/components/schemas/Address"
              }
            ]
          },
          "fictitious_names": {
            "example": [],
            "description": "List of fictitious/DBA names",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "industry_codes": {
            "description": "Industry classification codes (NAICS, SIC)",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IndustryCode"
            }
          },
          "associates": {
            "description": "Officers, directors, agents, and other associates",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AssociateResponse"
            }
          }
        },
        "required": [
          "palm_id",
          "name",
          "formation_date",
          "fictitious_names",
          "industry_codes",
          "associates"
        ]
      },
      "RegistrySearchResult": {
        "type": "object",
        "properties": {
          "palm_id": {
            "type": "string",
            "example": "2735-1926-5317",
            "description": "Unique Palm business identifier"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "example": "THE COCA-COLA COMPANY",
            "description": "Business legal name"
          },
          "formation_jurisdiction": {
            "type": [
              "string",
              "null"
            ],
            "example": "US-DE",
            "description": "Jurisdiction where the business was originally formed (US-XX format)"
          },
          "registration_jurisdiction": {
            "type": [
              "string",
              "null"
            ],
            "example": "US-FL",
            "description": "Jurisdiction where the business is registered to operate (US-XX format)"
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "example": "active",
            "enum": [
              "active",
              "inactive",
              "dissolved",
              "expired",
              "merged",
              "withdrawn",
              "pending",
              "canceled",
              null
            ],
            "description": "Current business status from the registry record"
          },
          "entity_type": {
            "type": [
              "string",
              "null"
            ],
            "example": "corporation",
            "enum": [
              "llc",
              "corporation",
              "lp",
              "llp",
              "nonprofit",
              "professional_llc",
              "professional_corporation",
              "other",
              null
            ],
            "description": "Type of business entity"
          },
          "formation_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "example": "1961-01-03",
            "description": "Date the business was formed (YYYY-MM-DD)"
          },
          "registration_number": {
            "type": "string",
            "example": "814956",
            "description": "Registry-assigned registration/file number"
          },
          "principal_address": {
            "description": "Principal place of business address",
            "allOf": [
              {
                "$ref": "#/components/schemas/Address"
              }
            ]
          }
        },
        "required": [
          "palm_id",
          "name",
          "formation_date"
        ]
      },
      "RentalAndLeasingActivity": {
        "type": "object",
        "properties": {
          "category": {
            "type": "string",
            "enum": [
              "rental_and_leasing"
            ],
            "example": "rental_and_leasing"
          },
          "type": {
            "type": "string",
            "description": "Type of rental/leasing activity",
            "enum": [
              "rent_lease_sell_real_estate",
              "rent_or_lease_goods",
              "manage_real_estate_for_others"
            ],
            "example": "rent_or_lease_goods"
          },
          "real_estate_activity": {
            "type": "string",
            "description": "Real-estate activity. Required when type is rent_lease_sell_real_estate.",
            "enum": [
              "real_estate_agent",
              "rent_residential",
              "rent_commercial_industrial"
            ]
          },
          "goods": {
            "type": "string",
            "description": "Type of goods rented or leased. Required when type is rent_or_lease_goods.",
            "example": "Construction equipment"
          }
        },
        "required": [
          "category",
          "type"
        ]
      },
      "RetailActivity": {
        "type": "object",
        "properties": {
          "category": {
            "type": "string",
            "enum": [
              "retail"
            ],
            "example": "retail"
          },
          "type": {
            "type": "string",
            "description": "Type of retail activity",
            "enum": [
              "selling_goods_online",
              "storefront_sales",
              "direct_sales",
              "auction_house",
              "other"
            ],
            "example": "storefront_sales"
          },
          "direct_sales_method": {
            "type": "string",
            "description": "Direct-sales method. Required when type is direct_sales.",
            "enum": [
              "catalogue",
              "mail_order",
              "door_to_door"
            ]
          }
        },
        "required": [
          "category",
          "type"
        ]
      },
      "ReverificationRequest": {
        "type": "object",
        "properties": {
          "workflow_key": {
            "type": "string",
            "description": "Workflow key to use for verification. If not provided, uses organization default.",
            "example": "business_verification_default"
          },
          "reference_id": {
            "type": "string",
            "description": "Your reference ID for tracking this verification",
            "example": "reverify_12345"
          },
          "metadata": {
            "type": "object",
            "description": "Additional metadata to attach to this verification",
            "example": {
              "reason": "annual_review"
            }
          }
        }
      },
      "ServiceUnavailableProblemDetail": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "example": "https://api.getpalm.com/problems/provider_unavailable"
          },
          "title": {
            "type": "string",
            "example": "Service Temporarily Unavailable"
          },
          "status": {
            "type": "number",
            "example": 503
          },
          "detail": {
            "type": "string",
            "example": "Identity verification is temporarily unavailable. Please retry."
          },
          "instance": {
            "type": "string",
            "example": "/user/verification"
          },
          "retry_after": {
            "type": "number",
            "example": 30
          }
        },
        "required": [
          "type",
          "title",
          "status",
          "detail",
          "instance"
        ]
      },
      "Session": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the session",
            "format": "uuid",
            "example": "3f8a1c2e-5b7d-4e91-a0c3-6d2f8b4e91a7"
          },
          "object": {
            "type": "string",
            "description": "Object type identifier, always \"session\"",
            "enum": [
              "session"
            ],
            "example": "session"
          },
          "workflow_key": {
            "type": "string",
            "description": "Key of the workflow this session is executing",
            "example": "kyc_standard"
          },
          "workflow_version": {
            "type": "number",
            "description": "Version of the workflow this session is using",
            "example": 1
          },
          "status": {
            "type": "string",
            "description": "Current status of the session",
            "enum": [
              "active",
              "submitted",
              "completed",
              "expired",
              "canceled"
            ],
            "example": "active"
          },
          "mode": {
            "type": "string",
            "description": "Test/live mode of the session, fixed to the mode of the API key that created it. Determines whether the session and its results are billable and which provider credentials are used. Cannot be changed after creation.",
            "enum": [
              "test",
              "live"
            ],
            "example": "live"
          },
          "current_step": {
            "type": [
              "string",
              "null"
            ],
            "description": "The current step in the workflow execution. This value is managed by the workflow engine and indicates which step the user is currently on. Will be null if the session is completed, expired, or canceled.",
            "example": "collect_identity_data"
          },
          "user_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the user associated with this session (for KYC workflows)",
            "format": "uuid",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          "business_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the business associated with this session (for KYB workflows)",
            "format": "uuid",
            "example": "987e6543-e21a-45b6-c789-012345678901"
          },
          "verification_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the verification created when the session is submitted. This is populated after the workflow reaches the verification submission step.",
            "format": "uuid",
            "example": "550e8400-e29b-41d4-a716-446655440000"
          },
          "expires_at": {
            "type": "string",
            "description": "ISO 8601 timestamp when the session expires. Expired sessions cannot be resumed. Default expiration is 7 days from creation.",
            "format": "date-time",
            "example": "2025-10-31T10:30:00Z"
          },
          "metadata": {
            "type": "object",
            "description": "Custom metadata",
            "example": {
              "external_reference": "onboarding_abc123",
              "source": "mobile_app"
            }
          },
          "created_at": {
            "type": "string",
            "description": "ISO 8601 timestamp of when the session was created",
            "format": "date-time",
            "example": "2025-10-24T10:30:00Z"
          },
          "updated_at": {
            "type": "string",
            "description": "ISO 8601 timestamp of when the session was last updated",
            "format": "date-time",
            "example": "2025-10-24T15:45:00Z"
          }
        },
        "required": [
          "id",
          "object",
          "workflow_key",
          "workflow_version",
          "status",
          "mode",
          "current_step",
          "user_id",
          "business_id",
          "verification_id",
          "expires_at",
          "metadata",
          "created_at",
          "updated_at"
        ]
      },
      "SessionCompletedEvent": {
        "type": "object",
        "description": "An onboarding session reached the end of its workflow. `data.object` is the session as it stands after the change.",
        "required": [
          "id",
          "object",
          "type",
          "created_at",
          "mode",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for this event, prefixed `evt_`. Use it to de-duplicate deliveries.",
            "example": "evt_1768473000000_2db545eb2ea0"
          },
          "object": {
            "type": "string",
            "enum": [
              "event"
            ],
            "description": "Always `event`."
          },
          "type": {
            "type": "string",
            "enum": [
              "session.completed"
            ],
            "description": "The event type."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event occurred.",
            "example": "2026-01-15T10:30:00.000Z"
          },
          "mode": {
            "type": "string",
            "enum": [
              "test",
              "live"
            ],
            "description": "Whether the event was produced in test or live mode. Matches the endpoint it is delivered to."
          },
          "data": {
            "type": "object",
            "required": [
              "object"
            ],
            "properties": {
              "object": {
                "$ref": "#/components/schemas/Session"
              }
            }
          }
        }
      },
      "SocialAssistanceActivity": {
        "type": "object",
        "properties": {
          "category": {
            "type": "string",
            "enum": [
              "social_assistance"
            ],
            "example": "social_assistance"
          },
          "type": {
            "type": "string",
            "description": "Type of social-assistance activity",
            "enum": [
              "nursing_home",
              "shelter",
              "youth_services",
              "other"
            ],
            "example": "youth_services"
          }
        },
        "required": [
          "category",
          "type"
        ]
      },
      "StandingResponse": {
        "type": "object",
        "properties": {
          "registration": {
            "type": [
              "string",
              "null"
            ],
            "example": "compliant",
            "enum": [
              "compliant",
              "not_compliant",
              null
            ],
            "description": "Registration standing with the state registry"
          },
          "tax": {
            "type": [
              "string",
              "null"
            ],
            "example": "compliant",
            "enum": [
              "compliant",
              "not_compliant",
              null
            ],
            "description": "Tax standing (franchise tax, etc.)"
          },
          "agent": {
            "type": [
              "string",
              "null"
            ],
            "example": "compliant",
            "enum": [
              "compliant",
              "not_compliant",
              null
            ],
            "description": "Registered agent standing"
          }
        }
      },
      "StockClass": {
        "type": "object",
        "properties": {
          "class_name": {
            "type": "string",
            "description": "Class name (e.g., \"Common\", \"Preferred Series A\")",
            "example": "Common"
          },
          "authorized_shares": {
            "type": "number",
            "description": "Number of authorized shares in this class",
            "example": 10000
          },
          "issued_shares": {
            "type": "number",
            "description": "Number of issued shares in this class",
            "example": 1000
          },
          "par_value_per_share": {
            "type": "number",
            "description": "Par value per share. Omit for no-par-value classes.",
            "example": 0.01
          },
          "consideration": {
            "type": "number",
            "description": "Total consideration to be received for this class",
            "example": 100
          },
          "rights_and_restrictions": {
            "type": "string",
            "description": "Designations, preferences, limitations, voting/dividend rights, and other terms",
            "example": "One vote per share. Dividends payable at the discretion of the board."
          }
        },
        "required": [
          "class_name",
          "authorized_shares"
        ]
      },
      "StockStructure": {
        "type": "object",
        "properties": {
          "total_authorized_shares": {
            "type": "number",
            "description": "Total authorized shares across all classes",
            "example": 10000
          },
          "has_par_value": {
            "type": "boolean",
            "description": "Whether shares have a par value. For multi-class structures with mixed par values, set per class instead.",
            "example": true
          },
          "par_value_per_share": {
            "type": "number",
            "description": "Par value per share when uniform across all shares",
            "example": 0.01
          },
          "total_consideration": {
            "type": "number",
            "description": "Total consideration to be received for all authorized shares",
            "example": 100
          },
          "rights_and_restrictions": {
            "type": "string",
            "description": "Designations, preferences, limitations, voting/dividend rights for single-class structures. Use per-class fields when multi-class.",
            "example": "Common stock with one vote per share."
          },
          "classes": {
            "description": "Per-class breakdown for multi-class structures. Sum of class authorized_shares should equal total_authorized_shares.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StockClass"
            }
          }
        },
        "required": [
          "total_authorized_shares"
        ]
      },
      "Subscription": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the subscription",
            "format": "uuid",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          "object": {
            "type": "string",
            "description": "Object type identifier",
            "enum": [
              "subscription"
            ],
            "example": "subscription"
          },
          "resource_type": {
            "type": "string",
            "description": "Type of resource being monitored",
            "enum": [
              "user",
              "business"
            ],
            "example": "business"
          },
          "resource_id": {
            "type": "string",
            "description": "ID of the user or business being monitored",
            "format": "uuid",
            "example": "987e6543-e21a-45b6-c789-012345678901"
          },
          "event_types": {
            "type": "array",
            "description": "List of webhook event types subscribed to for monitoring notifications",
            "example": [
              "business.registration.updated",
              "business.filing.due"
            ],
            "items": {
              "type": "string",
              "enum": [
                "business.registration.updated",
                "business.filing.due",
                "business.filing.overdue"
              ]
            }
          },
          "status": {
            "type": "string",
            "description": "Current status of the subscription",
            "enum": [
              "active",
              "paused",
              "expired",
              "canceled"
            ],
            "example": "active"
          },
          "mode": {
            "type": "string",
            "description": "Whether the subscription belongs to test or live mode, determined by the API key used to create it",
            "enum": [
              "test",
              "live"
            ],
            "example": "live"
          },
          "metadata": {
            "type": "object",
            "description": "Custom metadata for the subscription",
            "additionalProperties": {
              "type": "string"
            },
            "example": {
              "customer_tier": "premium",
              "monitoring_level": "enhanced"
            }
          },
          "created_at": {
            "type": "string",
            "description": "ISO 8601 timestamp when the subscription was created",
            "format": "date-time",
            "example": "2025-10-24T10:30:00Z"
          },
          "updated_at": {
            "type": "string",
            "description": "ISO 8601 timestamp when the subscription was last updated",
            "format": "date-time",
            "example": "2025-10-24T15:45:00Z"
          },
          "expires_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO 8601 timestamp when the subscription expires (for paid subscriptions)",
            "format": "date-time",
            "example": "2026-10-24T10:30:00Z"
          }
        },
        "required": [
          "id",
          "object",
          "resource_type",
          "resource_id",
          "event_types",
          "status",
          "mode",
          "metadata",
          "created_at",
          "updated_at",
          "expires_at"
        ]
      },
      "SubscriptionActivateRequest": {
        "type": "object",
        "properties": {
          "event_types": {
            "type": "array",
            "description": "List of webhook event types to subscribe to for monitoring notifications",
            "example": [
              "business.registration.updated",
              "business.filing.due"
            ],
            "minItems": 1,
            "items": {
              "type": "string",
              "enum": [
                "business.registration.updated",
                "business.filing.due",
                "business.filing.overdue"
              ]
            }
          },
          "metadata": {
            "type": "object",
            "description": "Custom metadata for the subscription",
            "example": {
              "customer_tier": "premium",
              "monitoring_level": "enhanced"
            }
          },
          "palm_id": {
            "type": "string",
            "description": "Palm ID of the registry business to monitor. Provide either this or registration_jurisdiction with registration_number.",
            "example": "4604-3477-1850"
          },
          "registration_jurisdiction": {
            "type": "string",
            "description": "Registration jurisdiction in ISO 3166-2 format (e.g., US-CA, US-NY, US-TX)",
            "example": "US-DE"
          },
          "registration_number": {
            "type": "string",
            "description": "The entity's registration number in that jurisdiction",
            "example": "7286832"
          }
        },
        "required": [
          "event_types"
        ]
      },
      "SubscriptionActivateResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the subscription",
            "format": "uuid",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          "object": {
            "type": "string",
            "description": "Object type identifier",
            "enum": [
              "subscription"
            ],
            "example": "subscription"
          },
          "resource_type": {
            "type": "string",
            "description": "Type of resource being monitored",
            "enum": [
              "user",
              "business"
            ],
            "example": "business"
          },
          "resource_id": {
            "type": "string",
            "description": "ID of the user or business being monitored",
            "format": "uuid",
            "example": "987e6543-e21a-45b6-c789-012345678901"
          },
          "event_types": {
            "type": "array",
            "description": "List of webhook event types subscribed to for monitoring notifications",
            "example": [
              "business.registration.updated",
              "business.filing.due"
            ],
            "items": {
              "type": "string",
              "enum": [
                "business.registration.updated",
                "business.filing.due",
                "business.filing.overdue"
              ]
            }
          },
          "status": {
            "type": "string",
            "description": "Current status of the subscription",
            "enum": [
              "active",
              "paused",
              "expired",
              "canceled"
            ],
            "example": "active"
          },
          "mode": {
            "type": "string",
            "description": "Whether the subscription belongs to test or live mode, determined by the API key used to create it",
            "enum": [
              "test",
              "live"
            ],
            "example": "live"
          },
          "metadata": {
            "type": "object",
            "description": "Custom metadata for the subscription",
            "additionalProperties": {
              "type": "string"
            },
            "example": {
              "customer_tier": "premium",
              "monitoring_level": "enhanced"
            }
          },
          "created_at": {
            "type": "string",
            "description": "ISO 8601 timestamp when the subscription was created",
            "format": "date-time",
            "example": "2025-10-24T10:30:00Z"
          },
          "updated_at": {
            "type": "string",
            "description": "ISO 8601 timestamp when the subscription was last updated",
            "format": "date-time",
            "example": "2025-10-24T15:45:00Z"
          },
          "expires_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO 8601 timestamp when the subscription expires (for paid subscriptions)",
            "format": "date-time",
            "example": "2026-10-24T10:30:00Z"
          },
          "business": {
            "description": "The portfolio business monitored by this subscription, created from the registry record or reused",
            "allOf": [
              {
                "$ref": "#/components/schemas/Business"
              }
            ]
          }
        },
        "required": [
          "id",
          "object",
          "resource_type",
          "resource_id",
          "event_types",
          "status",
          "mode",
          "metadata",
          "created_at",
          "updated_at",
          "expires_at",
          "business"
        ]
      },
      "SubscriptionCreateRequest": {
        "type": "object",
        "properties": {
          "event_types": {
            "type": "array",
            "description": "List of webhook event types to subscribe to for monitoring notifications",
            "example": [
              "business.registration.updated",
              "business.filing.due"
            ],
            "minItems": 1,
            "items": {
              "type": "string",
              "enum": [
                "business.registration.updated",
                "business.filing.due",
                "business.filing.overdue"
              ]
            }
          },
          "metadata": {
            "type": "object",
            "description": "Custom metadata for the subscription",
            "example": {
              "customer_tier": "premium",
              "monitoring_level": "enhanced"
            }
          }
        },
        "required": [
          "event_types"
        ]
      },
      "SubscriptionDeleteResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "ID of the canceled subscription",
            "format": "uuid",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          "object": {
            "type": "string",
            "description": "Object type identifier",
            "enum": [
              "subscription"
            ],
            "example": "subscription"
          },
          "deleted": {
            "type": "boolean",
            "description": "Indicates whether the subscription was successfully canceled",
            "example": true
          }
        },
        "required": [
          "id",
          "object",
          "deleted"
        ]
      },
      "SubscriptionUpdateRequest": {
        "type": "object",
        "properties": {
          "event_types": {
            "type": "array",
            "description": "Updated list of webhook event types to subscribe to (replaces existing)",
            "example": [
              "business.registration.updated",
              "business.filing.due"
            ],
            "minItems": 1,
            "items": {
              "type": "string",
              "enum": [
                "business.registration.updated",
                "business.filing.due",
                "business.filing.overdue"
              ]
            }
          },
          "status": {
            "type": "string",
            "description": "Update subscription status. Only `active` and `paused` are accepted: pausing stops event delivery while keeping the monitoring registration, and setting `active` resumes delivery. To cancel a subscription, use the DELETE endpoint.",
            "enum": [
              "active",
              "paused"
            ],
            "example": "paused"
          },
          "metadata": {
            "type": "object",
            "description": "Update custom metadata for the subscription",
            "example": {
              "customer_tier": "enterprise",
              "monitoring_level": "enhanced"
            }
          }
        }
      },
      "Synthetic": {
        "type": "object",
        "properties": {
          "is_synthetic": {
            "type": "boolean",
            "description": "Whether identity is likely synthetic (fabricated)",
            "example": false
          },
          "confidence_score": {
            "type": "number",
            "description": "Confidence score that identity is synthetic (0-100)",
            "example": 15
          },
          "indicators": {
            "description": "Specific synthetic identity indicators detected",
            "example": [
              "The application identity has no known history"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "is_synthetic"
        ]
      },
      "TinUnavailableReason": {
        "type": "string",
        "enum": [
          "tin_matching_service_unavailable"
        ],
        "description": "Machine-readable reason the verification could not be completed. Only present when `status === \"pending\"` or an error occurred."
      },
      "TinVerificationRequest": {
        "type": "object",
        "properties": {
          "tin": {
            "type": "string",
            "description": "Tax Identification Number to verify. For EIN use `XX-XXXXXXX` or 9 digits. For SSN use `XXX-XX-XXXX` or 9 digits.",
            "example": "12-3456789"
          },
          "name": {
            "type": "string",
            "description": "Name associated with the TIN. For EIN this is the legal business name. For SSN this is the individual's full name (`First Last` or `First Middle Last`). SSN names are cleaned before IRS submission: accented letters are transliterated (José → JOSE) and characters outside letters, digits, hyphen, ampersand, and space are removed. A cleaned name longer than the 70-character IRS field limit, or a first or last name left without any letters after cleaning, is rejected as a validation error.",
            "example": "Acme Corporation"
          },
          "tin_type": {
            "type": "string",
            "description": "Type of TIN being verified — selects the EIN (business) vs SSN (individual) validation path.",
            "enum": [
              "ein",
              "ssn"
            ],
            "example": "ein"
          },
          "reference_id": {
            "type": "string",
            "description": "Partner-provided reference ID; echoed back in the response for tracking.",
            "example": "tin_req_12345"
          },
          "metadata": {
            "type": "object",
            "description": "Custom metadata.\n\nIn **test mode** (`sk_test_` key), TIN verification is **always simulated** — it never contacts the IRS, so no-directive test requests return a deterministic match rather than a real verdict. The reserved key `_simulate` selects the outcome:\n\n- `match` (default) → `matched: true`, `status: completed`\n- `no_match` → `matched: false`, `status: completed`\n- `unavailable` → `matched: null`, `status: pending` with `unavailable_reason` (the IRS-outage shape)\n\nMalformed TINs still return the same `tin_matching_invalid_format` error as live mode. Ignored in live mode.",
            "example": {
              "external_id": "tin_789",
              "source": "1099_processing"
            }
          }
        },
        "required": [
          "tin",
          "name",
          "tin_type"
        ]
      },
      "TinVerificationResponse": {
        "type": "object",
        "properties": {
          "verification_id": {
            "type": "string",
            "description": "Unique TIN verification ID (UUID v4).",
            "format": "uuid",
            "example": "550e8400-e29b-41d4-a716-446655440000"
          },
          "object": {
            "type": "string",
            "description": "Object type — always the literal string `tin_verification`.",
            "enum": [
              "tin_verification"
            ],
            "example": "tin_verification"
          },
          "tin_type": {
            "type": "string",
            "description": "Type of TIN that was verified (echoes the `tin_type` from the request).",
            "enum": [
              "ein",
              "ssn"
            ],
            "example": "ein"
          },
          "matched": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether the TIN matched the provided name at the IRS. `true` = match, `false` = no match, `null` = match could not be determined (e.g., IRS service unavailable — see `unavailable_reason`).",
            "example": true
          },
          "status": {
            "type": "string",
            "description": "Current status of the verification. `completed` when IRS returned a definitive answer; `pending` when IRS was unavailable and the caller should retry.",
            "enum": [
              "pending",
              "in_progress",
              "completed",
              "failed"
            ],
            "example": "completed"
          },
          "unavailable_reason": {
            "description": "Machine-readable reason the verification could not be completed. Only present when `status === \"pending\"` or an error occurred.",
            "example": "tin_matching_service_unavailable",
            "allOf": [
              {
                "$ref": "#/components/schemas/TinUnavailableReason"
              }
            ]
          },
          "reference_id": {
            "type": "string",
            "description": "Partner-provided reference ID, echoed back only if one was supplied in the request.",
            "example": "tin_req_12345"
          },
          "created_at": {
            "type": "string",
            "description": "ISO 8601 timestamp of when the verification record was created.",
            "format": "date-time",
            "example": "2026-04-17T10:30:00Z"
          },
          "verified_at": {
            "type": "string",
            "description": "ISO 8601 timestamp of when the TIN was verified against IRS records. Only present when `status === \"completed\"`.",
            "format": "date-time",
            "example": "2026-04-17T10:30:01Z"
          }
        },
        "required": [
          "verification_id",
          "object",
          "tin_type",
          "matched",
          "status",
          "created_at"
        ]
      },
      "TransportationActivity": {
        "type": "object",
        "properties": {
          "category": {
            "type": "string",
            "enum": [
              "transportation"
            ],
            "example": "transportation"
          },
          "type": {
            "type": "string",
            "description": "What the business primarily transports",
            "enum": [
              "cargo",
              "passengers",
              "support_activity"
            ],
            "example": "cargo"
          },
          "cargo_mode": {
            "type": "string",
            "description": "Cargo transport mode. Required when type is cargo.",
            "enum": [
              "air",
              "rail",
              "trucking",
              "water",
              "other"
            ]
          },
          "passenger_mode": {
            "type": "string",
            "description": "Passenger transport mode. Required when type is passengers.",
            "enum": [
              "limousine",
              "shuttle_bus",
              "taxi",
              "other"
            ]
          }
        },
        "required": [
          "category",
          "type"
        ]
      },
      "User": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the resource",
            "format": "uuid",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          "object": {
            "type": "string",
            "description": "Object type identifier, always \"user\"",
            "example": "user",
            "enum": [
              "user"
            ]
          },
          "mode": {
            "type": "string",
            "description": "Whether this resource was created with test or live credentials. Test and live data are fully isolated — a test resource never appears in live results and vice versa.",
            "enum": [
              "test",
              "live"
            ],
            "example": "live"
          },
          "created_at": {
            "type": "string",
            "description": "ISO 8601 timestamp of when the resource was created",
            "format": "date-time",
            "example": "2025-10-24T10:30:00Z"
          },
          "updated_at": {
            "type": "string",
            "description": "ISO 8601 timestamp of when the resource was last updated",
            "format": "date-time",
            "example": "2025-10-24T15:45:00Z"
          },
          "metadata": {
            "type": "object",
            "description": "Store up to 50 custom key-value pairs for application-specific data. Useful for storing references to external systems, feature flags, or other custom attributes.",
            "additionalProperties": {
              "type": "string"
            },
            "example": {
              "external_id": "user_123_in_my_system",
              "customer_tier": "premium",
              "signup_source": "mobile_app"
            }
          },
          "status": {
            "type": "string",
            "description": "Current status of the user",
            "enum": [
              "active",
              "suspended",
              "deleted"
            ],
            "example": "active"
          },
          "verification": {
            "description": "Most recent verification information. Null if user has never been verified.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/UserVerification"
              },
              {
                "type": "null"
              }
            ]
          },
          "display_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Display name for the user",
            "example": "John Doe"
          },
          "email_fingerprint": {
            "type": [
              "string",
              "null"
            ],
            "description": "SHA-256 fingerprint of the user's email address. Used for duplicate detection and search without exposing the actual email. Automatically generated when email is stored in vault.",
            "example": "f7c3bc1d808e04732adf679965ccc34ca7ae3441"
          },
          "phone_fingerprint": {
            "type": [
              "string",
              "null"
            ],
            "description": "SHA-256 fingerprint of the user's phone number. Used for duplicate detection and search without exposing the actual phone. Automatically generated when phone is stored in vault.",
            "example": "a8d4bc2e919f15843beg890076ddd45db8bf4552"
          },
          "vault": {
            "type": [
              "object",
              "null"
            ],
            "description": "Cached vault field values for non-encrypted fields. Keys are full field IDs (e.g., \"identity.first_name\"). Only includes fields where encrypted=false in vault_field_definition.",
            "additionalProperties": true,
            "example": {
              "identity.first_name": "John",
              "identity.last_name": "Doe"
            }
          }
        },
        "required": [
          "id",
          "object",
          "mode",
          "created_at",
          "updated_at",
          "metadata",
          "status",
          "verification",
          "display_name",
          "vault"
        ]
      },
      "UserCreateRequest": {
        "type": "object",
        "properties": {
          "metadata": {
            "type": "object",
            "description": "Store up to 50 custom key-value pairs for application-specific data. Useful for storing references to external systems, feature flags, or other custom attributes.",
            "additionalProperties": {
              "type": "string"
            },
            "maxProperties": 50,
            "example": {
              "external_id": "user_789_in_my_system",
              "customer_tier": "standard",
              "signup_source": "web"
            }
          },
          "display_name": {
            "type": "string",
            "description": "Display name for the user",
            "example": "John Doe"
          },
          "vault": {
            "description": "User data to store in the vault. Use vault field IDs as keys (e.g., \"identity.email\", \"identity.first_name\"). See `UserVaultFields` for the complete list of available fields.",
            "example": {
              "identity.first_name": "John",
              "identity.last_name": "Doe",
              "identity.email": "john.doe@example.com",
              "identity.date_of_birth": "1990-01-15"
            },
            "allOf": [
              {
                "$ref": "#/components/schemas/UserVaultFields"
              }
            ]
          }
        }
      },
      "UserCreatedEvent": {
        "type": "object",
        "description": "A person was added to your portfolio. `data.object` is the user as it stands after the change.",
        "required": [
          "id",
          "object",
          "type",
          "created_at",
          "mode",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for this event, prefixed `evt_`. Use it to de-duplicate deliveries.",
            "example": "evt_1768473000000_ecec131526e1"
          },
          "object": {
            "type": "string",
            "enum": [
              "event"
            ],
            "description": "Always `event`."
          },
          "type": {
            "type": "string",
            "enum": [
              "user.created"
            ],
            "description": "The event type."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event occurred.",
            "example": "2026-01-15T10:30:00.000Z"
          },
          "mode": {
            "type": "string",
            "enum": [
              "test",
              "live"
            ],
            "description": "Whether the event was produced in test or live mode. Matches the endpoint it is delivered to."
          },
          "data": {
            "type": "object",
            "required": [
              "object"
            ],
            "properties": {
              "object": {
                "$ref": "#/components/schemas/User"
              }
            }
          }
        }
      },
      "UserRemovedEvent": {
        "type": "object",
        "description": "A person was removed from your portfolio. `data.object` is the user as it stands after the change. Status is `deleted`.",
        "required": [
          "id",
          "object",
          "type",
          "created_at",
          "mode",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for this event, prefixed `evt_`. Use it to de-duplicate deliveries.",
            "example": "evt_1768473000000_65547cfe82d9"
          },
          "object": {
            "type": "string",
            "enum": [
              "event"
            ],
            "description": "Always `event`."
          },
          "type": {
            "type": "string",
            "enum": [
              "user.removed"
            ],
            "description": "The event type."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event occurred.",
            "example": "2026-01-15T10:30:00.000Z"
          },
          "mode": {
            "type": "string",
            "enum": [
              "test",
              "live"
            ],
            "description": "Whether the event was produced in test or live mode. Matches the endpoint it is delivered to."
          },
          "data": {
            "type": "object",
            "required": [
              "object"
            ],
            "properties": {
              "object": {
                "$ref": "#/components/schemas/User"
              }
            }
          }
        }
      },
      "UserSearchRequest": {
        "type": "object",
        "properties": {
          "display_name": {
            "type": "string",
            "description": "Filter by display name (partial match, case-insensitive)",
            "example": "John Doe"
          },
          "email": {
            "type": "string",
            "description": "Filter by email address (exact match). Value is hashed for secure lookup.",
            "example": "john@example.com"
          },
          "phone": {
            "type": "string",
            "description": "Filter by phone number (exact match). Value is hashed for secure lookup.",
            "example": "+14155551234"
          },
          "ssn": {
            "type": "string",
            "description": "Filter by SSN (exact match). Value is hashed for secure lookup.",
            "example": "123-45-6789"
          },
          "cursor": {
            "type": "string",
            "description": "Pagination cursor from a previous response. A cursor is bound to the `sort` and `order` that produced it: send those same values on every page, and start over without a cursor whenever either one changes."
          },
          "limit": {
            "type": "number",
            "description": "Maximum number of results to return (1-100)",
            "default": 25
          },
          "sort": {
            "type": "string",
            "description": "Field to sort by",
            "enum": [
              "created_at",
              "name",
              "risk_level",
              "last_verified"
            ],
            "default": "created_at"
          },
          "order": {
            "type": "string",
            "description": "Sort order direction",
            "enum": [
              "asc",
              "desc"
            ],
            "default": "desc"
          }
        }
      },
      "UserSearchResult": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the resource",
            "format": "uuid",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          "object": {
            "type": "string",
            "description": "Object type identifier, always \"user\"",
            "example": "user",
            "enum": [
              "user"
            ]
          },
          "mode": {
            "type": "string",
            "description": "Whether this resource was created with test or live credentials. Test and live data are fully isolated — a test resource never appears in live results and vice versa.",
            "enum": [
              "test",
              "live"
            ],
            "example": "live"
          },
          "created_at": {
            "type": "string",
            "description": "ISO 8601 timestamp of when the resource was created",
            "format": "date-time",
            "example": "2025-10-24T10:30:00Z"
          },
          "updated_at": {
            "type": "string",
            "description": "ISO 8601 timestamp of when the resource was last updated",
            "format": "date-time",
            "example": "2025-10-24T15:45:00Z"
          },
          "metadata": {
            "type": "object",
            "description": "Store up to 50 custom key-value pairs for application-specific data. Useful for storing references to external systems, feature flags, or other custom attributes.",
            "additionalProperties": {
              "type": "string"
            },
            "example": {
              "external_id": "user_123_in_my_system",
              "customer_tier": "premium",
              "signup_source": "mobile_app"
            }
          },
          "status": {
            "type": "string",
            "description": "Current status of the user",
            "enum": [
              "active",
              "suspended",
              "deleted"
            ],
            "example": "active"
          },
          "verification": {
            "description": "Most recent verification information. Null if user has never been verified.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/UserVerification"
              },
              {
                "type": "null"
              }
            ]
          },
          "display_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Display name for the user",
            "example": "John Doe"
          },
          "email_fingerprint": {
            "type": [
              "string",
              "null"
            ],
            "description": "SHA-256 fingerprint of the user's email address. Used for duplicate detection and search without exposing the actual email. Automatically generated when email is stored in vault.",
            "example": "f7c3bc1d808e04732adf679965ccc34ca7ae3441"
          },
          "phone_fingerprint": {
            "type": [
              "string",
              "null"
            ],
            "description": "SHA-256 fingerprint of the user's phone number. Used for duplicate detection and search without exposing the actual phone. Automatically generated when phone is stored in vault.",
            "example": "a8d4bc2e919f15843beg890076ddd45db8bf4552"
          },
          "vault": {
            "type": [
              "object",
              "null"
            ],
            "description": "Cached vault field values for non-encrypted fields. Keys are full field IDs (e.g., \"identity.first_name\"). Only includes fields where encrypted=false in vault_field_definition.",
            "additionalProperties": true,
            "example": {
              "identity.first_name": "John",
              "identity.last_name": "Doe"
            }
          }
        },
        "required": [
          "id",
          "object",
          "mode",
          "created_at",
          "updated_at",
          "metadata",
          "status",
          "verification",
          "display_name",
          "vault"
        ]
      },
      "UserUpdateRequest": {
        "type": "object",
        "properties": {
          "metadata": {
            "type": "object",
            "description": "Store up to 50 custom key-value pairs for application-specific data. Metadata updates are merged with existing metadata. To remove a metadata field, set its value to null.",
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            },
            "maxProperties": 50,
            "example": {
              "customer_tier": "premium",
              "notes": null
            }
          },
          "display_name": {
            "type": "string",
            "description": "Display name for the user",
            "example": "John Doe"
          }
        }
      },
      "UserVaultFields": {
        "type": "object",
        "properties": {
          "identity.first_name": {
            "type": "string",
            "description": "Legal first name",
            "example": "John"
          },
          "identity.middle_name": {
            "type": "string",
            "description": "Middle name or initial",
            "example": "William"
          },
          "identity.last_name": {
            "type": "string",
            "description": "Legal last name",
            "example": "Doe"
          },
          "identity.date_of_birth": {
            "type": "string",
            "description": "Date of birth in YYYY-MM-DD format",
            "example": "1990-01-15"
          },
          "identity.email": {
            "type": "string",
            "description": "Primary email address",
            "example": "john.doe@example.com"
          },
          "identity.phone_number": {
            "type": "string",
            "description": "Phone number (E.164 format recommended)",
            "example": "+15551234567"
          },
          "identity.ssn": {
            "type": "string",
            "description": "Social Security Number (format: XXX-XX-XXXX or 9 digits)",
            "example": "123-45-6789"
          },
          "identity.passport_number": {
            "type": "string",
            "description": "Passport number",
            "example": "123456789"
          },
          "identity.drivers_license": {
            "type": "string",
            "description": "Driver's license number",
            "example": "D1234567"
          },
          "identity.address_line_1": {
            "type": "string",
            "description": "Street address line 1",
            "example": "123 Main Street"
          },
          "identity.address_line_2": {
            "type": "string",
            "description": "Street address line 2 (apt, suite, etc.)",
            "example": "Apt 4B"
          },
          "identity.city": {
            "type": "string",
            "description": "City",
            "example": "San Francisco"
          },
          "identity.region": {
            "type": "string",
            "description": "State, province, or region code",
            "example": "CA"
          },
          "identity.postal_code": {
            "type": "string",
            "description": "Postal or ZIP code",
            "example": "94102"
          },
          "identity.country": {
            "type": "string",
            "description": "Country (ISO 3166-1 alpha-2 code)",
            "example": "US"
          }
        }
      },
      "UserVerification": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "ID of the verification attempt",
            "format": "uuid",
            "example": "550e8400-e29b-41d4-a716-446655440000"
          },
          "risk_level": {
            "type": "string",
            "description": "Risk level determined by the verification",
            "enum": [
              "low",
              "medium",
              "high",
              "critical"
            ],
            "example": "low"
          },
          "workflow": {
            "description": "Workflow used for this verification",
            "allOf": [
              {
                "$ref": "#/components/schemas/UserVerificationWorkflow"
              }
            ]
          },
          "executed_at": {
            "type": "string",
            "description": "Timestamp when the verification was executed",
            "format": "date-time",
            "example": "2024-01-15T10:30:00.000Z"
          }
        },
        "required": [
          "id",
          "risk_level",
          "workflow",
          "executed_at"
        ]
      },
      "UserVerificationCompletedEvent": {
        "type": "object",
        "description": "A person verification finished. `data.object` is the verification result: risk level and reasons, per-field match outcomes, synthetic-identity and watchlist findings. `completed` means the check ran, not that it passed; read `risk.level`.",
        "required": [
          "id",
          "object",
          "type",
          "created_at",
          "mode",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for this event, prefixed `evt_`. Use it to de-duplicate deliveries.",
            "example": "evt_1768473000000_f774ee703579"
          },
          "object": {
            "type": "string",
            "enum": [
              "event"
            ],
            "description": "Always `event`."
          },
          "type": {
            "type": "string",
            "enum": [
              "user.verification.completed"
            ],
            "description": "The event type."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event occurred.",
            "example": "2026-01-15T10:30:00.000Z"
          },
          "mode": {
            "type": "string",
            "enum": [
              "test",
              "live"
            ],
            "description": "Whether the event was produced in test or live mode. Matches the endpoint it is delivered to."
          },
          "data": {
            "type": "object",
            "required": [
              "object"
            ],
            "properties": {
              "object": {
                "$ref": "#/components/schemas/UserVerificationResponse"
              }
            }
          }
        }
      },
      "UserVerificationMatch": {
        "type": "object",
        "properties": {
          "first_name": {
            "type": "string",
            "description": "First name match result",
            "enum": [
              "match",
              "partial_match",
              "no_match",
              "not_checked"
            ]
          },
          "last_name": {
            "type": "string",
            "description": "Last name match result",
            "enum": [
              "match",
              "partial_match",
              "no_match",
              "not_checked"
            ]
          },
          "middle_name": {
            "type": "string",
            "description": "Middle name match result",
            "enum": [
              "match",
              "partial_match",
              "no_match",
              "not_checked"
            ]
          },
          "date_of_birth": {
            "type": "string",
            "description": "Date of birth match result",
            "enum": [
              "match",
              "partial_match",
              "no_match",
              "not_checked"
            ]
          },
          "ssn": {
            "type": "string",
            "description": "SSN match result",
            "enum": [
              "match",
              "partial_match",
              "no_match",
              "not_checked"
            ]
          },
          "email": {
            "type": "string",
            "description": "Email match result",
            "enum": [
              "match",
              "partial_match",
              "no_match",
              "not_checked"
            ]
          },
          "phone_number": {
            "type": "string",
            "description": "Phone number match result",
            "enum": [
              "match",
              "partial_match",
              "no_match",
              "not_checked"
            ]
          },
          "address_line_1": {
            "type": "string",
            "description": "Address line 1 match result",
            "enum": [
              "match",
              "partial_match",
              "no_match",
              "not_checked"
            ]
          },
          "address_line_2": {
            "type": "string",
            "description": "Address line 2 match result",
            "enum": [
              "match",
              "partial_match",
              "no_match",
              "not_checked"
            ]
          },
          "city": {
            "type": "string",
            "description": "City match result",
            "enum": [
              "match",
              "partial_match",
              "no_match",
              "not_checked"
            ]
          },
          "region": {
            "type": "string",
            "description": "Region match result (state/province/county)",
            "enum": [
              "match",
              "partial_match",
              "no_match",
              "not_checked"
            ]
          },
          "postal_code": {
            "type": "string",
            "description": "Postal code match result",
            "enum": [
              "match",
              "partial_match",
              "no_match",
              "not_checked"
            ]
          }
        }
      },
      "UserVerificationRequest": {
        "type": "object",
        "properties": {
          "reference_id": {
            "type": "string",
            "description": "Your reference ID for tracking",
            "example": "user_12345"
          },
          "workflow_key": {
            "type": "string",
            "description": "Workflow key to use for verification (determines required fields). If not provided, uses organization default.",
            "pattern": "^[a-z0-9_]+$",
            "default": "user_verification_default",
            "example": "user_verification_default"
          },
          "first_name": {
            "type": "string",
            "example": "John",
            "description": "First name"
          },
          "last_name": {
            "type": "string",
            "example": "Doe",
            "description": "Last name"
          },
          "middle_name": {
            "type": "string",
            "example": "A",
            "description": "Middle name or initial"
          },
          "date_of_birth": {
            "type": "string",
            "example": "1990-01-15",
            "format": "date",
            "description": "Date of birth (YYYY-MM-DD)"
          },
          "ssn": {
            "type": "string",
            "example": "123-45-6789",
            "description": "Social Security Number"
          },
          "email": {
            "type": "string",
            "example": "john.doe@example.com",
            "description": "Email address"
          },
          "phone_number": {
            "type": "string",
            "example": "+15551234567",
            "description": "Phone number"
          },
          "address_line_1": {
            "type": "string",
            "example": "123 Main St",
            "description": "Street address line 1"
          },
          "address_line_2": {
            "type": "string",
            "example": "Apt 4B",
            "description": "Street address line 2"
          },
          "city": {
            "type": "string",
            "example": "San Francisco",
            "description": "City"
          },
          "region": {
            "type": "string",
            "example": "CA",
            "description": "Region (state/province/county)"
          },
          "postal_code": {
            "type": "string",
            "example": "94102",
            "description": "Postal code"
          },
          "country": {
            "type": "string",
            "example": "US",
            "description": "Country (2-letter ISO code)"
          },
          "metadata": {
            "type": "object",
            "description": "Custom metadata.\n\nIn **test mode** (`sk_test_` key), the reserved key `_simulate` drives a deterministic outcome without calling the identity provider. Value is one of:\n\n- Risk levels: `low` (default), `medium`, `high`, `critical`\n- Scenarios: `synthetic`, `watchlist`, `dob_mismatch`, `no_match`\n- `fail` → terminal `status: failed`\n\nWhen `_simulate` is omitted, the reserved test SSNs still drive the outcome. Ignored in live mode.",
            "additionalProperties": true,
            "example": {
              "external_id": "user_789",
              "source": "web_application"
            }
          }
        },
        "required": [
          "first_name",
          "last_name",
          "date_of_birth",
          "ssn",
          "address_line_1",
          "city",
          "region",
          "postal_code"
        ]
      },
      "UserVerificationResponse": {
        "type": "object",
        "properties": {
          "user_id": {
            "type": "string",
            "description": "ID of the user entity created or verified",
            "format": "uuid",
            "example": "550e8400-e29b-41d4-a716-446655440000"
          },
          "verification_id": {
            "type": "string",
            "description": "Unique verification ID",
            "format": "uuid",
            "example": "660f9511-f30c-52e5-b827-557766551111"
          },
          "reference_id": {
            "type": "string",
            "description": "Your reference ID (if provided in the request)",
            "example": "user_12345"
          },
          "status": {
            "type": "string",
            "description": "Current status of the verification. User verification is synchronous: a successful call returns `completed`. `failed` is reachable only via the test-mode `_simulate: fail` directive. `in_progress` and `pending` never occur for user verification — a temporarily unavailable provider returns a retryable `503` instead.",
            "enum": [
              "completed",
              "failed"
            ],
            "example": "completed"
          },
          "mode": {
            "type": "string",
            "enum": [
              "test",
              "live"
            ],
            "example": "live",
            "description": "Test/live partition the verification was created under. Determined by the API key used."
          },
          "risk": {
            "description": "Risk assessment with level and detailed reasons",
            "allOf": [
              {
                "$ref": "#/components/schemas/UserVerificationRisk"
              }
            ]
          },
          "match": {
            "description": "Field-level match results (only fields included in verification request)",
            "allOf": [
              {
                "$ref": "#/components/schemas/UserVerificationMatch"
              }
            ]
          },
          "synthetic": {
            "description": "Synthetic identity detection results",
            "allOf": [
              {
                "$ref": "#/components/schemas/Synthetic"
              }
            ]
          },
          "watchlist": {
            "description": "Watchlist screening results (sanctions, PEP, adverse media)",
            "allOf": [
              {
                "$ref": "#/components/schemas/Watchlist"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "description": "ISO 8601 timestamp of when the verification was created",
            "format": "date-time",
            "example": "2025-10-24T10:30:00Z"
          },
          "updated_at": {
            "type": "string",
            "description": "ISO 8601 timestamp of when the verification was last updated",
            "format": "date-time",
            "example": "2025-10-24T10:35:00Z"
          }
        },
        "required": [
          "user_id",
          "verification_id",
          "status",
          "mode",
          "risk",
          "match",
          "created_at"
        ]
      },
      "UserVerificationRisk": {
        "type": "object",
        "properties": {
          "level": {
            "type": "string",
            "description": "Overall risk assessment level",
            "enum": [
              "low",
              "medium",
              "high",
              "critical"
            ],
            "example": "low"
          },
          "reasons": {
            "description": "Risk reasons and signals detected during verification",
            "example": [
              "Elevated synthetic-fraud score",
              "Identity could not be verified against authoritative records",
              "SSN does not match authoritative records",
              "Multiple core identity fields did not match authoritative records"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "level",
          "reasons"
        ]
      },
      "UserVerificationWorkflow": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the workflow",
            "example": "KYC Verification"
          },
          "version": {
            "type": "number",
            "description": "Version of the workflow",
            "example": 1
          }
        },
        "required": [
          "name",
          "version"
        ]
      },
      "ValidationError": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "description": "Error origin",
            "example": "jsonschema"
          },
          "code": {
            "type": "string",
            "description": "Machine-readable error code",
            "example": "JSONSCHEMA_VALIDATION_FAILED"
          },
          "path": {
            "type": "string",
            "description": "Dotted path into the request body",
            "example": "jurisdiction_registered_agent.agent_type"
          },
          "message": {
            "type": "string",
            "description": "Human-readable message"
          }
        },
        "required": [
          "source",
          "code",
          "path",
          "message"
        ]
      },
      "ValidationErrorField": {
        "type": "object",
        "properties": {
          "field": {
            "type": "string",
            "example": "name",
            "description": "Field name that failed validation"
          },
          "message": {
            "type": "string",
            "example": "name should not be empty",
            "description": "Validation error message"
          },
          "code": {
            "type": "string",
            "example": "NOT_EMPTY",
            "description": "Error code"
          }
        },
        "required": [
          "field",
          "message"
        ]
      },
      "ValidationProblemDetail": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "example": "https://api.getpalm.com/problems/validation_error"
          },
          "title": {
            "type": "string",
            "example": "Validation Error"
          },
          "status": {
            "type": "number",
            "example": 400
          },
          "detail": {
            "type": "string",
            "example": "Request validation failed"
          },
          "instance": {
            "type": "string",
            "example": "/business/registry/search"
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValidationErrorField"
            }
          }
        },
        "required": [
          "type",
          "title",
          "status",
          "detail",
          "instance",
          "errors"
        ]
      },
      "ValidationResult": {
        "type": "object",
        "properties": {
          "valid": {
            "type": "boolean",
            "description": "True when the payload passed every compliance check"
          },
          "errors": {
            "description": "All compliance errors found, empty when valid",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            }
          },
          "warnings": {
            "description": "Non-blocking observations: a top-level field this jurisdiction does not accept (UNKNOWN_FIELD), an EIN field the business's entity type is never asked (NOT_APPLICABLE), or a declared LLC member count that disagrees with the listed members (MEMBER_COUNT_MISMATCH). None of these rejects the create — the field is ignored or filed as declared — so this is the only place they surface. Empty when there is nothing to report.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValidationWarning"
            }
          }
        },
        "required": [
          "valid",
          "errors",
          "warnings"
        ]
      },
      "ValidationWarning": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "description": "Warning origin",
            "example": "payload"
          },
          "code": {
            "type": "string",
            "description": "Machine-readable warning code",
            "example": "UNKNOWN_FIELD"
          },
          "path": {
            "type": "string",
            "description": "Dotted path into the request body",
            "example": "initial_board_size"
          },
          "message": {
            "type": "string",
            "description": "Human-readable message"
          }
        },
        "required": [
          "source",
          "code",
          "path",
          "message"
        ]
      },
      "WarehousingActivity": {
        "type": "object",
        "properties": {
          "category": {
            "type": "string",
            "enum": [
              "warehousing"
            ],
            "example": "warehousing"
          }
        },
        "required": [
          "category"
        ]
      },
      "Watchlist": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "Overall screening result",
            "enum": [
              "clear",
              "potential_match",
              "confirmed_match",
              "not_screened"
            ],
            "example": "clear"
          },
          "matches": {
            "description": "Specific watchlist hits",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WatchlistMatch"
            }
          }
        },
        "required": [
          "status"
        ]
      },
      "WatchlistMatch": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Category of watchlist match",
            "example": "sanctions",
            "enum": [
              "sanctions",
              "pep",
              "adverse_media"
            ]
          },
          "name": {
            "type": "string",
            "description": "Specific watchlist that produced the match (e.g., ofac_sdn, tauxbe)",
            "example": "ofac_sdn"
          },
          "confidence_score": {
            "type": "number",
            "description": "Match confidence score (0-100)",
            "example": 85
          }
        },
        "required": [
          "type",
          "name"
        ]
      },
      "WholesaleActivity": {
        "type": "object",
        "properties": {
          "category": {
            "type": "string",
            "enum": [
              "wholesale"
            ],
            "example": "wholesale"
          },
          "owns_goods": {
            "type": "boolean",
            "description": "Does the business own or take title to the goods?",
            "example": true
          },
          "receives_commission": {
            "type": "boolean",
            "description": "Does the business receive a commission or fee?",
            "example": false
          },
          "goods": {
            "type": "string",
            "description": "Type of goods sold",
            "example": "Industrial cleaning supplies"
          }
        },
        "required": [
          "category",
          "owns_goods",
          "receives_commission",
          "goods"
        ]
      }
    }
  },
  "webhooks": {
    "user.created": {
      "post": {
        "operationId": "userCreatedEvent",
        "summary": "User created",
        "description": "A person was added to your portfolio. `data.object` is the user as it stands after the change.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "name": "Palm-Signature",
            "in": "header",
            "required": true,
            "description": "HMAC-SHA256 signature of `{timestamp}.{body}` using the endpoint secret, as `t={timestamp},v1={signature}`.",
            "schema": {
              "type": "string",
              "example": "t=1736937000,v1=5f1c0a8d2b6e4c3f9a7d8e1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d"
            }
          },
          {
            "name": "Palm-Webhook-Id",
            "in": "header",
            "required": true,
            "description": "Identifier of the endpoint receiving the delivery.",
            "schema": {
              "type": "string",
              "example": "d8f3a621-9c47-4b58-8e02-5a1d7f4c9b36"
            }
          },
          {
            "name": "Palm-Event-Type",
            "in": "header",
            "required": true,
            "description": "The event type, duplicated from the body for routing.",
            "schema": {
              "type": "string",
              "example": "user.created"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserCreatedEvent"
              },
              "example": {
                "id": "evt_1768473000000_ecec131526e1",
                "object": "event",
                "type": "user.created",
                "created_at": "2026-01-15T10:30:00.000Z",
                "mode": "live",
                "data": {
                  "object": {
                    "id": "123e4567-e89b-12d3-a456-426614174000",
                    "object": "user",
                    "mode": "live",
                    "status": "active",
                    "display_name": "Jordan Rivera",
                    "verification": null,
                    "vault": {
                      "identity.first_name": "Jordan",
                      "identity.last_name": "Rivera"
                    },
                    "metadata": {
                      "external_reference": "cust_48213"
                    },
                    "created_at": "2026-01-15T10:30:00.000Z",
                    "updated_at": "2026-01-15T10:30:00.000Z"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Return any 2xx status to acknowledge receipt. Any other status, a redirect, or no response within 10 seconds counts as a failed delivery and is retried."
          }
        }
      }
    },
    "user.removed": {
      "post": {
        "operationId": "userRemovedEvent",
        "summary": "User removed",
        "description": "A person was removed from your portfolio. `data.object` is the user as it stands after the change. Status is `deleted`.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "name": "Palm-Signature",
            "in": "header",
            "required": true,
            "description": "HMAC-SHA256 signature of `{timestamp}.{body}` using the endpoint secret, as `t={timestamp},v1={signature}`.",
            "schema": {
              "type": "string",
              "example": "t=1736937000,v1=5f1c0a8d2b6e4c3f9a7d8e1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d"
            }
          },
          {
            "name": "Palm-Webhook-Id",
            "in": "header",
            "required": true,
            "description": "Identifier of the endpoint receiving the delivery.",
            "schema": {
              "type": "string",
              "example": "d8f3a621-9c47-4b58-8e02-5a1d7f4c9b36"
            }
          },
          {
            "name": "Palm-Event-Type",
            "in": "header",
            "required": true,
            "description": "The event type, duplicated from the body for routing.",
            "schema": {
              "type": "string",
              "example": "user.removed"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserRemovedEvent"
              },
              "example": {
                "id": "evt_1768473000000_65547cfe82d9",
                "object": "event",
                "type": "user.removed",
                "created_at": "2026-01-15T10:30:00.000Z",
                "mode": "live",
                "data": {
                  "object": {
                    "id": "123e4567-e89b-12d3-a456-426614174000",
                    "object": "user",
                    "mode": "live",
                    "status": "deleted",
                    "display_name": "Jordan Rivera",
                    "verification": null,
                    "vault": {
                      "identity.first_name": "Jordan",
                      "identity.last_name": "Rivera"
                    },
                    "metadata": {
                      "external_reference": "cust_48213"
                    },
                    "created_at": "2026-01-14T10:30:00.000Z",
                    "updated_at": "2026-01-15T10:30:00.000Z"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Return any 2xx status to acknowledge receipt. Any other status, a redirect, or no response within 10 seconds counts as a failed delivery and is retried."
          }
        }
      }
    },
    "user.verification.completed": {
      "post": {
        "operationId": "userVerificationCompletedEvent",
        "summary": "User verification completed",
        "description": "A person verification finished. `data.object` is the verification result: risk level and reasons, per-field match outcomes, synthetic-identity and watchlist findings. `completed` means the check ran, not that it passed; read `risk.level`.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "name": "Palm-Signature",
            "in": "header",
            "required": true,
            "description": "HMAC-SHA256 signature of `{timestamp}.{body}` using the endpoint secret, as `t={timestamp},v1={signature}`.",
            "schema": {
              "type": "string",
              "example": "t=1736937000,v1=5f1c0a8d2b6e4c3f9a7d8e1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d"
            }
          },
          {
            "name": "Palm-Webhook-Id",
            "in": "header",
            "required": true,
            "description": "Identifier of the endpoint receiving the delivery.",
            "schema": {
              "type": "string",
              "example": "d8f3a621-9c47-4b58-8e02-5a1d7f4c9b36"
            }
          },
          {
            "name": "Palm-Event-Type",
            "in": "header",
            "required": true,
            "description": "The event type, duplicated from the body for routing.",
            "schema": {
              "type": "string",
              "example": "user.verification.completed"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserVerificationCompletedEvent"
              },
              "example": {
                "id": "evt_1768473000000_f774ee703579",
                "object": "event",
                "type": "user.verification.completed",
                "created_at": "2026-01-15T10:30:00.000Z",
                "mode": "live",
                "data": {
                  "object": {
                    "verification_id": "550e8400-e29b-41d4-a716-446655440000",
                    "reference_id": "c0a8e7d2-1b4f-4a63-9e58-2d7c6f1a3b94",
                    "user_id": "123e4567-e89b-12d3-a456-426614174000",
                    "status": "completed",
                    "mode": "live",
                    "risk": {
                      "level": "low",
                      "reasons": []
                    },
                    "match": {
                      "first_name": "match",
                      "last_name": "match",
                      "date_of_birth": "match",
                      "ssn": "match",
                      "address_line_1": "match",
                      "city": "match",
                      "region": "match",
                      "postal_code": "match",
                      "phone_number": "match",
                      "email": "not_checked"
                    },
                    "synthetic": {
                      "is_synthetic": false,
                      "confidence_score": 4,
                      "indicators": []
                    },
                    "watchlist": {
                      "status": "clear"
                    },
                    "created_at": "2026-01-15T10:30:00.000Z"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Return any 2xx status to acknowledge receipt. Any other status, a redirect, or no response within 10 seconds counts as a failed delivery and is retried."
          }
        }
      }
    },
    "business.created": {
      "post": {
        "operationId": "businessCreatedEvent",
        "summary": "Business created",
        "description": "A business was added to your portfolio. `data.object` is the business as it stands after the change.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "name": "Palm-Signature",
            "in": "header",
            "required": true,
            "description": "HMAC-SHA256 signature of `{timestamp}.{body}` using the endpoint secret, as `t={timestamp},v1={signature}`.",
            "schema": {
              "type": "string",
              "example": "t=1736937000,v1=5f1c0a8d2b6e4c3f9a7d8e1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d"
            }
          },
          {
            "name": "Palm-Webhook-Id",
            "in": "header",
            "required": true,
            "description": "Identifier of the endpoint receiving the delivery.",
            "schema": {
              "type": "string",
              "example": "d8f3a621-9c47-4b58-8e02-5a1d7f4c9b36"
            }
          },
          {
            "name": "Palm-Event-Type",
            "in": "header",
            "required": true,
            "description": "The event type, duplicated from the body for routing.",
            "schema": {
              "type": "string",
              "example": "business.created"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BusinessCreatedEvent"
              },
              "example": {
                "id": "evt_1768473000000_1fc4ca763f65",
                "object": "event",
                "type": "business.created",
                "created_at": "2026-01-15T10:30:00.000Z",
                "mode": "live",
                "data": {
                  "object": {
                    "id": "987e6543-e21a-45b6-c789-012345678901",
                    "object": "business",
                    "mode": "live",
                    "palm_id": null,
                    "status": "active",
                    "display_name": "Acme Logistics LLC",
                    "ein_fingerprint": null,
                    "registration_type": "domestic",
                    "domestic_business_id": null,
                    "verification": null,
                    "vault": {
                      "business.legal_name": "Acme Logistics LLC",
                      "business.entity_type": "llc",
                      "business.formation_jurisdiction": "US-DE",
                      "business.registration_jurisdiction": "US-DE",
                      "business.formation_date": "2024-03-15",
                      "business.address_line_1": "1209 Orange St",
                      "business.city": "Wilmington",
                      "business.region": "DE",
                      "business.postal_code": "19801",
                      "business.country": "US"
                    },
                    "metadata": {
                      "external_reference": "acct_90417"
                    },
                    "created_at": "2026-01-15T10:30:00.000Z",
                    "updated_at": "2026-01-15T10:30:00.000Z"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Return any 2xx status to acknowledge receipt. Any other status, a redirect, or no response within 10 seconds counts as a failed delivery and is retried."
          }
        }
      }
    },
    "business.removed": {
      "post": {
        "operationId": "businessRemovedEvent",
        "summary": "Business removed",
        "description": "A business was removed from your portfolio. `data.object` is the business as it stands after the change. Status is `deleted`.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "name": "Palm-Signature",
            "in": "header",
            "required": true,
            "description": "HMAC-SHA256 signature of `{timestamp}.{body}` using the endpoint secret, as `t={timestamp},v1={signature}`.",
            "schema": {
              "type": "string",
              "example": "t=1736937000,v1=5f1c0a8d2b6e4c3f9a7d8e1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d"
            }
          },
          {
            "name": "Palm-Webhook-Id",
            "in": "header",
            "required": true,
            "description": "Identifier of the endpoint receiving the delivery.",
            "schema": {
              "type": "string",
              "example": "d8f3a621-9c47-4b58-8e02-5a1d7f4c9b36"
            }
          },
          {
            "name": "Palm-Event-Type",
            "in": "header",
            "required": true,
            "description": "The event type, duplicated from the body for routing.",
            "schema": {
              "type": "string",
              "example": "business.removed"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BusinessRemovedEvent"
              },
              "example": {
                "id": "evt_1768473000000_d3e44d6229d6",
                "object": "event",
                "type": "business.removed",
                "created_at": "2026-01-15T10:30:00.000Z",
                "mode": "live",
                "data": {
                  "object": {
                    "id": "987e6543-e21a-45b6-c789-012345678901",
                    "object": "business",
                    "mode": "live",
                    "palm_id": null,
                    "status": "deleted",
                    "display_name": "Acme Logistics LLC",
                    "ein_fingerprint": null,
                    "registration_type": "domestic",
                    "domestic_business_id": null,
                    "verification": null,
                    "vault": {
                      "business.legal_name": "Acme Logistics LLC",
                      "business.entity_type": "llc",
                      "business.formation_jurisdiction": "US-DE",
                      "business.registration_jurisdiction": "US-DE",
                      "business.formation_date": "2024-03-15",
                      "business.address_line_1": "1209 Orange St",
                      "business.city": "Wilmington",
                      "business.region": "DE",
                      "business.postal_code": "19801",
                      "business.country": "US"
                    },
                    "metadata": {
                      "external_reference": "acct_90417"
                    },
                    "created_at": "2026-01-14T10:30:00.000Z",
                    "updated_at": "2026-01-15T10:30:00.000Z"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Return any 2xx status to acknowledge receipt. Any other status, a redirect, or no response within 10 seconds counts as a failed delivery and is retried."
          }
        }
      }
    },
    "business.verification.completed": {
      "post": {
        "operationId": "businessVerificationCompletedEvent",
        "summary": "Business verification completed",
        "description": "A business verification finished. `data.object` is the verification result: risk level and reasons plus per-field match outcomes against the registry record. `completed` means the check ran, not that it passed; read `risk.level`.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "name": "Palm-Signature",
            "in": "header",
            "required": true,
            "description": "HMAC-SHA256 signature of `{timestamp}.{body}` using the endpoint secret, as `t={timestamp},v1={signature}`.",
            "schema": {
              "type": "string",
              "example": "t=1736937000,v1=5f1c0a8d2b6e4c3f9a7d8e1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d"
            }
          },
          {
            "name": "Palm-Webhook-Id",
            "in": "header",
            "required": true,
            "description": "Identifier of the endpoint receiving the delivery.",
            "schema": {
              "type": "string",
              "example": "d8f3a621-9c47-4b58-8e02-5a1d7f4c9b36"
            }
          },
          {
            "name": "Palm-Event-Type",
            "in": "header",
            "required": true,
            "description": "The event type, duplicated from the body for routing.",
            "schema": {
              "type": "string",
              "example": "business.verification.completed"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BusinessVerificationCompletedEvent"
              },
              "example": {
                "id": "evt_1768473000000_89c000877e7e",
                "object": "event",
                "type": "business.verification.completed",
                "created_at": "2026-01-15T10:30:00.000Z",
                "mode": "live",
                "data": {
                  "object": {
                    "verification_id": "550e8400-e29b-41d4-a716-446655440000",
                    "reference_id": "c0a8e7d2-1b4f-4a63-9e58-2d7c6f1a3b94",
                    "business_id": "987e6543-e21a-45b6-c789-012345678901",
                    "status": "completed",
                    "mode": "live",
                    "risk": {
                      "level": "low",
                      "reasons": []
                    },
                    "match": {
                      "legal_name": "match",
                      "ein": "match",
                      "formation_date": "match",
                      "registration_jurisdiction": "match",
                      "address_line_1": "match",
                      "city": "match",
                      "region": "match",
                      "postal_code": "not_checked"
                    },
                    "created_at": "2026-01-15T10:30:00.000Z"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Return any 2xx status to acknowledge receipt. Any other status, a redirect, or no response within 10 seconds counts as a failed delivery and is retried."
          }
        }
      }
    },
    "business.registration.updated": {
      "post": {
        "operationId": "businessRegistrationUpdatedEvent",
        "summary": "Business registration updated",
        "description": "A monitored business changed on the registry: status, standing, entity type, name, address, agent, associates, filings or identifiers. `data.business` identifies the business and `data.changes` lists each change with a human-readable summary and the previous and current values.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "name": "Palm-Signature",
            "in": "header",
            "required": true,
            "description": "HMAC-SHA256 signature of `{timestamp}.{body}` using the endpoint secret, as `t={timestamp},v1={signature}`.",
            "schema": {
              "type": "string",
              "example": "t=1736937000,v1=5f1c0a8d2b6e4c3f9a7d8e1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d"
            }
          },
          {
            "name": "Palm-Webhook-Id",
            "in": "header",
            "required": true,
            "description": "Identifier of the endpoint receiving the delivery.",
            "schema": {
              "type": "string",
              "example": "d8f3a621-9c47-4b58-8e02-5a1d7f4c9b36"
            }
          },
          {
            "name": "Palm-Event-Type",
            "in": "header",
            "required": true,
            "description": "The event type, duplicated from the body for routing.",
            "schema": {
              "type": "string",
              "example": "business.registration.updated"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BusinessRegistrationUpdatedEvent"
              },
              "example": {
                "id": "evt_1768473000000_7aba06d32fc9",
                "object": "event",
                "type": "business.registration.updated",
                "created_at": "2026-01-15T10:30:00.000Z",
                "mode": "live",
                "data": {
                  "business": {
                    "id": "987e6543-e21a-45b6-c789-012345678901",
                    "palm_id": "4821-9930-1175",
                    "legal_name": "Acme Logistics LLC",
                    "registration_jurisdiction_id": "US-DE"
                  },
                  "changes": [
                    {
                      "attribute": "status",
                      "action": "updated",
                      "summary": "Status changed from active to inactive",
                      "previous_value": "active",
                      "current_value": "inactive"
                    },
                    {
                      "attribute": "standing.registration",
                      "action": "updated",
                      "summary": "Standing changed from compliant to delinquent",
                      "previous_value": "compliant",
                      "current_value": "delinquent"
                    }
                  ]
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Return any 2xx status to acknowledge receipt. Any other status, a redirect, or no response within 10 seconds counts as a failed delivery and is retried."
          }
        }
      }
    },
    "business.filing.due": {
      "post": {
        "operationId": "businessFilingDueEvent",
        "summary": "Business filing due",
        "description": "A compliance filing for a monitored business is coming due. `data.object` describes the filing and its due date; `data.business` identifies the business.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "name": "Palm-Signature",
            "in": "header",
            "required": true,
            "description": "HMAC-SHA256 signature of `{timestamp}.{body}` using the endpoint secret, as `t={timestamp},v1={signature}`.",
            "schema": {
              "type": "string",
              "example": "t=1736937000,v1=5f1c0a8d2b6e4c3f9a7d8e1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d"
            }
          },
          {
            "name": "Palm-Webhook-Id",
            "in": "header",
            "required": true,
            "description": "Identifier of the endpoint receiving the delivery.",
            "schema": {
              "type": "string",
              "example": "d8f3a621-9c47-4b58-8e02-5a1d7f4c9b36"
            }
          },
          {
            "name": "Palm-Event-Type",
            "in": "header",
            "required": true,
            "description": "The event type, duplicated from the body for routing.",
            "schema": {
              "type": "string",
              "example": "business.filing.due"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BusinessFilingDueEvent"
              },
              "example": {
                "id": "evt_1768473000000_ccb760cd4e1e",
                "object": "event",
                "type": "business.filing.due",
                "created_at": "2026-01-15T10:30:00.000Z",
                "mode": "live",
                "data": {
                  "object": {
                    "type": {
                      "id": "annual_report",
                      "name": "Annual Report"
                    },
                    "due_date": "2026-02-14",
                    "frequency": "annual"
                  },
                  "business": {
                    "id": "987e6543-e21a-45b6-c789-012345678901",
                    "palm_id": "4821-9930-1175",
                    "legal_name": "Acme Logistics LLC",
                    "registration_jurisdiction_id": "US-DE"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Return any 2xx status to acknowledge receipt. Any other status, a redirect, or no response within 10 seconds counts as a failed delivery and is retried."
          }
        }
      }
    },
    "business.filing.overdue": {
      "post": {
        "operationId": "businessFilingOverdueEvent",
        "summary": "Business filing overdue",
        "description": "A compliance filing for a monitored business is past due. `data.object` describes the filing and its due date; `data.business` identifies the business.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "name": "Palm-Signature",
            "in": "header",
            "required": true,
            "description": "HMAC-SHA256 signature of `{timestamp}.{body}` using the endpoint secret, as `t={timestamp},v1={signature}`.",
            "schema": {
              "type": "string",
              "example": "t=1736937000,v1=5f1c0a8d2b6e4c3f9a7d8e1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d"
            }
          },
          {
            "name": "Palm-Webhook-Id",
            "in": "header",
            "required": true,
            "description": "Identifier of the endpoint receiving the delivery.",
            "schema": {
              "type": "string",
              "example": "d8f3a621-9c47-4b58-8e02-5a1d7f4c9b36"
            }
          },
          {
            "name": "Palm-Event-Type",
            "in": "header",
            "required": true,
            "description": "The event type, duplicated from the body for routing.",
            "schema": {
              "type": "string",
              "example": "business.filing.overdue"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BusinessFilingOverdueEvent"
              },
              "example": {
                "id": "evt_1768473000000_a8b14b3bc6fe",
                "object": "event",
                "type": "business.filing.overdue",
                "created_at": "2026-01-15T10:30:00.000Z",
                "mode": "live",
                "data": {
                  "object": {
                    "type": {
                      "id": "annual_report",
                      "name": "Annual Report"
                    },
                    "due_date": "2026-01-01",
                    "frequency": "annual"
                  },
                  "business": {
                    "id": "987e6543-e21a-45b6-c789-012345678901",
                    "palm_id": "4821-9930-1175",
                    "legal_name": "Acme Logistics LLC",
                    "registration_jurisdiction_id": "US-DE"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Return any 2xx status to acknowledge receipt. Any other status, a redirect, or no response within 10 seconds counts as a failed delivery and is retried."
          }
        }
      }
    },
    "filing.queued": {
      "post": {
        "operationId": "filingQueuedEvent",
        "summary": "Filing queued",
        "description": "A filing was accepted and is waiting to be prepared. `data.object` is the filing as it stands after the change.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "name": "Palm-Signature",
            "in": "header",
            "required": true,
            "description": "HMAC-SHA256 signature of `{timestamp}.{body}` using the endpoint secret, as `t={timestamp},v1={signature}`.",
            "schema": {
              "type": "string",
              "example": "t=1736937000,v1=5f1c0a8d2b6e4c3f9a7d8e1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d"
            }
          },
          {
            "name": "Palm-Webhook-Id",
            "in": "header",
            "required": true,
            "description": "Identifier of the endpoint receiving the delivery.",
            "schema": {
              "type": "string",
              "example": "d8f3a621-9c47-4b58-8e02-5a1d7f4c9b36"
            }
          },
          {
            "name": "Palm-Event-Type",
            "in": "header",
            "required": true,
            "description": "The event type, duplicated from the body for routing.",
            "schema": {
              "type": "string",
              "example": "filing.queued"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FilingQueuedEvent"
              },
              "example": {
                "id": "evt_1768473000000_0607522d42bc",
                "object": "event",
                "type": "filing.queued",
                "created_at": "2026-01-15T10:30:00.000Z",
                "mode": "live",
                "data": {
                  "object": {
                    "id": "4b2d9e17-8c35-4a6b-9f02-1e7d5a3c8b96",
                    "object": "filing",
                    "mode": "live",
                    "type": "formation",
                    "name": "Acme Logistics LLC",
                    "legal_name": "Acme Logistics LLC",
                    "entity_type": "llc",
                    "jurisdiction": "US-DE",
                    "status": "queued",
                    "fee": {
                      "base": {
                        "amount": 110,
                        "currency": "USD"
                      },
                      "total": {
                        "amount": 110,
                        "currency": "USD"
                      },
                      "items": [
                        {
                          "component_type": "base",
                          "name": "state_fee",
                          "amount": 110,
                          "currency": "USD"
                        }
                      ]
                    },
                    "result": null,
                    "cases": [],
                    "documents": [],
                    "metadata": {
                      "external_reference": "order_31877"
                    },
                    "related_items": [
                      {
                        "id": "8c1f2a7d-3e59-4b60-a1d2-7f94e3c6b015",
                        "object": "filing",
                        "type": "ein",
                        "status": "queued"
                      },
                      {
                        "id": "987e6543-e21a-45b6-c789-012345678901",
                        "object": "registered_agent",
                        "status": "active"
                      }
                    ],
                    "expedited_tier": null,
                    "parent_filing_id": null,
                    "business_id": "987e6543-e21a-45b6-c789-012345678901",
                    "created_at": "2026-01-15T06:30:00.000Z",
                    "updated_at": "2026-01-15T10:30:00.000Z"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Return any 2xx status to acknowledge receipt. Any other status, a redirect, or no response within 10 seconds counts as a failed delivery and is retried."
          }
        }
      }
    },
    "filing.ready_to_file": {
      "post": {
        "operationId": "filingReadyToFileEvent",
        "summary": "Filing ready to file",
        "description": "A filing has everything it needs and is about to be submitted. `data.object` is the filing as it stands after the change.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "name": "Palm-Signature",
            "in": "header",
            "required": true,
            "description": "HMAC-SHA256 signature of `{timestamp}.{body}` using the endpoint secret, as `t={timestamp},v1={signature}`.",
            "schema": {
              "type": "string",
              "example": "t=1736937000,v1=5f1c0a8d2b6e4c3f9a7d8e1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d"
            }
          },
          {
            "name": "Palm-Webhook-Id",
            "in": "header",
            "required": true,
            "description": "Identifier of the endpoint receiving the delivery.",
            "schema": {
              "type": "string",
              "example": "d8f3a621-9c47-4b58-8e02-5a1d7f4c9b36"
            }
          },
          {
            "name": "Palm-Event-Type",
            "in": "header",
            "required": true,
            "description": "The event type, duplicated from the body for routing.",
            "schema": {
              "type": "string",
              "example": "filing.ready_to_file"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FilingReadyToFileEvent"
              },
              "example": {
                "id": "evt_1768473000000_15da40794368",
                "object": "event",
                "type": "filing.ready_to_file",
                "created_at": "2026-01-15T10:30:00.000Z",
                "mode": "live",
                "data": {
                  "object": {
                    "id": "4b2d9e17-8c35-4a6b-9f02-1e7d5a3c8b96",
                    "object": "filing",
                    "mode": "live",
                    "type": "formation",
                    "name": "Acme Logistics LLC",
                    "legal_name": "Acme Logistics LLC",
                    "entity_type": "llc",
                    "jurisdiction": "US-DE",
                    "status": "ready_to_file",
                    "fee": {
                      "base": {
                        "amount": 110,
                        "currency": "USD"
                      },
                      "total": {
                        "amount": 110,
                        "currency": "USD"
                      },
                      "items": [
                        {
                          "component_type": "base",
                          "name": "state_fee",
                          "amount": 110,
                          "currency": "USD"
                        }
                      ]
                    },
                    "result": null,
                    "cases": [],
                    "documents": [],
                    "metadata": {
                      "external_reference": "order_31877"
                    },
                    "related_items": [
                      {
                        "id": "8c1f2a7d-3e59-4b60-a1d2-7f94e3c6b015",
                        "object": "filing",
                        "type": "ein",
                        "status": "queued"
                      },
                      {
                        "id": "987e6543-e21a-45b6-c789-012345678901",
                        "object": "registered_agent",
                        "status": "active"
                      }
                    ],
                    "expedited_tier": null,
                    "parent_filing_id": null,
                    "business_id": "987e6543-e21a-45b6-c789-012345678901",
                    "created_at": "2026-01-15T06:30:00.000Z",
                    "updated_at": "2026-01-15T10:30:00.000Z"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Return any 2xx status to acknowledge receipt. Any other status, a redirect, or no response within 10 seconds counts as a failed delivery and is retried."
          }
        }
      }
    },
    "filing.processing": {
      "post": {
        "operationId": "filingProcessingEvent",
        "summary": "Filing processing",
        "description": "A filing is being prepared or is waiting on the authority. `data.object` is the filing as it stands after the change.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "name": "Palm-Signature",
            "in": "header",
            "required": true,
            "description": "HMAC-SHA256 signature of `{timestamp}.{body}` using the endpoint secret, as `t={timestamp},v1={signature}`.",
            "schema": {
              "type": "string",
              "example": "t=1736937000,v1=5f1c0a8d2b6e4c3f9a7d8e1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d"
            }
          },
          {
            "name": "Palm-Webhook-Id",
            "in": "header",
            "required": true,
            "description": "Identifier of the endpoint receiving the delivery.",
            "schema": {
              "type": "string",
              "example": "d8f3a621-9c47-4b58-8e02-5a1d7f4c9b36"
            }
          },
          {
            "name": "Palm-Event-Type",
            "in": "header",
            "required": true,
            "description": "The event type, duplicated from the body for routing.",
            "schema": {
              "type": "string",
              "example": "filing.processing"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FilingProcessingEvent"
              },
              "example": {
                "id": "evt_1768473000000_e05fd9e1292b",
                "object": "event",
                "type": "filing.processing",
                "created_at": "2026-01-15T10:30:00.000Z",
                "mode": "live",
                "data": {
                  "object": {
                    "id": "4b2d9e17-8c35-4a6b-9f02-1e7d5a3c8b96",
                    "object": "filing",
                    "mode": "live",
                    "type": "formation",
                    "name": "Acme Logistics LLC",
                    "legal_name": "Acme Logistics LLC",
                    "entity_type": "llc",
                    "jurisdiction": "US-DE",
                    "status": "processing",
                    "fee": {
                      "base": {
                        "amount": 110,
                        "currency": "USD"
                      },
                      "total": {
                        "amount": 110,
                        "currency": "USD"
                      },
                      "items": [
                        {
                          "component_type": "base",
                          "name": "state_fee",
                          "amount": 110,
                          "currency": "USD"
                        }
                      ]
                    },
                    "result": null,
                    "cases": [],
                    "documents": [],
                    "metadata": {
                      "external_reference": "order_31877"
                    },
                    "related_items": [
                      {
                        "id": "8c1f2a7d-3e59-4b60-a1d2-7f94e3c6b015",
                        "object": "filing",
                        "type": "ein",
                        "status": "queued"
                      },
                      {
                        "id": "987e6543-e21a-45b6-c789-012345678901",
                        "object": "registered_agent",
                        "status": "active"
                      }
                    ],
                    "expedited_tier": null,
                    "parent_filing_id": null,
                    "business_id": "987e6543-e21a-45b6-c789-012345678901",
                    "created_at": "2026-01-15T06:30:00.000Z",
                    "updated_at": "2026-01-15T10:30:00.000Z"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Return any 2xx status to acknowledge receipt. Any other status, a redirect, or no response within 10 seconds counts as a failed delivery and is retried."
          }
        }
      }
    },
    "filing.filed": {
      "post": {
        "operationId": "filingFiledEvent",
        "summary": "Filing filed",
        "description": "A filing was submitted to the authority and is awaiting its decision. `data.object` is the filing as it stands after the change.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "name": "Palm-Signature",
            "in": "header",
            "required": true,
            "description": "HMAC-SHA256 signature of `{timestamp}.{body}` using the endpoint secret, as `t={timestamp},v1={signature}`.",
            "schema": {
              "type": "string",
              "example": "t=1736937000,v1=5f1c0a8d2b6e4c3f9a7d8e1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d"
            }
          },
          {
            "name": "Palm-Webhook-Id",
            "in": "header",
            "required": true,
            "description": "Identifier of the endpoint receiving the delivery.",
            "schema": {
              "type": "string",
              "example": "d8f3a621-9c47-4b58-8e02-5a1d7f4c9b36"
            }
          },
          {
            "name": "Palm-Event-Type",
            "in": "header",
            "required": true,
            "description": "The event type, duplicated from the body for routing.",
            "schema": {
              "type": "string",
              "example": "filing.filed"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FilingFiledEvent"
              },
              "example": {
                "id": "evt_1768473000000_2a97c089b8b5",
                "object": "event",
                "type": "filing.filed",
                "created_at": "2026-01-15T10:30:00.000Z",
                "mode": "live",
                "data": {
                  "object": {
                    "id": "4b2d9e17-8c35-4a6b-9f02-1e7d5a3c8b96",
                    "object": "filing",
                    "mode": "live",
                    "type": "formation",
                    "name": "Acme Logistics LLC",
                    "legal_name": "Acme Logistics LLC",
                    "entity_type": "llc",
                    "jurisdiction": "US-DE",
                    "status": "filed",
                    "fee": {
                      "base": {
                        "amount": 110,
                        "currency": "USD"
                      },
                      "total": {
                        "amount": 110,
                        "currency": "USD"
                      },
                      "items": [
                        {
                          "component_type": "base",
                          "name": "state_fee",
                          "amount": 110,
                          "currency": "USD"
                        }
                      ]
                    },
                    "result": null,
                    "cases": [],
                    "documents": [],
                    "metadata": {
                      "external_reference": "order_31877"
                    },
                    "related_items": [
                      {
                        "id": "8c1f2a7d-3e59-4b60-a1d2-7f94e3c6b015",
                        "object": "filing",
                        "type": "ein",
                        "status": "queued"
                      },
                      {
                        "id": "987e6543-e21a-45b6-c789-012345678901",
                        "object": "registered_agent",
                        "status": "active"
                      }
                    ],
                    "expedited_tier": null,
                    "parent_filing_id": null,
                    "business_id": "987e6543-e21a-45b6-c789-012345678901",
                    "created_at": "2026-01-15T06:30:00.000Z",
                    "updated_at": "2026-01-15T10:30:00.000Z"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Return any 2xx status to acknowledge receipt. Any other status, a redirect, or no response within 10 seconds counts as a failed delivery and is retried."
          }
        }
      }
    },
    "filing.completed": {
      "post": {
        "operationId": "filingCompletedEvent",
        "summary": "Filing completed",
        "description": "A filing was accepted by the authority. `data.object` is the filing as it stands after the change. `result` carries the outcome and `documents` the artifacts.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "name": "Palm-Signature",
            "in": "header",
            "required": true,
            "description": "HMAC-SHA256 signature of `{timestamp}.{body}` using the endpoint secret, as `t={timestamp},v1={signature}`.",
            "schema": {
              "type": "string",
              "example": "t=1736937000,v1=5f1c0a8d2b6e4c3f9a7d8e1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d"
            }
          },
          {
            "name": "Palm-Webhook-Id",
            "in": "header",
            "required": true,
            "description": "Identifier of the endpoint receiving the delivery.",
            "schema": {
              "type": "string",
              "example": "d8f3a621-9c47-4b58-8e02-5a1d7f4c9b36"
            }
          },
          {
            "name": "Palm-Event-Type",
            "in": "header",
            "required": true,
            "description": "The event type, duplicated from the body for routing.",
            "schema": {
              "type": "string",
              "example": "filing.completed"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FilingCompletedEvent"
              },
              "example": {
                "id": "evt_1768473000000_375b5e2a3f1b",
                "object": "event",
                "type": "filing.completed",
                "created_at": "2026-01-15T10:30:00.000Z",
                "mode": "live",
                "data": {
                  "object": {
                    "id": "4b2d9e17-8c35-4a6b-9f02-1e7d5a3c8b96",
                    "object": "filing",
                    "mode": "live",
                    "type": "formation",
                    "name": "Acme Logistics LLC",
                    "legal_name": "Acme Logistics LLC",
                    "entity_type": "llc",
                    "jurisdiction": "US-DE",
                    "status": "completed",
                    "fee": {
                      "base": {
                        "amount": 110,
                        "currency": "USD"
                      },
                      "total": {
                        "amount": 110,
                        "currency": "USD"
                      },
                      "items": [
                        {
                          "component_type": "base",
                          "name": "state_fee",
                          "amount": 110,
                          "currency": "USD"
                        }
                      ]
                    },
                    "result": {
                      "formation_date": "2026-01-15",
                      "registration_number": "7391548"
                    },
                    "cases": [],
                    "documents": [
                      {
                        "id": "906f369f-a73b-46a2-8184-ccc5c2848abd",
                        "object": "document",
                        "type": "certificate_of_formation",
                        "types": [
                          "certificate_of_formation"
                        ],
                        "uploaded_at": "2026-01-15T10:30:00.000Z"
                      }
                    ],
                    "metadata": {
                      "external_reference": "order_31877"
                    },
                    "related_items": [
                      {
                        "id": "8c1f2a7d-3e59-4b60-a1d2-7f94e3c6b015",
                        "object": "filing",
                        "type": "ein",
                        "status": "queued"
                      },
                      {
                        "id": "987e6543-e21a-45b6-c789-012345678901",
                        "object": "registered_agent",
                        "status": "active"
                      }
                    ],
                    "expedited_tier": null,
                    "parent_filing_id": null,
                    "business_id": "987e6543-e21a-45b6-c789-012345678901",
                    "created_at": "2026-01-15T06:30:00.000Z",
                    "updated_at": "2026-01-15T10:30:00.000Z"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Return any 2xx status to acknowledge receipt. Any other status, a redirect, or no response within 10 seconds counts as a failed delivery and is retried."
          }
        }
      }
    },
    "filing.canceled": {
      "post": {
        "operationId": "filingCanceledEvent",
        "summary": "Filing canceled",
        "description": "A filing was canceled before completion. `data.object` is the filing as it stands after the change. `status_reason` and `canceled_by` say why and by whom.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "name": "Palm-Signature",
            "in": "header",
            "required": true,
            "description": "HMAC-SHA256 signature of `{timestamp}.{body}` using the endpoint secret, as `t={timestamp},v1={signature}`.",
            "schema": {
              "type": "string",
              "example": "t=1736937000,v1=5f1c0a8d2b6e4c3f9a7d8e1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d"
            }
          },
          {
            "name": "Palm-Webhook-Id",
            "in": "header",
            "required": true,
            "description": "Identifier of the endpoint receiving the delivery.",
            "schema": {
              "type": "string",
              "example": "d8f3a621-9c47-4b58-8e02-5a1d7f4c9b36"
            }
          },
          {
            "name": "Palm-Event-Type",
            "in": "header",
            "required": true,
            "description": "The event type, duplicated from the body for routing.",
            "schema": {
              "type": "string",
              "example": "filing.canceled"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FilingCanceledEvent"
              },
              "example": {
                "id": "evt_1768473000000_5c3d3e1efc74",
                "object": "event",
                "type": "filing.canceled",
                "created_at": "2026-01-15T10:30:00.000Z",
                "mode": "live",
                "data": {
                  "object": {
                    "id": "4b2d9e17-8c35-4a6b-9f02-1e7d5a3c8b96",
                    "object": "filing",
                    "mode": "live",
                    "type": "formation",
                    "name": "Acme Logistics LLC",
                    "legal_name": "Acme Logistics LLC",
                    "entity_type": "llc",
                    "jurisdiction": "US-DE",
                    "status": "canceled",
                    "status_reason": "partner_requested",
                    "canceled_by": "partner",
                    "canceled_at": "2026-01-15T10:30:00.000Z",
                    "fee": {
                      "base": {
                        "amount": 110,
                        "currency": "USD"
                      },
                      "total": {
                        "amount": 110,
                        "currency": "USD"
                      },
                      "items": [
                        {
                          "component_type": "base",
                          "name": "state_fee",
                          "amount": 110,
                          "currency": "USD"
                        }
                      ]
                    },
                    "result": null,
                    "cases": [],
                    "documents": [],
                    "metadata": {
                      "external_reference": "order_31877"
                    },
                    "related_items": [
                      {
                        "id": "8c1f2a7d-3e59-4b60-a1d2-7f94e3c6b015",
                        "object": "filing",
                        "type": "ein",
                        "status": "canceled"
                      },
                      {
                        "id": "987e6543-e21a-45b6-c789-012345678901",
                        "object": "registered_agent",
                        "status": "canceled"
                      }
                    ],
                    "expedited_tier": null,
                    "parent_filing_id": null,
                    "business_id": "987e6543-e21a-45b6-c789-012345678901",
                    "created_at": "2026-01-15T06:30:00.000Z",
                    "updated_at": "2026-01-15T10:30:00.000Z"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Return any 2xx status to acknowledge receipt. Any other status, a redirect, or no response within 10 seconds counts as a failed delivery and is retried."
          }
        }
      }
    },
    "document.created": {
      "post": {
        "operationId": "documentCreatedEvent",
        "summary": "Document created",
        "description": "Palm attached a new document to one of your resources, such as a filing artifact or forwarded registered-agent mail. `data.object` is the document; route by its `types`.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "name": "Palm-Signature",
            "in": "header",
            "required": true,
            "description": "HMAC-SHA256 signature of `{timestamp}.{body}` using the endpoint secret, as `t={timestamp},v1={signature}`.",
            "schema": {
              "type": "string",
              "example": "t=1736937000,v1=5f1c0a8d2b6e4c3f9a7d8e1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d"
            }
          },
          {
            "name": "Palm-Webhook-Id",
            "in": "header",
            "required": true,
            "description": "Identifier of the endpoint receiving the delivery.",
            "schema": {
              "type": "string",
              "example": "d8f3a621-9c47-4b58-8e02-5a1d7f4c9b36"
            }
          },
          {
            "name": "Palm-Event-Type",
            "in": "header",
            "required": true,
            "description": "The event type, duplicated from the body for routing.",
            "schema": {
              "type": "string",
              "example": "document.created"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DocumentCreatedEvent"
              },
              "example": {
                "id": "evt_1768473000000_500b22b255d8",
                "object": "event",
                "type": "document.created",
                "created_at": "2026-01-15T10:30:00.000Z",
                "mode": "live",
                "data": {
                  "object": {
                    "id": "906f369f-a73b-46a2-8184-ccc5c2848abd",
                    "object": "document",
                    "mode": "live",
                    "type": "certificate_of_formation",
                    "types": [
                      "certificate_of_formation"
                    ],
                    "status": "verified",
                    "filename": "certificate-of-formation.pdf",
                    "content_type": "application/pdf",
                    "file_size": 48213,
                    "resource_type": "business",
                    "resource_id": "987e6543-e21a-45b6-c789-012345678901",
                    "related_items": [
                      {
                        "id": "4b2d9e17-8c35-4a6b-9f02-1e7d5a3c8b96",
                        "object": "filing"
                      }
                    ],
                    "metadata": {},
                    "upload_date": "2026-01-15T10:30:00.000Z",
                    "created_at": "2026-01-15T10:30:00.000Z",
                    "updated_at": "2026-01-15T10:30:00.000Z"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Return any 2xx status to acknowledge receipt. Any other status, a redirect, or no response within 10 seconds counts as a failed delivery and is retried."
          }
        }
      }
    },
    "document.updated": {
      "post": {
        "operationId": "documentUpdatedEvent",
        "summary": "Document updated",
        "description": "A document already on one of your resources changed: Palm identified new `types` for it, or a document you uploaded is now part of a case you can see. `data.object` is the document; `related_items` names the case and filing.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "name": "Palm-Signature",
            "in": "header",
            "required": true,
            "description": "HMAC-SHA256 signature of `{timestamp}.{body}` using the endpoint secret, as `t={timestamp},v1={signature}`.",
            "schema": {
              "type": "string",
              "example": "t=1736937000,v1=5f1c0a8d2b6e4c3f9a7d8e1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d"
            }
          },
          {
            "name": "Palm-Webhook-Id",
            "in": "header",
            "required": true,
            "description": "Identifier of the endpoint receiving the delivery.",
            "schema": {
              "type": "string",
              "example": "d8f3a621-9c47-4b58-8e02-5a1d7f4c9b36"
            }
          },
          {
            "name": "Palm-Event-Type",
            "in": "header",
            "required": true,
            "description": "The event type, duplicated from the body for routing.",
            "schema": {
              "type": "string",
              "example": "document.updated"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DocumentUpdatedEvent"
              },
              "example": {
                "id": "evt_1768473000000_053436bea148",
                "object": "event",
                "type": "document.updated",
                "created_at": "2026-01-15T10:30:00.000Z",
                "mode": "live",
                "data": {
                  "object": {
                    "id": "906f369f-a73b-46a2-8184-ccc5c2848abd",
                    "object": "document",
                    "mode": "live",
                    "type": "operating_agreement",
                    "types": [
                      "operating_agreement"
                    ],
                    "status": "verified",
                    "filename": "operating-agreement.pdf",
                    "content_type": "application/pdf",
                    "file_size": 48213,
                    "resource_type": "business",
                    "resource_id": "987e6543-e21a-45b6-c789-012345678901",
                    "related_items": [
                      {
                        "id": "2a6f8d31-4e97-4b52-8c1d-9f3a7e5b2c84",
                        "object": "case"
                      },
                      {
                        "id": "4b2d9e17-8c35-4a6b-9f02-1e7d5a3c8b96",
                        "object": "filing"
                      }
                    ],
                    "metadata": {},
                    "upload_date": "2026-01-15T09:30:00.000Z",
                    "created_at": "2026-01-15T09:30:00.000Z",
                    "updated_at": "2026-01-15T10:30:00.000Z"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Return any 2xx status to acknowledge receipt. Any other status, a redirect, or no response within 10 seconds counts as a failed delivery and is retried."
          }
        }
      }
    },
    "registered_agent.activated": {
      "post": {
        "operationId": "registeredAgentActivatedEvent",
        "summary": "Registered agent activated",
        "description": "Palm became the registered agent for a business, either through a formation or a change into Palm completing. `data.object` is the registered agent record; status is `active`.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "name": "Palm-Signature",
            "in": "header",
            "required": true,
            "description": "HMAC-SHA256 signature of `{timestamp}.{body}` using the endpoint secret, as `t={timestamp},v1={signature}`.",
            "schema": {
              "type": "string",
              "example": "t=1736937000,v1=5f1c0a8d2b6e4c3f9a7d8e1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d"
            }
          },
          {
            "name": "Palm-Webhook-Id",
            "in": "header",
            "required": true,
            "description": "Identifier of the endpoint receiving the delivery.",
            "schema": {
              "type": "string",
              "example": "d8f3a621-9c47-4b58-8e02-5a1d7f4c9b36"
            }
          },
          {
            "name": "Palm-Event-Type",
            "in": "header",
            "required": true,
            "description": "The event type, duplicated from the body for routing.",
            "schema": {
              "type": "string",
              "example": "registered_agent.activated"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisteredAgentActivatedEvent"
              },
              "example": {
                "id": "evt_1768473000000_fa239874268e",
                "object": "event",
                "type": "registered_agent.activated",
                "created_at": "2026-01-15T10:30:00.000Z",
                "mode": "live",
                "data": {
                  "object": {
                    "object": "registered_agent",
                    "business_id": "987e6543-e21a-45b6-c789-012345678901",
                    "provider": "palm",
                    "status": "active",
                    "jurisdiction": "DE",
                    "name": "Palm Registered Agent",
                    "address": {
                      "street_line_1": "1209 Orange St",
                      "street_line_2": "Suite 100",
                      "city": "Wilmington",
                      "region": "DE",
                      "postal_code": "19801",
                      "country": "US"
                    },
                    "started_at": "2026-01-15T10:30:00.000Z",
                    "ended_at": null
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Return any 2xx status to acknowledge receipt. Any other status, a redirect, or no response within 10 seconds counts as a failed delivery and is retried."
          }
        }
      }
    },
    "registered_agent.changed": {
      "post": {
        "operationId": "registeredAgentChangedEvent",
        "summary": "Registered agent changed",
        "description": "A change away from Palm completed and Palm is no longer the registered agent for the business. `data.object` is the registered agent record; status is `terminated` and provider is `external`.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "name": "Palm-Signature",
            "in": "header",
            "required": true,
            "description": "HMAC-SHA256 signature of `{timestamp}.{body}` using the endpoint secret, as `t={timestamp},v1={signature}`.",
            "schema": {
              "type": "string",
              "example": "t=1736937000,v1=5f1c0a8d2b6e4c3f9a7d8e1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d"
            }
          },
          {
            "name": "Palm-Webhook-Id",
            "in": "header",
            "required": true,
            "description": "Identifier of the endpoint receiving the delivery.",
            "schema": {
              "type": "string",
              "example": "d8f3a621-9c47-4b58-8e02-5a1d7f4c9b36"
            }
          },
          {
            "name": "Palm-Event-Type",
            "in": "header",
            "required": true,
            "description": "The event type, duplicated from the body for routing.",
            "schema": {
              "type": "string",
              "example": "registered_agent.changed"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisteredAgentChangedEvent"
              },
              "example": {
                "id": "evt_1768473000000_cb79b4581dca",
                "object": "event",
                "type": "registered_agent.changed",
                "created_at": "2026-01-15T10:30:00.000Z",
                "mode": "live",
                "data": {
                  "object": {
                    "object": "registered_agent",
                    "business_id": "987e6543-e21a-45b6-c789-012345678901",
                    "provider": "external",
                    "status": "terminated",
                    "jurisdiction": "DE",
                    "name": null,
                    "address": null,
                    "started_at": "2025-01-15T10:30:00.000Z",
                    "ended_at": "2026-01-15T10:30:00.000Z"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Return any 2xx status to acknowledge receipt. Any other status, a redirect, or no response within 10 seconds counts as a failed delivery and is retried."
          }
        }
      }
    },
    "registered_agent.termination_requested": {
      "post": {
        "operationId": "registeredAgentTerminationRequestedEvent",
        "summary": "Registered agent termination requested",
        "description": "You asked Palm to stop acting as registered agent. Status is `termination_requested`; Palm remains the agent on file and keeps forwarding mail until the termination completes.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "name": "Palm-Signature",
            "in": "header",
            "required": true,
            "description": "HMAC-SHA256 signature of `{timestamp}.{body}` using the endpoint secret, as `t={timestamp},v1={signature}`.",
            "schema": {
              "type": "string",
              "example": "t=1736937000,v1=5f1c0a8d2b6e4c3f9a7d8e1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d"
            }
          },
          {
            "name": "Palm-Webhook-Id",
            "in": "header",
            "required": true,
            "description": "Identifier of the endpoint receiving the delivery.",
            "schema": {
              "type": "string",
              "example": "d8f3a621-9c47-4b58-8e02-5a1d7f4c9b36"
            }
          },
          {
            "name": "Palm-Event-Type",
            "in": "header",
            "required": true,
            "description": "The event type, duplicated from the body for routing.",
            "schema": {
              "type": "string",
              "example": "registered_agent.termination_requested"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisteredAgentTerminationRequestedEvent"
              },
              "example": {
                "id": "evt_1768473000000_f2fec4a917ff",
                "object": "event",
                "type": "registered_agent.termination_requested",
                "created_at": "2026-01-15T10:30:00.000Z",
                "mode": "live",
                "data": {
                  "object": {
                    "object": "registered_agent",
                    "business_id": "987e6543-e21a-45b6-c789-012345678901",
                    "provider": "palm",
                    "status": "termination_requested",
                    "jurisdiction": "DE",
                    "name": "Palm Registered Agent",
                    "address": {
                      "street_line_1": "1209 Orange St",
                      "street_line_2": "Suite 100",
                      "city": "Wilmington",
                      "region": "DE",
                      "postal_code": "19801",
                      "country": "US"
                    },
                    "started_at": "2026-01-15T10:30:00.000Z",
                    "ended_at": null
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Return any 2xx status to acknowledge receipt. Any other status, a redirect, or no response within 10 seconds counts as a failed delivery and is retried."
          }
        }
      }
    },
    "registered_agent.terminated": {
      "post": {
        "operationId": "registeredAgentTerminatedEvent",
        "summary": "Registered agent terminated",
        "description": "The termination completed and Palm is no longer the registered agent on file. Status is `terminated` and `ended_at` carries the close timestamp.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "name": "Palm-Signature",
            "in": "header",
            "required": true,
            "description": "HMAC-SHA256 signature of `{timestamp}.{body}` using the endpoint secret, as `t={timestamp},v1={signature}`.",
            "schema": {
              "type": "string",
              "example": "t=1736937000,v1=5f1c0a8d2b6e4c3f9a7d8e1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d"
            }
          },
          {
            "name": "Palm-Webhook-Id",
            "in": "header",
            "required": true,
            "description": "Identifier of the endpoint receiving the delivery.",
            "schema": {
              "type": "string",
              "example": "d8f3a621-9c47-4b58-8e02-5a1d7f4c9b36"
            }
          },
          {
            "name": "Palm-Event-Type",
            "in": "header",
            "required": true,
            "description": "The event type, duplicated from the body for routing.",
            "schema": {
              "type": "string",
              "example": "registered_agent.terminated"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisteredAgentTerminatedEvent"
              },
              "example": {
                "id": "evt_1768473000000_dbfdd05bf6f9",
                "object": "event",
                "type": "registered_agent.terminated",
                "created_at": "2026-01-15T10:30:00.000Z",
                "mode": "live",
                "data": {
                  "object": {
                    "object": "registered_agent",
                    "business_id": "987e6543-e21a-45b6-c789-012345678901",
                    "provider": "external",
                    "status": "terminated",
                    "jurisdiction": "DE",
                    "name": null,
                    "address": null,
                    "started_at": "2025-01-15T10:30:00.000Z",
                    "ended_at": "2026-01-15T10:30:00.000Z"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Return any 2xx status to acknowledge receipt. Any other status, a redirect, or no response within 10 seconds counts as a failed delivery and is retried."
          }
        }
      }
    },
    "registered_agent.termination_failed": {
      "post": {
        "operationId": "registeredAgentTerminationFailedEvent",
        "summary": "Registered agent termination failed",
        "description": "A termination could not be completed. Status reverts to `active` and `rejection_reason` carries the explanation; submit a new request once the blocker is resolved.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "name": "Palm-Signature",
            "in": "header",
            "required": true,
            "description": "HMAC-SHA256 signature of `{timestamp}.{body}` using the endpoint secret, as `t={timestamp},v1={signature}`.",
            "schema": {
              "type": "string",
              "example": "t=1736937000,v1=5f1c0a8d2b6e4c3f9a7d8e1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d"
            }
          },
          {
            "name": "Palm-Webhook-Id",
            "in": "header",
            "required": true,
            "description": "Identifier of the endpoint receiving the delivery.",
            "schema": {
              "type": "string",
              "example": "d8f3a621-9c47-4b58-8e02-5a1d7f4c9b36"
            }
          },
          {
            "name": "Palm-Event-Type",
            "in": "header",
            "required": true,
            "description": "The event type, duplicated from the body for routing.",
            "schema": {
              "type": "string",
              "example": "registered_agent.termination_failed"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisteredAgentTerminationFailedEvent"
              },
              "example": {
                "id": "evt_1768473000000_57c663db07d1",
                "object": "event",
                "type": "registered_agent.termination_failed",
                "created_at": "2026-01-15T10:30:00.000Z",
                "mode": "live",
                "data": {
                  "object": {
                    "object": "registered_agent",
                    "business_id": "987e6543-e21a-45b6-c789-012345678901",
                    "provider": "palm",
                    "status": "active",
                    "jurisdiction": "DE",
                    "name": "Palm Registered Agent",
                    "address": {
                      "street_line_1": "1209 Orange St",
                      "street_line_2": "Suite 100",
                      "city": "Wilmington",
                      "region": "DE",
                      "postal_code": "19801",
                      "country": "US"
                    },
                    "started_at": "2026-01-15T10:30:00.000Z",
                    "ended_at": null,
                    "rejection_reason": "The state requires a successor registered agent before Palm can resign"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Return any 2xx status to acknowledge receipt. Any other status, a redirect, or no response within 10 seconds counts as a failed delivery and is retried."
          }
        }
      }
    },
    "registered_agent.failed": {
      "post": {
        "operationId": "registeredAgentFailedEvent",
        "summary": "Registered agent failed",
        "description": "Initial registered agent provisioning could not be completed. Status is `failed` and `rejection_reason` carries the explanation.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "name": "Palm-Signature",
            "in": "header",
            "required": true,
            "description": "HMAC-SHA256 signature of `{timestamp}.{body}` using the endpoint secret, as `t={timestamp},v1={signature}`.",
            "schema": {
              "type": "string",
              "example": "t=1736937000,v1=5f1c0a8d2b6e4c3f9a7d8e1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d"
            }
          },
          {
            "name": "Palm-Webhook-Id",
            "in": "header",
            "required": true,
            "description": "Identifier of the endpoint receiving the delivery.",
            "schema": {
              "type": "string",
              "example": "d8f3a621-9c47-4b58-8e02-5a1d7f4c9b36"
            }
          },
          {
            "name": "Palm-Event-Type",
            "in": "header",
            "required": true,
            "description": "The event type, duplicated from the body for routing.",
            "schema": {
              "type": "string",
              "example": "registered_agent.failed"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisteredAgentFailedEvent"
              },
              "example": {
                "id": "evt_1768473000000_1a0137e2ce25",
                "object": "event",
                "type": "registered_agent.failed",
                "created_at": "2026-01-15T10:30:00.000Z",
                "mode": "live",
                "data": {
                  "object": {
                    "object": "registered_agent",
                    "business_id": "987e6543-e21a-45b6-c789-012345678901",
                    "provider": "palm",
                    "status": "failed",
                    "jurisdiction": "DE",
                    "name": "Palm Registered Agent",
                    "address": {
                      "street_line_1": "1209 Orange St",
                      "street_line_2": "Suite 100",
                      "city": "Wilmington",
                      "region": "DE",
                      "postal_code": "19801",
                      "country": "US"
                    },
                    "started_at": "2026-01-15T10:30:00.000Z",
                    "ended_at": null,
                    "rejection_reason": "The state rejected the registered agent designation"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Return any 2xx status to acknowledge receipt. Any other status, a redirect, or no response within 10 seconds counts as a failed delivery and is retried."
          }
        }
      }
    },
    "registered_agent.canceled": {
      "post": {
        "operationId": "registeredAgentCanceledEvent",
        "summary": "Registered agent canceled",
        "description": "A pending registered agent was canceled on request before Palm became the agent, for example because the formation filing was canceled. Status is `canceled` and `rejection_reason` carries the reason.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "name": "Palm-Signature",
            "in": "header",
            "required": true,
            "description": "HMAC-SHA256 signature of `{timestamp}.{body}` using the endpoint secret, as `t={timestamp},v1={signature}`.",
            "schema": {
              "type": "string",
              "example": "t=1736937000,v1=5f1c0a8d2b6e4c3f9a7d8e1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d"
            }
          },
          {
            "name": "Palm-Webhook-Id",
            "in": "header",
            "required": true,
            "description": "Identifier of the endpoint receiving the delivery.",
            "schema": {
              "type": "string",
              "example": "d8f3a621-9c47-4b58-8e02-5a1d7f4c9b36"
            }
          },
          {
            "name": "Palm-Event-Type",
            "in": "header",
            "required": true,
            "description": "The event type, duplicated from the body for routing.",
            "schema": {
              "type": "string",
              "example": "registered_agent.canceled"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisteredAgentCanceledEvent"
              },
              "example": {
                "id": "evt_1768473000000_57658f48ddbf",
                "object": "event",
                "type": "registered_agent.canceled",
                "created_at": "2026-01-15T10:30:00.000Z",
                "mode": "live",
                "data": {
                  "object": {
                    "object": "registered_agent",
                    "business_id": "987e6543-e21a-45b6-c789-012345678901",
                    "provider": "palm",
                    "status": "canceled",
                    "jurisdiction": "DE",
                    "name": "Palm Registered Agent",
                    "address": {
                      "street_line_1": "1209 Orange St",
                      "street_line_2": "Suite 100",
                      "city": "Wilmington",
                      "region": "DE",
                      "postal_code": "19801",
                      "country": "US"
                    },
                    "started_at": "2026-01-15T10:30:00.000Z",
                    "ended_at": null,
                    "rejection_reason": "The formation filing was canceled before the service activated"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Return any 2xx status to acknowledge receipt. Any other status, a redirect, or no response within 10 seconds counts as a failed delivery and is retried."
          }
        }
      }
    },
    "registered_agent.change_failed": {
      "post": {
        "operationId": "registeredAgentChangeFailedEvent",
        "summary": "Registered agent change failed",
        "description": "A requested registered agent change could not be completed. The change never applied, so status returns to what it was before the request and the agent of record is unchanged; `rejection_reason` carries the explanation.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "name": "Palm-Signature",
            "in": "header",
            "required": true,
            "description": "HMAC-SHA256 signature of `{timestamp}.{body}` using the endpoint secret, as `t={timestamp},v1={signature}`.",
            "schema": {
              "type": "string",
              "example": "t=1736937000,v1=5f1c0a8d2b6e4c3f9a7d8e1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d"
            }
          },
          {
            "name": "Palm-Webhook-Id",
            "in": "header",
            "required": true,
            "description": "Identifier of the endpoint receiving the delivery.",
            "schema": {
              "type": "string",
              "example": "d8f3a621-9c47-4b58-8e02-5a1d7f4c9b36"
            }
          },
          {
            "name": "Palm-Event-Type",
            "in": "header",
            "required": true,
            "description": "The event type, duplicated from the body for routing.",
            "schema": {
              "type": "string",
              "example": "registered_agent.change_failed"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisteredAgentChangeFailedEvent"
              },
              "example": {
                "id": "evt_1768473000000_59c1c2708acf",
                "object": "event",
                "type": "registered_agent.change_failed",
                "created_at": "2026-01-15T10:30:00.000Z",
                "mode": "live",
                "data": {
                  "object": {
                    "object": "registered_agent",
                    "business_id": "987e6543-e21a-45b6-c789-012345678901",
                    "provider": "palm",
                    "status": "active",
                    "jurisdiction": "DE",
                    "name": "Palm Registered Agent",
                    "address": {
                      "street_line_1": "1209 Orange St",
                      "street_line_2": "Suite 100",
                      "city": "Wilmington",
                      "region": "DE",
                      "postal_code": "19801",
                      "country": "US"
                    },
                    "started_at": "2026-01-15T10:30:00.000Z",
                    "ended_at": null,
                    "rejection_reason": "The successor registered agent has not consented to the appointment"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Return any 2xx status to acknowledge receipt. Any other status, a redirect, or no response within 10 seconds counts as a failed delivery and is retried."
          }
        }
      }
    },
    "document_request.processing": {
      "post": {
        "operationId": "documentRequestProcessingEvent",
        "summary": "Document request processing",
        "description": "A document request is being fulfilled. `data.object` is the document request as it stands after the change.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "name": "Palm-Signature",
            "in": "header",
            "required": true,
            "description": "HMAC-SHA256 signature of `{timestamp}.{body}` using the endpoint secret, as `t={timestamp},v1={signature}`.",
            "schema": {
              "type": "string",
              "example": "t=1736937000,v1=5f1c0a8d2b6e4c3f9a7d8e1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d"
            }
          },
          {
            "name": "Palm-Webhook-Id",
            "in": "header",
            "required": true,
            "description": "Identifier of the endpoint receiving the delivery.",
            "schema": {
              "type": "string",
              "example": "d8f3a621-9c47-4b58-8e02-5a1d7f4c9b36"
            }
          },
          {
            "name": "Palm-Event-Type",
            "in": "header",
            "required": true,
            "description": "The event type, duplicated from the body for routing.",
            "schema": {
              "type": "string",
              "example": "document_request.processing"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DocumentRequestProcessingEvent"
              },
              "example": {
                "id": "evt_1768473000000_5f04cff52cdb",
                "object": "event",
                "type": "document_request.processing",
                "created_at": "2026-01-15T10:30:00.000Z",
                "mode": "live",
                "data": {
                  "object": {
                    "id": "0f6b2d84-5a31-4c97-8e42-6d1a9f3b7c58",
                    "object": "document_request",
                    "type": "certificate_of_standing",
                    "status": "processing",
                    "business_id": "987e6543-e21a-45b6-c789-012345678901",
                    "palm_id": "4821-9930-1175",
                    "registration_jurisdiction": "US-DE",
                    "registration_number": "7086953",
                    "expedited_tier": null,
                    "documents": [],
                    "mode": "live",
                    "metadata": {},
                    "completed_at": null,
                    "status_reason": null,
                    "canceled_by": null,
                    "canceled_at": null,
                    "created_at": "2026-01-13T10:30:00.000Z",
                    "updated_at": "2026-01-15T10:30:00.000Z"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Return any 2xx status to acknowledge receipt. Any other status, a redirect, or no response within 10 seconds counts as a failed delivery and is retried."
          }
        }
      }
    },
    "document_request.completed": {
      "post": {
        "operationId": "documentRequestCompletedEvent",
        "summary": "Document request completed",
        "description": "A document request was fulfilled. `data.object` is the document request; `documents` lists the delivered files. When the jurisdiction refuses to issue the document, the request completes with what the jurisdiction returned, such as its refusal or fee receipt. Check each document's `types` for `certificate_of_standing` to tell a delivered certificate from a refusal.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "name": "Palm-Signature",
            "in": "header",
            "required": true,
            "description": "HMAC-SHA256 signature of `{timestamp}.{body}` using the endpoint secret, as `t={timestamp},v1={signature}`.",
            "schema": {
              "type": "string",
              "example": "t=1736937000,v1=5f1c0a8d2b6e4c3f9a7d8e1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d"
            }
          },
          {
            "name": "Palm-Webhook-Id",
            "in": "header",
            "required": true,
            "description": "Identifier of the endpoint receiving the delivery.",
            "schema": {
              "type": "string",
              "example": "d8f3a621-9c47-4b58-8e02-5a1d7f4c9b36"
            }
          },
          {
            "name": "Palm-Event-Type",
            "in": "header",
            "required": true,
            "description": "The event type, duplicated from the body for routing.",
            "schema": {
              "type": "string",
              "example": "document_request.completed"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DocumentRequestCompletedEvent"
              },
              "example": {
                "id": "evt_1768473000000_ab97c9e12bed",
                "object": "event",
                "type": "document_request.completed",
                "created_at": "2026-01-15T10:30:00.000Z",
                "mode": "live",
                "data": {
                  "object": {
                    "id": "0f6b2d84-5a31-4c97-8e42-6d1a9f3b7c58",
                    "object": "document_request",
                    "type": "certificate_of_standing",
                    "status": "completed",
                    "business_id": "987e6543-e21a-45b6-c789-012345678901",
                    "palm_id": "4821-9930-1175",
                    "registration_jurisdiction": "US-DE",
                    "registration_number": "7086953",
                    "expedited_tier": null,
                    "documents": [
                      {
                        "id": "906f369f-a73b-46a2-8184-ccc5c2848abd",
                        "object": "document",
                        "types": [
                          "certificate_of_standing"
                        ],
                        "uploaded_at": "2026-01-15T10:25:00.000Z"
                      }
                    ],
                    "mode": "live",
                    "metadata": {},
                    "completed_at": "2026-01-15T10:30:00.000Z",
                    "status_reason": null,
                    "canceled_by": null,
                    "canceled_at": null,
                    "created_at": "2026-01-13T10:30:00.000Z",
                    "updated_at": "2026-01-15T10:30:00.000Z"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Return any 2xx status to acknowledge receipt. Any other status, a redirect, or no response within 10 seconds counts as a failed delivery and is retried."
          }
        }
      }
    },
    "document_request.canceled": {
      "post": {
        "operationId": "documentRequestCanceledEvent",
        "summary": "Document request canceled",
        "description": "A document request was canceled before it completed, by you or by Palm. `data.object` is the document request; `status_reason`, `canceled_by` and `canceled_at` say why, by whom and when. A canceled request is not billed.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "name": "Palm-Signature",
            "in": "header",
            "required": true,
            "description": "HMAC-SHA256 signature of `{timestamp}.{body}` using the endpoint secret, as `t={timestamp},v1={signature}`.",
            "schema": {
              "type": "string",
              "example": "t=1736937000,v1=5f1c0a8d2b6e4c3f9a7d8e1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d"
            }
          },
          {
            "name": "Palm-Webhook-Id",
            "in": "header",
            "required": true,
            "description": "Identifier of the endpoint receiving the delivery.",
            "schema": {
              "type": "string",
              "example": "d8f3a621-9c47-4b58-8e02-5a1d7f4c9b36"
            }
          },
          {
            "name": "Palm-Event-Type",
            "in": "header",
            "required": true,
            "description": "The event type, duplicated from the body for routing.",
            "schema": {
              "type": "string",
              "example": "document_request.canceled"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DocumentRequestCanceledEvent"
              },
              "example": {
                "id": "evt_1768473000000_b2ce873656a7",
                "object": "event",
                "type": "document_request.canceled",
                "created_at": "2026-01-15T10:30:00.000Z",
                "mode": "live",
                "data": {
                  "object": {
                    "id": "0f6b2d84-5a31-4c97-8e42-6d1a9f3b7c58",
                    "object": "document_request",
                    "type": "certificate_of_standing",
                    "status": "canceled",
                    "business_id": "987e6543-e21a-45b6-c789-012345678901",
                    "palm_id": "4821-9930-1175",
                    "registration_jurisdiction": "US-DE",
                    "registration_number": "7086953",
                    "expedited_tier": null,
                    "documents": [],
                    "mode": "live",
                    "metadata": {},
                    "completed_at": null,
                    "status_reason": "The state has no record of a business under this registration number.",
                    "canceled_by": "palm",
                    "canceled_at": "2026-01-15T10:30:00.000Z",
                    "created_at": "2026-01-13T10:30:00.000Z",
                    "updated_at": "2026-01-15T10:30:00.000Z"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Return any 2xx status to acknowledge receipt. Any other status, a redirect, or no response within 10 seconds counts as a failed delivery and is retried."
          }
        }
      }
    },
    "session.completed": {
      "post": {
        "operationId": "sessionCompletedEvent",
        "summary": "Session completed",
        "description": "An onboarding session reached the end of its workflow. `data.object` is the session as it stands after the change.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "name": "Palm-Signature",
            "in": "header",
            "required": true,
            "description": "HMAC-SHA256 signature of `{timestamp}.{body}` using the endpoint secret, as `t={timestamp},v1={signature}`.",
            "schema": {
              "type": "string",
              "example": "t=1736937000,v1=5f1c0a8d2b6e4c3f9a7d8e1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d"
            }
          },
          {
            "name": "Palm-Webhook-Id",
            "in": "header",
            "required": true,
            "description": "Identifier of the endpoint receiving the delivery.",
            "schema": {
              "type": "string",
              "example": "d8f3a621-9c47-4b58-8e02-5a1d7f4c9b36"
            }
          },
          {
            "name": "Palm-Event-Type",
            "in": "header",
            "required": true,
            "description": "The event type, duplicated from the body for routing.",
            "schema": {
              "type": "string",
              "example": "session.completed"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SessionCompletedEvent"
              },
              "example": {
                "id": "evt_1768473000000_2db545eb2ea0",
                "object": "event",
                "type": "session.completed",
                "created_at": "2026-01-15T10:30:00.000Z",
                "mode": "live",
                "data": {
                  "object": {
                    "id": "3f8a1c2e-5b7d-4e91-a0c3-6d2f8b4e91a7",
                    "object": "session",
                    "mode": "live",
                    "workflow_key": "kyc_standard",
                    "workflow_version": 1,
                    "status": "submitted",
                    "current_step": "end",
                    "user_id": "123e4567-e89b-12d3-a456-426614174000",
                    "business_id": null,
                    "verification_id": "550e8400-e29b-41d4-a716-446655440000",
                    "expires_at": "2026-01-22T10:30:00.000Z",
                    "metadata": {
                      "external_reference": "onboarding_48213"
                    },
                    "created_at": "2026-01-15T10:00:00.000Z",
                    "updated_at": "2026-01-15T10:30:00.000Z"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Return any 2xx status to acknowledge receipt. Any other status, a redirect, or no response within 10 seconds counts as a failed delivery and is retried."
          }
        }
      }
    },
    "case.opened": {
      "post": {
        "operationId": "caseOpenedEvent",
        "summary": "Case opened",
        "description": "A case is awaiting your response for the first time. `data.object` is the case; `request.fields` lists what is needed.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "name": "Palm-Signature",
            "in": "header",
            "required": true,
            "description": "HMAC-SHA256 signature of `{timestamp}.{body}` using the endpoint secret, as `t={timestamp},v1={signature}`.",
            "schema": {
              "type": "string",
              "example": "t=1736937000,v1=5f1c0a8d2b6e4c3f9a7d8e1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d"
            }
          },
          {
            "name": "Palm-Webhook-Id",
            "in": "header",
            "required": true,
            "description": "Identifier of the endpoint receiving the delivery.",
            "schema": {
              "type": "string",
              "example": "d8f3a621-9c47-4b58-8e02-5a1d7f4c9b36"
            }
          },
          {
            "name": "Palm-Event-Type",
            "in": "header",
            "required": true,
            "description": "The event type, duplicated from the body for routing.",
            "schema": {
              "type": "string",
              "example": "case.opened"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CaseOpenedEvent"
              },
              "example": {
                "id": "evt_1768473000000_a4ead76d6646",
                "object": "event",
                "type": "case.opened",
                "created_at": "2026-01-15T10:30:00.000Z",
                "mode": "live",
                "data": {
                  "object": {
                    "id": "2a6f8d31-4e97-4b52-8c1d-9f3a7e5b2c84",
                    "object": "case",
                    "mode": "live",
                    "kind": "missing_information",
                    "status": "needs_response",
                    "parent_type": "filing",
                    "parent_id": "4b2d9e17-8c35-4a6b-9f02-1e7d5a3c8b96",
                    "summary": "A signed operating agreement is required to complete this filing",
                    "details": "The state requires a signed operating agreement for this formation. Please upload a copy signed by all members.",
                    "request": {
                      "fields": [
                        {
                          "name": "operating_agreement",
                          "type": "document",
                          "required": true,
                          "description": "Operating agreement signed by all members.",
                          "document_types": [
                            "operating_agreement"
                          ]
                        }
                      ],
                      "documents": [
                        "5e2d8b14-7a3c-4f91-b6e0-9c4d1a7f2e38"
                      ]
                    },
                    "response": null,
                    "metadata": {},
                    "due_at": null,
                    "opened_at": "2026-01-13T10:30:00.000Z",
                    "resolved_at": null,
                    "resolution_reason": null,
                    "created_at": "2026-01-13T10:30:00.000Z",
                    "updated_at": "2026-01-15T10:30:00.000Z"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Return any 2xx status to acknowledge receipt. Any other status, a redirect, or no response within 10 seconds counts as a failed delivery and is retried."
          }
        }
      }
    },
    "case.updated": {
      "post": {
        "operationId": "caseUpdatedEvent",
        "summary": "Case updated",
        "description": "A case you can see changed hands, such as moving to `under_review` after your response, or Palm attached documents for you. `data.object` is the case.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "name": "Palm-Signature",
            "in": "header",
            "required": true,
            "description": "HMAC-SHA256 signature of `{timestamp}.{body}` using the endpoint secret, as `t={timestamp},v1={signature}`.",
            "schema": {
              "type": "string",
              "example": "t=1736937000,v1=5f1c0a8d2b6e4c3f9a7d8e1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d"
            }
          },
          {
            "name": "Palm-Webhook-Id",
            "in": "header",
            "required": true,
            "description": "Identifier of the endpoint receiving the delivery.",
            "schema": {
              "type": "string",
              "example": "d8f3a621-9c47-4b58-8e02-5a1d7f4c9b36"
            }
          },
          {
            "name": "Palm-Event-Type",
            "in": "header",
            "required": true,
            "description": "The event type, duplicated from the body for routing.",
            "schema": {
              "type": "string",
              "example": "case.updated"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CaseUpdatedEvent"
              },
              "example": {
                "id": "evt_1768473000000_accd29a87d21",
                "object": "event",
                "type": "case.updated",
                "created_at": "2026-01-15T10:30:00.000Z",
                "mode": "live",
                "data": {
                  "object": {
                    "id": "2a6f8d31-4e97-4b52-8c1d-9f3a7e5b2c84",
                    "object": "case",
                    "mode": "live",
                    "kind": "missing_information",
                    "status": "under_review",
                    "parent_type": "filing",
                    "parent_id": "4b2d9e17-8c35-4a6b-9f02-1e7d5a3c8b96",
                    "summary": "A signed operating agreement is required to complete this filing",
                    "details": "The state requires a signed operating agreement for this formation. Please upload a copy signed by all members.",
                    "request": {
                      "fields": [
                        {
                          "name": "operating_agreement",
                          "type": "document",
                          "required": true,
                          "description": "Operating agreement signed by all members.",
                          "document_types": [
                            "operating_agreement"
                          ]
                        }
                      ],
                      "documents": [
                        "5e2d8b14-7a3c-4f91-b6e0-9c4d1a7f2e38"
                      ]
                    },
                    "response": {
                      "fields": {
                        "operating_agreement": "a7f3c9e1-2d4b-4a85-8c6f-1e9b3d5a7c20"
                      },
                      "documents": [
                        "a7f3c9e1-2d4b-4a85-8c6f-1e9b3d5a7c20"
                      ]
                    },
                    "metadata": {},
                    "due_at": null,
                    "opened_at": "2026-01-13T10:30:00.000Z",
                    "resolved_at": null,
                    "resolution_reason": null,
                    "created_at": "2026-01-13T10:30:00.000Z",
                    "updated_at": "2026-01-15T10:30:00.000Z"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Return any 2xx status to acknowledge receipt. Any other status, a redirect, or no response within 10 seconds counts as a failed delivery and is retried."
          }
        }
      }
    },
    "case.resolved": {
      "post": {
        "operationId": "caseResolvedEvent",
        "summary": "Case resolved",
        "description": "A case reached a terminal state. `data.object` is the case; `resolution_reason` says how it closed.",
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "parameters": [
          {
            "name": "Palm-Signature",
            "in": "header",
            "required": true,
            "description": "HMAC-SHA256 signature of `{timestamp}.{body}` using the endpoint secret, as `t={timestamp},v1={signature}`.",
            "schema": {
              "type": "string",
              "example": "t=1736937000,v1=5f1c0a8d2b6e4c3f9a7d8e1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d"
            }
          },
          {
            "name": "Palm-Webhook-Id",
            "in": "header",
            "required": true,
            "description": "Identifier of the endpoint receiving the delivery.",
            "schema": {
              "type": "string",
              "example": "d8f3a621-9c47-4b58-8e02-5a1d7f4c9b36"
            }
          },
          {
            "name": "Palm-Event-Type",
            "in": "header",
            "required": true,
            "description": "The event type, duplicated from the body for routing.",
            "schema": {
              "type": "string",
              "example": "case.resolved"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CaseResolvedEvent"
              },
              "example": {
                "id": "evt_1768473000000_a8f9128d12ba",
                "object": "event",
                "type": "case.resolved",
                "created_at": "2026-01-15T10:30:00.000Z",
                "mode": "live",
                "data": {
                  "object": {
                    "id": "2a6f8d31-4e97-4b52-8c1d-9f3a7e5b2c84",
                    "object": "case",
                    "mode": "live",
                    "kind": "missing_information",
                    "status": "resolved",
                    "parent_type": "filing",
                    "parent_id": "4b2d9e17-8c35-4a6b-9f02-1e7d5a3c8b96",
                    "summary": "A signed operating agreement is required to complete this filing",
                    "details": "The state requires a signed operating agreement for this formation. Please upload a copy signed by all members.",
                    "request": {
                      "fields": [
                        {
                          "name": "operating_agreement",
                          "type": "document",
                          "required": true,
                          "description": "Operating agreement signed by all members.",
                          "document_types": [
                            "operating_agreement"
                          ]
                        }
                      ],
                      "documents": [
                        "5e2d8b14-7a3c-4f91-b6e0-9c4d1a7f2e38"
                      ]
                    },
                    "response": {
                      "fields": {
                        "operating_agreement": "a7f3c9e1-2d4b-4a85-8c6f-1e9b3d5a7c20"
                      },
                      "documents": [
                        "a7f3c9e1-2d4b-4a85-8c6f-1e9b3d5a7c20"
                      ]
                    },
                    "metadata": {},
                    "due_at": null,
                    "opened_at": "2026-01-13T10:30:00.000Z",
                    "resolved_at": "2026-01-15T10:30:00.000Z",
                    "resolution_reason": "response_received",
                    "created_at": "2026-01-13T10:30:00.000Z",
                    "updated_at": "2026-01-15T10:30:00.000Z"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Return any 2xx status to acknowledge receipt. Any other status, a redirect, or no response within 10 seconds counts as a failed delivery and is retried."
          }
        }
      }
    }
  }
}
