curl --request POST \
--url https://app.aiinsurance.io/api/external/companies/{companyId}/smart-tags \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"tagName": "AIIBaseRevenue",
"tagDisplayName": "Base Revenue",
"tagCategories": [
"policy"
]
}
'{
"id": "550e8400-e29b-41d4-a716-446655440003"
}Smart Tags
Create Smart Tag
Creates a new smart tag for the company.
Required fields:
tagName- Tag identifier (must match pattern /^AII[A-Za-z0-9]+$/)tagDisplayName- Display name for the tagtagCategories- Array of categories (e.g., [‘quote’, ‘policy’])
Optional fields:
tagDescription- Description of what the tag doestagData- Custom smart tag configuration (see below)
Custom Smart Tag Types:
When creating a custom smart tag, specify the type field in tagData. Available types include:
Coverage & Premium Types:
coveragePremium- Coverage premium amountcoveragePremiumTax- Coverage premium taxcoveragePremiumPlusTax- Coverage premium plus taxspecificCoverageProperty- Specific coverage propertyspecificCoverageLimit- Specific coverage limit
Policy Types:
policy- Policy-level datapolicyLevelRatingOutput- Policy-level rating outputspolicyList- List of policiespolicyTable- Policy data tablefirstPolicyCoverage- First policy coveragefirstPolicyLimit- First policy limit
Insured Types:
insuredsSchedule- Schedule of insuredsselectedInsured- Selected insured dataprimaryInsured- Primary insured informationprimaryInsuredCoverageRatingOutput- Primary insured coverage rating outputprimaryInsuredCoverageRatingOutputTable- Primary insured coverage rating output tableinsuredCoverageRatingOutputsTable- Insured coverage ratings outputs tablesummedInsuredCoverageRatings- Summed insured coverage ratingsinsuredClaimsTable- Insured claims table
Other Types:
dynamic- Dynamic field lookup (most flexible for custom fields)staticTable- Static table datastateSpecificDisclosures- State-specific disclosure texteventFinancialAmount- Event financial amount
Allowed tagData fields:
type- Smart tag type (required if using custom smart tags)fieldId- Field identifierfieldKey- Field keyfieldLabel- Field labelfieldSection- Field sectionentityType- Entity typeoutputLabel- Output labelcoverageKey- Coverage keyfilters- Filter conditions (array)columns- Column definitions (array)
Required permission: company:update
POST
/
api
/
external
/
companies
/
{companyId}
/
smart-tags
curl --request POST \
--url https://app.aiinsurance.io/api/external/companies/{companyId}/smart-tags \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"tagName": "AIIBaseRevenue",
"tagDisplayName": "Base Revenue",
"tagCategories": [
"policy"
]
}
'{
"id": "550e8400-e29b-41d4-a716-446655440003"
}Authorizations
Body
application/json
Request body for creating a smart tag
Categories the tag can be used in. Determines which contexts the tag is available in:
policy- Adhoc generated forms for a policyquote- Forms generated during quote wizardpolicy-insured- Adhoc generated forms with both a policy and an insuredquote-insured- Forms generated during quote wizard for one insuredinsured- Adhoc generated forms with an insured and related dataevent- Adhoc generated forms with an event and related datapayee- Adhoc generated forms for a payee with payment and invoice data
Available options:
policy, policy-insured, quote, quote-insured, insured, event, payee Example:
["quote", "policy"]
Was this page helpful?
