Edeal InsurancePartner API OpenAPI 2026-11-29
API version 2026-11-29

Edeal Insurance Partner API

Send truck insurance applications from your app to Edeal Insurance, let drivers upload documents and sign authorizations, and get notified when quotes are ready, a policy is issued — or cancelled.

Base URLhttps://dev.edeal.ai/partner/v1
FormatJSON over HTTPS. Times in UTC, ISO 8601. Dates YYYY-MM-DD.
Modesedi_test_… keys work in the sandbox, edi_live_… keys with real applications.

How it works

  1. Your app creates an application for a driver with what you already know (name, truck, VIN, carrier you lease to). Use your own id as partner_ref.
  2. The driver uploads documents — driver's license, registration, current policy — through the API or on our page. We read them and fill the application.
  3. You open our signing page for the driver (sign_url): consumer reports authorization, loss run letters and permission to share policy status with you. Only the driver can sign.
  4. A licensed Edeal Insurance agent requests quotes from insurers. You get webhooks as the application moves: missing data, quotes ready, policy bound.
  5. After the policy is issued we keep watching it and tell you about cancellation notices and renewals — if the driver allowed it.
Edeal Insurance Inc is the licensed agency (Georgia license 248179, NPN 22443826). Quotes, coverage advice and binding are done by our licensed agents. Your app collects data and shows status; it does not quote or advise on coverage.

Quickstart

Ask Edeal Insurance for a test key. Everything below runs in the sandbox: nothing goes to insurers and no emails are sent.

1. Check the key

curl https://dev.edeal.ai/partner/v1/ping \
  -H "Authorization: Bearer edi_test_YOUR_KEY"

2. Create an application

curl https://dev.edeal.ai/partner/v1/applications \
  -H "Authorization: Bearer edi_test_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: drv-1042-create" \
  -d '{
    "partner_ref": "DRV-1042",
    "line_of_business": "trucking",
    "fields": {
      "owner_first": "John", "owner_last": "Smith", "email": "john@example.com", "phone": "(404) 555-0100",
      "entity_type": "sole_prop", "authority_mode": "leased_on", "lessor_name": "Your Carrier LLC",
      "coverages": ["ntl", "apd", "occ_acc"], "effective_date": "2026-12-15"
    },
    "vehicles": [{"vin": "1FUJGLDR5CLBP8834", "vehicle_type": "tractor", "ownership": "financed"}],
    "drivers":  [{"first_name": "John", "last_name": "Smith", "license_state": "GA", "license_class": "cdl_a"}]
  }'

The response is the application with status, completeness and the list of what is still missing.

3. Upload the driver's license

curl https://dev.edeal.ai/partner/v1/applications/app_123/documents \
  -H "Authorization: Bearer edi_test_YOUR_KEY" \
  -F type=cdl -F file=@license_back.jpg

4. Submit, then get the driver's signing link

curl -X POST https://dev.edeal.ai/partner/v1/applications/app_123/submit -H "Authorization: Bearer edi_test_YOUR_KEY"
curl -X POST https://dev.edeal.ai/partner/v1/applications/app_123/links  -H "Authorization: Bearer edi_test_YOUR_KEY"

5. Move it through the lifecycle (sandbox only) and read events

curl https://dev.edeal.ai/partner/v1/sandbox/applications/app_123/simulate \
  -H "Authorization: Bearer edi_test_YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"event": "quotes.ready"}'

curl "https://dev.edeal.ai/partner/v1/events?application_id=app_123" -H "Authorization: Bearer edi_test_YOUR_KEY"

Keys, modes & limits

KeyModeWhat happens
edi_test_…SandboxApplications are kept separately from real ones, never reach insurers or agents' queues, no emails. Events can be simulated.
edi_live_…LiveReal applications go to licensed agents. Works only after Edeal Insurance enables live mode for your account.
  • Send the key in every request: Authorization: Bearer <key>. Keys are shown once when issued — keep them on your server, never in the mobile app.
  • Test and live data never mix: an id from one mode returns 404 in the other.
  • Rate limit: 120 requests per minute per key → 429 rate_limited.
  • Idempotency: send Idempotency-Key with POST requests. A retry with the same key within 24 hours returns the first result (header Idempotent-Replayed: true).
  • Every response has Edeal-Request-Id — quote it when you contact us. Versioning is in the path (/v1); additive changes (new fields, new events) can appear without a new version.
  • Rotate a key: ask for a new one, deploy it, then ask us to revoke the old one.

Applications

One application = one driver (owner-operator) asking for insurance. Create it with what you know; send the rest later with PATCH.

Endpoint
POST /applicationsCreate. partner_ref must be unique among your open applications (otherwise 409 application_exists with the existing id).
GET /applicationsList, newest first. Filters: status, partner_ref, updated_since; paging: limit, starting_after.
GET /applications/{id}Retrieve.
PATCH /applications/{id}Update. fields merge key by key; an array you send (vehicles, drivers, prior_policies) replaces the list — keep the id of rows you want to keep (veh_…, drv_…, pol_…).
POST /applications/{id}/submitThe driver is done: we check everything needed to quote. Complete → ready_to_quote; otherwise missing_data with the list.

Request body

KeyType
partner_refstringYour id for the driver or application (letters, digits, . : - / # _, up to 80).
line_of_businessstringtrucking — Trucking — for-hire motor carrier; commercial_auto — Commercial auto — business vehicles. Set on create only.
fieldsobjectField key → value. Keys, types and options: field dictionary or GET /meta/fields.
vehicles, drivers, prior_policiesarrayObjects with the keys listed in the dictionary.
Sensitive values are write-only. Date of birth, driver's license number and FEIN are stored encrypted and never returned — responses show {"on_file": true, "last4": "4821"}. We never ask for or store Social Security numbers through the API.

Application object

{
  "id": "app_123", "object": "application", "livemode": false, "partner_ref": "DRV-1042",
  "status": "missing_data", "status_label": "Information missing", "line_of_business": "trucking", "completeness": 72,
  "missing": {"to_quote": ["Drivers: add at least one"], "to_bind": ["Vehicle 1: lienholder / loss payee (financed or leased unit)"]},
  "fields": {"owner_first": "John", "coverages": ["ntl", "apd"], "owner_dob": {"on_file": true}, "...": "..."},
  "vehicles": [{"id": "veh_9", "vin": "1FUJGLDR5CLBP8834", "year": 2012, "make": "FREIGHTLINER"}],
  "drivers": [{"id": "drv_7", "first_name": "John", "dob": {"on_file": true}, "license_no": {"on_file": true, "last4": "4821"}}],
  "prior_policies": [], "documents": [{"id": "doc_5", "type": "cdl", "status": "read"}],
  "consents": {"consumer_reports": {"signed": false, "signed_at": null},
               "share_with_partner": {"granted": false, "granted_at": null, "revoked_at": null}},
  "created_at": "2026-11-29T10:00:00+00:00", "updated_at": "2026-11-29T10:05:00+00:00"
}

Statuses

statusMeaning
in_progressApplication in progress
missing_dataInformation missing
waiting_loss_runsWaiting for loss runs
ready_to_quoteComplete — agent is requesting quotes
quotingQuotes requested from insurers
quotes_readyQuotes sent to the driver
awaiting_signatureDriver chose a quote — signature and payment
boundPolicy issued
declinedInsurers declined
closedClosed

Field dictionary

Generated from the same definition our agents use, so it is always current. Machine-readable: GET /meta/fields. to_quote needed for quotes · to_bind needed to issue the policy · optional · write-only. Some fields apply only for a value of another field (only when).

fields — Applicant & coverages · 21
KeyFieldTypeValues / notes
coverages
to_quote
Coverages to quotemulti
al Auto Liability (primary) — injury/damage to others; FMCSA filing for own authority
ntl Non-Trucking Liability / Bobtail — owner-operator leased on to a carrier, off-dispatch
mtc Motor Truck Cargo — the freight being hauled
apd Physical Damage — the truck / trailer itself (comprehensive & collision)
occ_acc Occupational Accident — work injury for 1099 owner-operators
gl General Liability — business premises & operations
trailer_interchange Trailer Interchange — non-owned trailers under an interchange agreement
umbrella Umbrella / Excess Liability
help Not sure — agent to recommend
Own authority: Auto Liability is required by law; Cargo is usually required by brokers; Physical Damage is required if the truck is financed. Leased on to a carrier: the carrier usually covers primary liability — owner-operators typically buy NTL/Bobtail, Physical Damage and Occupational Accident, as the lease requires. Not sure? Choose “Not sure” and your agent will recommend.
legal_name
to_quote
Named insured (exact legal name)text
As on the driver's license or company formation documents
dba
optional
DBAtext
entity_type
to_quote
Business typeselect
sole_prop Sole proprietor / individual
llc LLC
corp Corporation
partnership Partnership
other Other
usdot
optional
USDOT #text
Company data, power units and current insurance filings load from FMCSA
mc
optional
MC #text
authority_mode
to_quote
Operating authorityselect
own_authority Own authority (own USDOT / MC)
leased_on Leased on to a motor carrier
new_authority New authority — pending
Only for trucking
lessor_name
to_quote
Motor carrier leased totext
Only when: authority_mode = leased_on
NTL / bobtail is written for a specific carrier
lessor_usdot
optional
Motor carrier USDOT #text
Only when: authority_mode = leased_on
years_in_business
to_quote
Years in businessselect
0 New venture — under 1 year
1_2 1–2 years
3_4 3–4 years
5_9 5–9 years
10_plus 10+ years
owner_first
to_quote
Owner first nametext
owner_last
to_quote
Owner last nametext
owner_dob
to_quote write-only
Owner date of birthstring
YYYY-MM-DD
Encrypted. Carriers use it for driving and credit reports
phone
to_quote
Phonetext
email
to_quote
Emailtext
Applicant's own email (not the agency's)
addr_street
to_quote
Owner home / mailing addresstext
Street address, not a P.O. Box
addr_city
to_quote
Citytext
addr_state
to_quote
Stateselect
AK AK — Alaska
AL AL — Alabama
AR AR — Arkansas
AZ AZ — Arizona
CA CA — California
CO CO — Colorado
CT CT — Connecticut
DC DC — District of Columbia
DE DE — Delaware
FL FL — Florida
GA GA — Georgia
HI HI — Hawaii
IA IA — Iowa
ID ID — Idaho
IL IL — Illinois
IN IN — Indiana
KS KS — Kansas
KY KY — Kentucky
LA LA — Louisiana
MA MA — Massachusetts
MD MD — Maryland
ME ME — Maine
MI MI — Michigan
MN MN — Minnesota
MO MO — Missouri
MS MS — Mississippi
MT MT — Montana
NC NC — North Carolina
ND ND — North Dakota
NE NE — Nebraska
NH NH — New Hampshire
NJ NJ — New Jersey
NM NM — New Mexico
NV NV — Nevada
NY NY — New York
OH OH — Ohio
OK OK — Oklahoma
OR OR — Oregon
PA PA — Pennsylvania
RI RI — Rhode Island
SC SC — South Carolina
SD SD — South Dakota
TN TN — Tennessee
TX TX — Texas
UT UT — Utah
VA VA — Virginia
VT VT — Vermont
WA WA — Washington
WI WI — Wisconsin
WV WV — West Virginia
WY WY — Wyoming
addr_zip
to_quote
ZIPtext
garaging_zip
to_quote
Garaging ZIPtext
All units must be garaged in the policy state
fein
optional write-only
FEINstring
string
Encrypted. Required by Progressive Small Fleet and at binding
fields — Operations · 16
KeyFieldTypeValues / notes
radius
to_quote
Radius of operationselect
0_50 Local — up to 50 miles
51_200 Intermediate — 51–200 miles
201_500 Regional — 201–500 miles
500_plus Long haul — over 500 miles / unlimited
interstate
to_quote
Crosses state lines (interstate)select
yes Yes
no No
states
to_quote
States of operationmulti
AK AK — Alaska
AL AL — Alabama
AR AR — Arkansas
AZ AZ — Arizona
CA CA — California
CO CO — Colorado
CT CT — Connecticut
DC DC — District of Columbia
DE DE — Delaware
FL FL — Florida
GA GA — Georgia
HI HI — Hawaii
IA IA — Iowa
ID ID — Idaho
IL IL — Illinois
IN IN — Indiana
KS KS — Kansas
KY KY — Kentucky
LA LA — Louisiana
MA MA — Massachusetts
MD MD — Maryland
ME ME — Maine
MI MI — Michigan
MN MN — Minnesota
MO MO — Missouri
MS MS — Mississippi
MT MT — Montana
NC NC — North Carolina
ND ND — North Dakota
NE NE — Nebraska
NH NH — New Hampshire
NJ NJ — New Jersey
NM NM — New Mexico
NV NV — Nevada
NY NY — New York
OH OH — Ohio
OK OK — Oklahoma
OR OR — Oregon
PA PA — Pennsylvania
RI RI — Rhode Island
SC SC — South Carolina
SD SD — South Dakota
TN TN — Tennessee
TX TX — Texas
UT UT — Utah
VA VA — Virginia
VT VT — Vermont
WA WA — Washington
WI WI — Wisconsin
WV WV — West Virginia
WY WY — Wyoming
cargo_types
to_quote
Commodities hauledmulti
dry_van Dry van / general freight
reefer Refrigerated
flatbed Flatbed / step deck
building_materials Building materials
machinery Machinery & equipment
auto_hauler Auto hauler
intermodal Intermodal containers
tanker_nonhaz Tanker — non-hazardous
dump Dump — sand, gravel, bulk
livestock Livestock
household_goods Household goods
hotshot Expedited / hot shot
high_value High-value / electronics
food_bev Food & beverages
hazmat Hazardous materials
other Other
Only for trucking
hazmat_placarded
to_quote
Placarded hazmat loadsselect
yes Yes
no No
Only when: cargo_types = hazmat
Progressive writes for-hire hazmat haulers for Physical Damage only
vehicle_use
to_quote
Vehicle usemulti
service Service calls
local_delivery Local delivery
sales Sales
passenger Transporting people
own_goods Hauling own goods / equipment
other Other
Only for commercial_auto
description
to_quote
Description of operationstextarea
In the applicant's words: what they haul, for whom, typical lanes. Vague descriptions are the most common reason for declines
driver_type
to_quote
Drivers areselect
owner_only Owner-operator only
w2 Employees (W-2)
1099 Contractors (1099)
mix Employees and contractors
hire_lease_trucks
to_quote
Hires or leases trucks to run under own authorityselect
yes Yes
no No
Only for trucking
Progressive does not accept such risks
shares_filing
to_quote
Shares vehicles or a filing with a related companyselect
yes Yes
no No
Only for trucking
annual_miles
to_quote
Annual miles per unitnumber
Progressive rates on expected annual mileage
revenue_range
optional
Annual revenueselect
lt_100k Under $100K
100_250k $100K–250K
250_500k $250K–500K
500k_1m $500K–1M
1_5m $1M–5M
gt_5m Over $5M
employees
optional
Employees & contractors (excl. owners)number
subcontractors
optional
Uses subhaulersselect
no No
yes_insured Yes — they carry own insurance
yes_unknown Yes — insurance unknown
telematics
optional
ELD / telematicsmulti
samsara Samsara
motive Motive
geotab Geotab
other Other
none None
dash_cam
optional
Dash camsselect
all All units
some Some units
none None
Progressive Snapshot Pro + dashcam discounts
fields — Prior insurance & loss runs · 6
KeyFieldTypeValues / notes
currently_insured
to_quote
Currently insuredselect
yes Yes
lapsed No — coverage lapsed
never No — new venture, never insured
coverage_gap
to_quote
Gap in coverage in the last 3 yearsselect
none No gaps
lt_30 Under 30 days
gte_30 30 days or more
renewal_offered
optional
Current carrier is renewingselect
yes Yes
non_renewed No — non-renewed
unknown Not known yet
Only when: currently_insured = yes
loss_history
optional
Losses in the last 3–5 yearstextarea
Filled from loss runs: date, what happened, amount paid. Leave empty if none
has_gl_bop
optional
Has GL or BOPselect
no No
gl GL
bop BOP
loa_title
optional
Your title in the companytext
Only when: entity_type = llc, corp, partnership, other
Owner, President, Member… — printed under your signature on the loss run authorization
fields — Limits & deductibles · 14
KeyFieldTypeValues / notes
al_limit
to_quote
Auto liability limitselect
750k $750,000 — federal minimum, general freight
1m $1,000,000 — most brokers require
2m $2,000,000
5m $5,000,000 — hazmat
unknown Not sure
Only when: coverages = al
ca_limit
to_quote
Liability limitselect
state_min State minimum
100_300_100 100/300/100
500k_csl $500,000 CSL
1m_csl $1,000,000 CSL
Only for commercial_auto
cargo_limit
to_quote
Cargo limitselect
50k $50,000
100k $100,000
150k $150,000
250k $250,000
unknown Not sure
Only when: coverages = mtc
apd_deductible
to_quote
Physical damage deductibleselect
1000 $1,000
2500 $2,500
5000 $5,000
unknown Not sure
Only when: coverages = apd
ntl_limit
to_quote
NTL limitselect
300k $300,000
500k $500,000
750k $750,000
1m $1,000,000
Only when: coverages = ntl
gl_limit
to_quote
GL limitselect
1m_2m $1M per occurrence / $2M aggregate
2m_4m $2M / $4M
Only when: coverages = gl
occ_limit
to_quote
Occupational accident limitselect
500k $500,000
1m $1,000,000
Only when: coverages = occ_acc
um_limit
optional
Uninsured / underinsured motoristselect
match Same as liability
state_min State minimum
reject Reject (signed rejection form)
Only when: coverages = al
medpay
optional
Medical paymentsselect
0 None
1000 $1,000
5000 $5,000
10000 $10,000
covered_symbol
optional
Covered autosselect
7 Scheduled autos only (7)
1 Any auto (1)
7_8 Scheduled + hired (7, 8)
7_8_9 Scheduled + hired + non-owned (7, 8, 9)
effective_date
to_quote
Requested effective datedate
YYYY-MM-DD
payment_pref
optional
Payment planselect
full Paid in full (discount)
monthly Monthly
quarterly Quarterly
both Show both
additional_insureds
optional
Additional insureds / waivers of subrogationtextarea
Who must be listed and under which contract (brokers, shippers, lessors)
required_by
optional
Insurance required bymulti
fmcsa FMCSA / own authority
brokers Freight brokers / shippers
carrier Motor carrier leased to
lender Lender / lessor
contract Customer contract
vehicles[] · 12
KeyFieldTypeValues / notes
vin
to_quote
VINtext
17 characters. Year, make and body type load from NHTSA
year
to_quote
Yearnumber
make
to_quote
Maketext
model
optional
Modeltext
vehicle_type
to_quote
Body typeselect
tractor Tractor
box_truck Straight / box truck
cargo_van Cargo van
pickup Pickup
dump_truck Dump truck
tow_truck Tow truck
trailer_dry Trailer — dry van
trailer_reefer Trailer — reefer
trailer_flatbed Trailer — flatbed
trailer_auto Trailer — auto hauler
passenger_van Passenger van
ppv Private passenger
other Other
gvwr_class
to_quote
Gross vehicle weightselect
lte_10k Up to 10,000 lbs
10k_26k 10,001–26,000 lbs
gt_26k Over 26,000 lbs
stated_value
optional
Stated value, $number
Required for physical damage
ownership
to_quote
Ownershipselect
owned Owned outright
financed Financed
leased Leased
rented Rented
lienholder
optional
Lienholder / loss payee — name & addresstext
Required for financed or leased units
garaging_zip
optional
Garaging ZIP if differenttext
cost_new
optional
Cost new, $number
attached_equipment
optional
Permanently attached equipmentselect
none None
liftgate Liftgate
crane Crane / boom
reefer_unit Refrigeration unit
other Other
drivers[] · 13
KeyFieldTypeValues / notes
first_name
to_quote
First nametext
last_name
to_quote
Last nametext
dob
to_quote write-only
Date of birthstring
YYYY-MM-DD
license_state
to_quote
License stateselect
AK AK — Alaska
AL AL — Alabama
AR AR — Arkansas
AZ AZ — Arizona
CA CA — California
CO CO — Colorado
CT CT — Connecticut
DC DC — District of Columbia
DE DE — Delaware
FL FL — Florida
GA GA — Georgia
HI HI — Hawaii
IA IA — Iowa
ID ID — Idaho
IL IL — Illinois
IN IN — Indiana
KS KS — Kansas
KY KY — Kentucky
LA LA — Louisiana
MA MA — Massachusetts
MD MD — Maryland
ME ME — Maine
MI MI — Michigan
MN MN — Minnesota
MO MO — Missouri
MS MS — Mississippi
MT MT — Montana
NC NC — North Carolina
ND ND — North Dakota
NE NE — Nebraska
NH NH — New Hampshire
NJ NJ — New Jersey
NM NM — New Mexico
NV NV — Nevada
NY NY — New York
OH OH — Ohio
OK OK — Oklahoma
OR OR — Oregon
PA PA — Pennsylvania
RI RI — Rhode Island
SC SC — South Carolina
SD SD — South Dakota
TN TN — Tennessee
TX TX — Texas
UT UT — Utah
VA VA — Virginia
VT VT — Vermont
WA WA — Washington
WI WI — Wisconsin
WV WV — West Virginia
WY WY — Wyoming
license_class
to_quote
License typeselect
cdl_a CDL Class A
cdl_b CDL Class B
cdl_c CDL Class C
regular Regular license
foreign Foreign license
years_cdl
to_quote
Commercial driving experienceselect
lt_1 Under 1 year
1_2 1–2 years
2_3 2–3 years
3_5 3–5 years
5_10 5–10 years
10_plus 10+ years
accidents_3y
to_quote
Accidents in the last 3 yearsselect
0 None
1 1
2 2
3_plus 3 or more
violations_3y
to_quote
Moving violations in the last 3 yearsselect
0 None
1 1
2 2
3_plus 3 or more
major_violations
to_quote
Major violations (DUI, reckless, suspension)select
none None
yes_3y Yes — within 3 years
yes_older Yes — over 3 years ago
incidents
optional
Accident & violation details (month/year, what happened)textarea
Accidents fill from loss runs. Ask for every ticket before the agent orders the MVR — undisclosed items change the price
license_no
to_bind write-only
License #string
string
Encrypted. Needed for the MVR at binding
role
optional
Relationshipselect
owner Owner
employee Employee
contractor Contractor
family Family member
date_hired
optional
Date hireddate
YYYY-MM-DD
prior_policies[] · 7
KeyFieldTypeValues / notes
carrier_name
to_quote
Carriertext
policy_number
optional
Policy #text
line
optional
Coverageselect
trucking Trucking / auto liability
cargo Cargo
physical_damage Physical damage
ntl NTL / bobtail
commercial_auto Commercial auto
gl General liability
occ_acc Occupational accident
other Other
period_from
optional
Effectivedate
YYYY-MM-DD
period_to
to_quote
Expirationdate
YYYY-MM-DD
premium
optional
Annual premium, $number
want_lr
optional
Request loss runsselect
yes Yes
no No

Documents

POST /applications/{id}/documents as multipart/form-data: type and one or more file (PDF, JPG, PNG, WEBP, HEIC; up to 25 MB each, 10 per request, 60 per application). We read them automatically — the driver's license from the barcode on the back, the rest with document recognition, VINs with NHTSA, USDOT with FMCSA — and fill the application. Status: queued → reading → read or not_read (a person will look at it). Fields filled from documents appear in the application within a minute.

Recommended: one driver's license per driver (back side with the barcode), one registration per truck and trailer, the current policy declarations page; for leased owner-operators — the lease agreement with the carrier.
typeDocumentNeeded
cdlDriver's license (CDL)to quoteBack side with the barcode (both sides is best): name, DOB, address, license #, class, expiration
registrationVehicle registration / cab cardto quoteVIN, year, make, registered owner
vin_photoVIN plate phototo quoteIf there is no registration
dec_pageCurrent policy — declarations pageto quoteCarrier, policy #, dates, limits, premium, listed units and drivers. Proof of prior insurance for Progressive
coiCertificate of insurance (COI)to quoteIf there is no dec page
loss_runsLoss runsto quote3–5 years, dated within 90 days. Needed by Progressive Small Fleet (10+ units) and wholesale / E&S markets
leaseLease agreement with motor carrierto bindLeased-on owner-operator: carrier name and USDOT. Required for NTL
lienVehicle loan / lease (lienholder)to bindBank or lessor — loss payee
einIRS EIN letter (CP575 / 147C)to bindLegal name and EIN (stored encrypted)
mvrMotor vehicle record (MVR)if availableIf the driver has one: violations and accidents with dates
authorityFMCSA authority letter (MC / USDOT)if availableIf the USDOT is new
companyCompany formation documentsif availableArticles / certificate
titleVehicle title / bill of saleif availableValue and owner
contractsCustomer / broker contractsto bindFor additional insureds and waivers of subrogation
otherOtherif available

Policies, quotes, loss runs

EndpointReturns
GET /applications/{id}/policiesPolicies we issued or monitor: carrier, policy_number, coverages, status (active, cancel_pending, cancelled), effective_date, expiration_date, cancel_effective_date.
GET /applications/{id}/quotesMarket, coverages, status and premium for each quote request.
GET /applications/{id}/loss-runsEach prior insurer: status, when requested, whether the report arrived. Reports themselves stay with Edeal Insurance.

All three return 403 consent_required until the driver grants share permission.

Webhooks

We send a POST with a JSON event to your HTTPS endpoint. Answer with any 2xx within 10 seconds; do the work asynchronously. Not answered or not 2xx → retries after 1 min, 5 min, 30 min, 2 h, 6 h, 12 h, 24 h (8 attempts in total). Events can arrive out of order or more than once — use id to deduplicate and GET /applications/{id} for the current state. Prefer polling? GET /events returns the same events.

  • Sandbox: manage endpoints yourself — POST /webhook-endpoints with {"url": "https://…", "events": ["*"]}; the response contains the signing secret once. POST /webhook-endpoints/{id}/test queues a test event.
  • Live: send us the URL; we register it and pass you the secret.
  • Endpoints must be public https:// on port 443 or 8443; redirects are not followed. Up to 5 per mode.

Payload

POST /your/webhook   Content-Type: application/json
Edeal-Signature: t=1764410400,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd
Edeal-Event-Id: evt_3f1c…   Edeal-Event-Type: policy.cancel_pending

{
  "id": "evt_3f1c…", "object": "event", "type": "policy.cancel_pending", "api_version": "2026-11-29", "livemode": false,
  "created": "2026-11-29T10:00:00+00:00",
  "data": {
    "application": {"id": "app_123", "partner_ref": "DRV-1042", "status": "bound", "...": "..."},
    "policies": [{"id": "pol_44", "carrier": "Progressive", "coverages": ["ntl", "apd"], "status": "cancel_pending",
                  "effective_date": "2026-12-15", "expiration_date": "2027-12-15", "cancel_effective_date": "2027-03-10"}]
  }
}

Without the driver's share permission, events about policies, quotes and loss runs carry "consent_required": true instead of details.

Verify signatures

Edeal-Signature = t (Unix time) and v1 = HMAC-SHA256 of "{t}.{raw request body}" with your endpoint secret, hex. Compare in constant time and reject events older than 5 minutes.

# Python
import hmac, hashlib, time

def verify(raw_body: bytes, header: str, secret: str, tolerance=300) -> bool:
    parts = dict(p.split("=", 1) for p in header.split(","))
    t, sig = int(parts["t"]), parts["v1"]
    expected = hmac.new(secret.encode(), f"{t}.".encode() + raw_body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, sig) and abs(time.time() - t) <= tolerance
// Node.js (Express: use express.raw({type: "application/json"}) for this route)
const crypto = require("crypto");
function verify(rawBody, header, secret, tolerance = 300) {
  const p = Object.fromEntries(header.split(",").map(s => s.split("=")));
  const expected = crypto.createHmac("sha256", secret).update(`${p.t}.`).update(rawBody).digest("hex");
  const ok = expected.length === p.v1.length && crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(p.v1));
  return ok && Math.abs(Date.now() / 1000 - Number(p.t)) <= tolerance;
}

Event types

typeWhen
application.createdApplication created through the API
application.status_changedAny stage change (data.previous_status → data.application.status)
application.missing_dataSubmitted, but something required to quote is missing (data.application.missing)
application.ready_to_quoteApplication is complete; a licensed agent is requesting quotes
application.declinedInsurers declined the risk
application.closedApplication closed
consent.signedDriver signed the consumer reports authorization (MVR, claims history, credit)
consent.share_grantedDriver allowed Edeal Insurance to share status and policies with you
consent.share_revokedDriver withdrew that permission — stop showing policy data
loss_runs.receivedA prior insurer sent the driver's loss run report
quotes.readyQuotes were sent to the driver
policy.boundA policy was issued
policy.cancel_pendingThe insurer issued a notice of cancellation (data.policy.cancel_effective_date)
policy.cancelledThe policy was cancelled
policy.renewal_dueThe policy expires within 30 days

Sandbox

Test keys use the same endpoints and validation as live. Differences: nothing reaches insurers, agents' queues or the driver's email; signing pages show a SANDBOX banner; and you can move an application through the lifecycle yourself:

POST /sandbox/applications/{id}/simulate   {"event": "policy.bound"}
eventWhat it does
application.missing_data, application.ready_to_quote, application.declined, application.closedSets that status (and sends application.status_changed).
consent.signed, consent.share_granted, consent.share_revokedAs if the driver signed or changed the share permission.
quotes.readyCreates sample quotes from the markets that fit the selected coverages and sets quotes_ready.
policy.boundCreates a sample one-year policy for the selected coverages and sets bound.
policy.cancel_pending, policy.cancelled, policy.renewal_dueChanges that policy (run policy.bound first).
loss_runs.receivedSends the event.

A good end-to-end test: create → upload documents → submit → consent.signed → consent.share_granted → quotes.ready → policy.bound → policy.cancel_pending → policy.cancelled.

Errors

{"error": {"type": "validation_error", "code": "invalid_option", "field": "fields.authority_mode",
           "message": "fields.authority_mode: “leased” is not allowed. Allowed: ['leased_on', 'new_authority', 'own_authority']",
           "request_id": "req_8c1d…"}}
HTTPcodeMeaning
401missing_api_key / invalid_api_keyNo key, wrong key or revoked key.
403live_disabledLive key used before Edeal Insurance enabled live mode for your account.
403consent_requiredThe driver has not allowed sharing policies, quotes or loss runs with you.
403sandbox_onlySimulation endpoints work only with test keys.
404not_foundUnknown id, or the object belongs to another mode (test vs live).
409application_existsAn open application with this partner_ref already exists — see error.application_id.
409application_closedThe application is bound, declined or closed.
422unknown_field / invalid_option / invalid_date / invalid_number / read_only_fieldValidation; error.field points to the value.
422idempotency_key_reusedThe same Idempotency-Key was sent for a different request.
429rate_limitedMore than 120 requests per minute per key.
500internal_errorOur side. Retry with the same Idempotency-Key; quote error.request_id.
503encryption_unavailableSensitive fields could not be stored; retry later.

Security & data

  • You see only applications created with your keys, and only in the same mode.
  • Date of birth, license numbers and FEIN are encrypted at rest, write-only in the API, and never appear in events or logs. No SSN.
  • Every API call is logged (time, key, endpoint, result — not the data). Keys are stored as hashes; webhook secrets are encrypted.
  • Send driver data only with the driver's consent in your app to pass it to Edeal Insurance for insurance quotes.
  • Questions or a suspected leaked key: request@edealinsurance.com · (718) 913-9949. We revoke keys immediately.

Changelog

Version
2026-11-29First version: applications, documents, links, consents, policies, quotes, loss runs, events, webhooks, sandbox simulation.