Skip to main content
GET
/
api
/
v1
/
external
/
companies
/
{companyId}
/
policies
/
{policyId}
Get Basic Policy
curl --request GET \
  --url https://app.aiinsurance.io/api/v1/external/companies/{companyId}/policies/{policyId} \
  --header 'Authorization: <api-key>'
{
  "id": "550e8400-e29b-41d4-a716-446655440001",
  "companyId": "550e8400-e29b-41d4-a716-446655440000",
  "fieldModelV1Data": {
    "policyNumber": "POL-2026-0001",
    "policyType": "generalLiability",
    "policyTimeZone": "America/New_York",
    "policyStartDate": {
      "year": 2026,
      "month": 1,
      "day": 1,
      "timezone": "America/New_York"
    },
    "policyEndDate": {
      "year": 2027,
      "month": 1,
      "day": 1,
      "timezone": "America/New_York"
    },
    "primaryInsured": "550e8400-e29b-41d4-a716-446655440010",
    "exposures": [
      {
        "id": "550e8400-e29b-41d4-a716-446655440010",
        "exposureName": "Acme Corporation",
        "exposureType": "business"
      }
    ]
  },
  "createdAt": "2026-01-15T10:30:00.000Z",
  "updatedAt": null,
  "createdBy": "google-oauth2|123456789",
  "updatedBy": null
}

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

policyId
string<uuid>
required

Policy identifier

Response

Basic policy detail

A basic policy — flat fieldModelV1Data object with company-configured fields plus a nested exposures array. Returned by GET /policies (list items) and GET /policies/{policyId} (single).

id
string<uuid>
required

Policy identifier.

companyId
string<uuid>
required

Company identifier.

fieldModelV1Data
object
required

Flat policy object. Keys are field referenceIds from the company's FMV1 configuration. The exposures key is a nested array of exposure objects, each of which has an id referencing an existing exposure record plus any company-configured exposure fields. Date-typed fields appear in canonical { day, month, year, timezone } form.

createdAt
string<date-time>
required

ISO-8601 timestamp of policy creation.

updatedAt
string<date-time> | null
required

ISO-8601 timestamp of last update, or null if never updated.

createdBy
string | null
required

User or API key that created the policy.

updatedBy
string | null
required

User or API key of the most recent update, or null if never updated.