Skip to main content
POST
/
api
/
v1
/
external
/
companies
/
{companyId}
/
configuration
/
validate
Validate Configuration Spreadsheet
curl --request POST \
  --url https://app.aiinsurance.io/api/v1/external/companies/{companyId}/configuration/validate \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "spreadsheetId": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgVE2upms",
  "googleOAuthToken": "ya29.a0AfH6SM..."
}
'
{
  "isValid": true,
  "errors": [],
  "spreadsheetName": "Allied Professionals Configuration"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

companyId
string<uuid>
required

Company identifier

Body

application/json

Request body for FMV1 configuration spreadsheet operations

spreadsheetId
string
required

The ID of the target Google Spreadsheet

googleOAuthToken
string
required

A valid Google OAuth2 access token with Google Sheets access permission

Response

Validation completed

Result of validating an FMV1 configuration spreadsheet

isValid
boolean
required

Whether the spreadsheet passed all validation checks

errors
object[]
required

List of validation errors (empty when isValid is true)

spreadsheetName
string
required

The name of the spreadsheet that was validated