Skip to main content
GET
/
api
/
v1
/
external
/
companies
/
{companyId}
/
quotes
/
configuration
Get Quotes Configuration
curl --request GET \
  --url https://app.aiinsurance.io/api/v1/external/companies/{companyId}/quotes/configuration \
  --header 'Authorization: <api-key>'
{
  "policy": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "effectiveDate": {
        "type": "string",
        "title": "effectiveDate"
      },
      "premium": {
        "type": "number",
        "title": "premium"
      },
      "status": {
        "type": "string",
        "title": "status",
        "oneOf": [
          {
            "const": "active",
            "title": "Active"
          },
          {
            "const": "cancelled",
            "title": "Cancelled"
          }
        ]
      }
    },
    "required": [
      "effectiveDate"
    ]
  },
  "exposure": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "exposureName": {
        "type": "string",
        "title": "exposureName"
      },
      "employeeCount": {
        "type": "number",
        "title": "employeeCount"
      }
    },
    "required": []
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.aiinsurance.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key authentication. Include your API key in the Authorization header.

Path Parameters

companyId
string<uuid>
required

Company identifier

Response

Configuration for quote custom fields

Configuration response for Field Model V1 quotes. Returns JSON Schemas describing the policy-level and exposure-level fields available for creating or updating quotes. Lifecycle fields (quoteType, quoteStatus, quoteNumber, quoteBindErrors, quoteSubmissionId) are omitted.

policy
object
required

JSON Schema (draft 2020-12) describing the valid policy-level fields. Each property corresponds to a field referenceId in the company's configuration.

exposure
object
required

JSON Schema (draft 2020-12) describing the valid exposure-level fields.