curl --request POST \
--url https://app.aiinsurance.io/api/v1/external/companies/{companyId}/policies/bordereau/export \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"spreadsheetId": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgVE2upms",
"googleOAuthToken": "ya29.a0AfH6SMA...",
"periodStart": "2025-01-01T00:00:00.000Z",
"periodEnd": "2025-07-01T00:00:00.000Z"
}
'{
"spreadsheetId": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgVE2upms",
"spreadsheetUrl": "https://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgVE2upms/edit",
"rowCount": 247
}Bordereau
Export Bordereau to Google Sheets
Exports the bordereau report to a Google Sheets spreadsheet. Writes the same transaction-level premium data as the List Bordereau Rows endpoint into a Google Sheets tab.
Provide either spreadsheetId (to write into an existing spreadsheet) or
folderId (to create a new spreadsheet in that Google Drive folder). When using
folderId, the spreadsheet name defaults to
"{companyShortName}-bordereau-export {UTC timestamp}" unless overridden via
spreadsheetName.
The caller must supply a googleOAuthToken with write access to the target
spreadsheet or folder.
Default limit is 50,000 rows (maximum 50,000).
Required permission: company.policy:read
POST
/
api
/
v1
/
external
/
companies
/
{companyId}
/
policies
/
bordereau
/
export
curl --request POST \
--url https://app.aiinsurance.io/api/v1/external/companies/{companyId}/policies/bordereau/export \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"spreadsheetId": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgVE2upms",
"googleOAuthToken": "ya29.a0AfH6SMA...",
"periodStart": "2025-01-01T00:00:00.000Z",
"periodEnd": "2025-07-01T00:00:00.000Z"
}
'{
"spreadsheetId": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgVE2upms",
"spreadsheetUrl": "https://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgVE2upms/edit",
"rowCount": 247
}Authorizations
Body
application/json
Response
Bordereau exported to Google Sheets
Was this page helpful?
