Documentation
Policy Management Integration
Learn how to create and manage insurance policies through the API.
Creating a Policy
To create a new insurance policy, make a POST request to the policies endpoint:
curl -X POST https://api.insurlink.com/v1/business/policies \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Comprehensive Auto Insurance",
"type": "auto",
"description": "Full coverage for vehicles",
"duration": "yearly",
"price": "50000.00",
"coverage": "Comprehensive",
"benefits": ["Accident coverage", "Theft protection"],
"exclusions": ["Intentional damage"]
}'bash
Listing Policies
Retrieve all policies created by your business:
curl https://api.insurlink.com/v1/business/policies \
-H "Authorization: Bearer YOUR_API_KEY"bash
Updating a Policy
Update an existing policy:
curl -X PUT https://api.insurlink.com/v1/business/policies/policy-123 \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Updated Policy Name",
"price": "55000.00"
}'bash
Activating/Deactivating Policies
Control policy availability:
curl -X PATCH https://api.insurlink.com/v1/business/policies/policy-123/status \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"isActive": false
}'bash
Learn More
For complete API reference, see the Policies API documentation.