curl --request POST \
--url https://app.aiinsurance.io/api/v1/external/companies/{companyId}/exposures \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"exposureName": "Acme Corporation",
"exposureType": "business"
}
'{
"id": "550e8400-e29b-41d4-a716-446655440003"
}Exposures
Create Exposure
Creates a new Field Model V1 exposure for the company.
The request body is a flat JSON object where keys are field referenceIds
defined in the company’s field configuration. Use the
Get Configuration endpoint
to discover available fields.
Required fields: exposureName, exposureType (and any fields marked
required in your company’s configuration).
Required permission: company.insured:create
POST
/
api
/
v1
/
external
/
companies
/
{companyId}
/
exposures
curl --request POST \
--url https://app.aiinsurance.io/api/v1/external/companies/{companyId}/exposures \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"exposureName": "Acme Corporation",
"exposureType": "business"
}
'{
"id": "550e8400-e29b-41d4-a716-446655440003"
}Authorizations
API key authentication. Include your API key in the Authorization header.
Path Parameters
Company identifier
Body
application/json
Flat JSON object with field referenceIds as keys
Response
Exposure created successfully
The ID of the created exposure
Was this page helpful?
