Skip to main content
GET
/
api
/
v1
/
external
/
companies
/
{companyId}
/
quotes
List Quotes
curl --request GET \
  --url https://app.aiinsurance.io/api/v1/external/companies/{companyId}/quotes \
  --header 'Authorization: <api-key>'
{
  "items": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440001",
      "companyId": "550e8400-e29b-41d4-a716-446655440000",
      "submissionId": "550e8400-e29b-41d4-a716-446655440010",
      "policyId": null,
      "policy": {
        "effectiveDate": "2025-01-01",
        "premium": 15000,
        "quoteType": "New Business",
        "quoteStatus": "in_progress",
        "quoteNumber": "Q-2025-001"
      },
      "exposures": [
        {
          "exposureName": "Acme Corp",
          "employeeCount": 150
        }
      ],
      "createdAt": "2025-01-15T10:30:00.000Z",
      "updatedAt": null,
      "createdBy": "google-oauth2|123456789"
    }
  ],
  "totalCount": 1
}

Authorizations

Authorization
string
header
required

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

Path Parameters

companyId
string<uuid>
required

Company identifier

Query Parameters

page
integer
default:1

Page number (1-based, default 1, page size 50)

Required range: x >= 1
sortBy
enum<string>
default:createdAt

Field to sort by

Available options:
createdAt,
updatedAt
sortDirection
enum<string>
default:desc

Sort direction (default desc)

Available options:
asc,
desc
submissionId
string<uuid>

Filter by submission ID

Response

Paginated list of quotes

items
object[]
required
totalCount
integer
required

Total number of matching quotes across all pages