Scope: paths, request format, and concise examples.
Endpoints
- POST
/api/companies/{company_id}/insureds - POST
/api/companies/{company_id}/insureds/options
Authentication and headers
Create an insured
Creates a new insured record for a company.Request body
name: required.entityType: optional classifier (for example, “dealership”).externalId: optional upstream reference.
Example (curl)
Typical response (shape)
Search insureds (options)
Purpose: fetch a lightweight list of existing insureds (id + name) so backend workflows can check if an incoming name already exists before creating a new record. A common case is reconciling names from loss‑run sheets. This endpoint supports prefix search and server‑side paging using an exclusion list of ids.Request body
filterText: prefix to match on name. Use""to retrieve a top set.excludeIds: ids already retrieved; the server returns the next unseen batch.entityType: optional filter.
Example (curl)
Typical response (shape)
Parameters
company_idis a required path parameter on both endpoints.
