curl --request GET \
--url https://app.aiinsurance.io/api/v1/external/companies/{companyId}/policies \
--header 'Authorization: <api-key>'import requests
url = "https://app.aiinsurance.io/api/v1/external/companies/{companyId}/policies"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://app.aiinsurance.io/api/v1/external/companies/{companyId}/policies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.aiinsurance.io/api/v1/external/companies/{companyId}/policies",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.aiinsurance.io/api/v1/external/companies/{companyId}/policies"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.aiinsurance.io/api/v1/external/companies/{companyId}/policies")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.aiinsurance.io/api/v1/external/companies/{companyId}/policies")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"items": [
{
"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
}
],
"totalCount": 1
}List Basic Policies
Returns a paginated list of basic policies for the company.
Filtering:
id— one or more policy UUIDs.policyNumberFilterText— case-insensitive substring match againstpolicyNumberonly. It does not search any other field. Preferfiltersfor anything beyond a policy-number substring search.filters— zero or more structured per-field filters (FieldModelV1ListFilter[]) applied against any FMV1 field or system column (createdAt,updatedAt,createdBy,updatedBy). Combined with AND semantics.
Sorting: sortBy accepts createdAt, updatedAt, or number
(default createdAt). sortDirection accepts asc or desc
(default desc).
Pagination: page size is server-controlled. Pass page as a
1-based page number to iterate.
Required permission: company.policy:read
curl --request GET \
--url https://app.aiinsurance.io/api/v1/external/companies/{companyId}/policies \
--header 'Authorization: <api-key>'import requests
url = "https://app.aiinsurance.io/api/v1/external/companies/{companyId}/policies"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://app.aiinsurance.io/api/v1/external/companies/{companyId}/policies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.aiinsurance.io/api/v1/external/companies/{companyId}/policies",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.aiinsurance.io/api/v1/external/companies/{companyId}/policies"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.aiinsurance.io/api/v1/external/companies/{companyId}/policies")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.aiinsurance.io/api/v1/external/companies/{companyId}/policies")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"items": [
{
"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
}
],
"totalCount": 1
}Authorizations
API key authentication. Include your API key in the Authorization header.
Path Parameters
Company identifier
Query Parameters
Page number (1-based, default 1, page size 50)
x >= 1Field to sort by (defaults to createdAt)
createdAt, updatedAt, number Sort direction (defaults to desc)
asc, desc Filter by one or more policy IDs
Case-insensitive substring match against policyNumber only. No other fields are searched. Prefer filters for matches against other fields.
Structured per-field filters against FMV1 field data or system columns. See the FieldModelV1ListFilter schema for available filter shapes, field types, and operators. Multiple filters are combined with AND semantics.
Structured per-field filter against FMV1 field data or system columns. Each filter names a fieldReferenceId, a fieldType tag, an operator, and a value (plus valueTo for between and systemColumn for systemUser / systemDate). The set of operators and the value shape depend on fieldType. Pass one or more filters in the filters query parameter — multiple filters are combined with AND semantics.
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
- Option 8
- Option 9
- Option 10
- Option 11
- Option 12
- Option 13
- Option 14
- Option 15
- Option 16
- Option 17
- Option 18
Show child attributes
Show child attributes
Was this page helpful?
