Lease Compliance Checker API

Overview

The Lease Compliance Checker API analyzes lease agreements and insurance policies to determine if the insurance coverage meets the lease requirements. It extracts key data from both documents and provides a detailed compliance comparison.

Base URL

https://api.insurgrid.com/api

Authentication

All API requests require an API key passed in the request header.

Header
Value

X-API-Key

Your API key

Example:

X-API-Key: ig_live_abc123xyz789

API Key Format

  • Production keys: ig_live_ prefix

  • Test keys: ig_test_ prefix

Endpoints

Analyze Lease & Insurance Compliance

Compares a lease document against an insurance policy to identify coverage gaps.

Request

Content-Type: multipart/form-data

Field
Type
Required
Description

lease

file

Yes

Lease agreement PDF

insurance

file

Yes

Insurance policy/binder PDF

cURL Example

JavaScript Example

Python Example

Response Schema

Success Response (200 OK)

lease Object

Extracted information from the lease document.

Field
Type
Description

propertyAddress

string

Full property address

propertyAddress_page

integer

Page number where found

landlord

string

Landlord or management company name

landlord_page

integer

Page number where found

tenant

string

Tenant name(s)

tenant_page

integer

Page number where found

leaseStart

string

Lease start date (e.g., "Sep 10, 2024")

leaseStart_page

integer

Page number where found

leaseEnd

string

Lease end date (e.g., "Sep 30, 2025")

leaseEnd_page

integer

Page number where found

Example:

insurance Object

Extracted information from the insurance document.

Field
Type
Description

carrier

string

Insurance company name

carrier_page

integer

Page number where found

policyNumber

string

Policy number

policyNumber_page

integer

Page number where found

insured

string

Name(s) of insured parties

insured_page

integer

Page number where found

effectiveDate

string

Policy effective date

effectiveDate_page

integer

Page number where found

expirationDate

string | null

Policy expiration date

expirationDate_page

integer | null

Page number where found

Example:

comparison Array

Array of compliance check results for each coverage type.

Field
Type
Description

field

string

Coverage type being compared

leaseRequired

string

What the lease requires

leaseRequired_page

integer | null

Page in lease document

insuranceCoverage

string

What the policy provides

insuranceCoverage_page

integer | null

Page in insurance document

status

string

Compliance status: pass, fail, or warning

gap

string | null

Description of the gap (if status is fail or warning)

Status Values

Status
Meaning

pass

Insurance meets or exceeds lease requirement

fail

Insurance does not meet lease requirement - action required

warning

Potential issue that needs manual verification

Coverage Fields Checked

Field Name
Description

Renters Insurance Required

Whether any renters insurance is required

General Liability

Personal liability coverage amount

Property Damage

Property damage liability coverage

Workers Compensation

Workers comp (commercial leases)

Umbrella/Excess Liability

Additional liability coverage

Auto Liability

Vehicle liability coverage

Professional Liability

E&O or professional coverage

Additional Insured

Landlord listed as additional insured

Interested Party

Landlord listed as interested party

Certificate Holder

Landlord as certificate holder

Waiver of Subrogation

Waiver of subrogation endorsement

Primary & Non-Contributory

Primary coverage endorsement

Property Address

Address matches leased property

Policy Period

Policy dates cover lease term

Policy Status

Policy is currently active

Example (pass):

Example (with gap):

recommendations Array

Array of actionable recommendations based on the compliance analysis.

Type: string[]

Example:

extractionNotes Array

Additional context about the documents that may affect compliance interpretation.

Type: string[]

Example:

_raw Object

Contains the complete extracted data from both documents including all coverage details. Useful for debugging or building custom comparison logic.

Full Response Example

Error Responses

400 Bad Request

Missing or invalid files.

401 Unauthorized

Invalid or missing API key.

413 Payload Too Large

Files exceed size limit (10MB per file).

422 Unprocessable Entity

Could not extract data from the provided documents.

429 Too Many Requests

Rate limit exceeded.

500 Internal Server Error

Rate Limits

Plan
Requests/minute
Requests/day

Free

5

50

Pro

30

1,000

Enterprise

Custom

Custom

Rate limit headers are included in all responses:

Supported Document Types

Type
Extensions
Notes

PDF

.pdf

Recommended. Supports text and scanned documents via OCR

Image

.jpg, .png

Single page documents only

Changelog

Version
Date
Changes

1.0.0

2024-11

Initial release

Support

  • Documentation: https://docs.insurgrid.com

  • Status Page: https://status.insurgrid.com