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.
https://dev.edeal.ai/partner/v1YYYY-MM-DD.edi_test_… keys work in the sandbox, edi_live_… keys with real applications.How it works
- 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. - The driver uploads documents — driver's license, registration, current policy — through the API or on our page. We read them and fill the application.
- 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. - A licensed Edeal Insurance agent requests quotes from insurers. You get webhooks as the application moves: missing data, quotes ready, policy bound.
- After the policy is issued we keep watching it and tell you about cancellation notices and renewals — if the driver allowed it.
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
| Key | Mode | What happens |
|---|---|---|
edi_test_… | Sandbox | Applications are kept separately from real ones, never reach insurers or agents' queues, no emails. Events can be simulated. |
edi_live_… | Live | Real 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
404in the other. - Rate limit: 120 requests per minute per key →
429 rate_limited. - Idempotency: send
Idempotency-Keywith POST requests. A retry with the same key within 24 hours returns the first result (headerIdempotent-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 /applications | Create. partner_ref must be unique among your open applications (otherwise 409 application_exists with the existing id). |
GET /applications | List, 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}/submit | The driver is done: we check everything needed to quote. Complete → ready_to_quote; otherwise missing_data with the list. |
Request body
| Key | Type | |
|---|---|---|
partner_ref | string | Your id for the driver or application (letters, digits, . : - / # _, up to 80). |
line_of_business | string | trucking — Trucking — for-hire motor carrier; commercial_auto — Commercial auto — business vehicles. Set on create only. |
fields | object | Field key → value. Keys, types and options: field dictionary or GET /meta/fields. |
vehicles, drivers, prior_policies | array | Objects with the keys listed in the dictionary. |
{"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
| status | Meaning |
|---|---|
in_progress | Application in progress |
missing_data | Information missing |
waiting_loss_runs | Waiting for loss runs |
ready_to_quote | Complete — agent is requesting quotes |
quoting | Quotes requested from insurers |
quotes_ready | Quotes sent to the driver |
awaiting_signature | Driver chose a quote — signature and payment |
bound | Policy issued |
declined | Insurers declined |
closed | Closed |
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
| Key | Field | Type | Values / notes |
|---|---|---|---|
coveragesto_quote |
Coverages to quote | multi | al Auto Liability (primary) — injury/damage to others; FMCSA filing for own authorityntl Non-Trucking Liability / Bobtail — owner-operator leased on to a carrier, off-dispatchmtc Motor Truck Cargo — the freight being hauledapd Physical Damage — the truck / trailer itself (comprehensive & collision)occ_acc Occupational Accident — work injury for 1099 owner-operatorsgl General Liability — business premises & operationstrailer_interchange Trailer Interchange — non-owned trailers under an interchange agreementumbrella Umbrella / Excess Liabilityhelp Not sure — agent to recommendOwn 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_nameto_quote |
Named insured (exact legal name) | text |
As on the driver's license or company formation documents |
dbaoptional |
DBA | text | |
entity_typeto_quote |
Business type | select | sole_prop Sole proprietor / individualllc LLCcorp Corporationpartnership Partnershipother Other |
usdotoptional |
USDOT # | text |
Company data, power units and current insurance filings load from FMCSA |
mcoptional |
MC # | text | |
authority_modeto_quote |
Operating authority | select | own_authority Own authority (own USDOT / MC)leased_on Leased on to a motor carriernew_authority New authority — pendingOnly for
trucking |
lessor_nameto_quote |
Motor carrier leased to | text |
Only when:
authority_mode = leased_onNTL / bobtail is written for a specific carrier |
lessor_usdotoptional |
Motor carrier USDOT # | text |
Only when:
authority_mode = leased_on |
years_in_businessto_quote |
Years in business | select | 0 New venture — under 1 year1_2 1–2 years3_4 3–4 years5_9 5–9 years10_plus 10+ years |
owner_firstto_quote |
Owner first name | text | |
owner_lastto_quote |
Owner last name | text | |
owner_dobto_quote write-only |
Owner date of birth | string YYYY-MM-DD |
Encrypted. Carriers use it for driving and credit reports |
phoneto_quote |
Phone | text | |
emailto_quote |
text |
Applicant's own email (not the agency's) | |
addr_streetto_quote |
Owner home / mailing address | text |
Street address, not a P.O. Box |
addr_cityto_quote |
City | text | |
addr_stateto_quote |
State | select | AK AK — AlaskaAL AL — AlabamaAR AR — ArkansasAZ AZ — ArizonaCA CA — CaliforniaCO CO — ColoradoCT CT — ConnecticutDC DC — District of ColumbiaDE DE — DelawareFL FL — FloridaGA GA — GeorgiaHI HI — HawaiiIA IA — IowaID ID — IdahoIL IL — IllinoisIN IN — IndianaKS KS — KansasKY KY — KentuckyLA LA — LouisianaMA MA — MassachusettsMD MD — MarylandME ME — MaineMI MI — MichiganMN MN — MinnesotaMO MO — MissouriMS MS — MississippiMT MT — MontanaNC NC — North CarolinaND ND — North DakotaNE NE — NebraskaNH NH — New HampshireNJ NJ — New JerseyNM NM — New MexicoNV NV — NevadaNY NY — New YorkOH OH — OhioOK OK — OklahomaOR OR — OregonPA PA — PennsylvaniaRI RI — Rhode IslandSC SC — South CarolinaSD SD — South DakotaTN TN — TennesseeTX TX — TexasUT UT — UtahVA VA — VirginiaVT VT — VermontWA WA — WashingtonWI WI — WisconsinWV WV — West VirginiaWY WY — Wyoming |
addr_zipto_quote |
ZIP | text | |
garaging_zipto_quote |
Garaging ZIP | text |
All units must be garaged in the policy state |
feinoptional write-only |
FEIN | string string |
Encrypted. Required by Progressive Small Fleet and at binding |
fields — Operations · 16
| Key | Field | Type | Values / notes |
|---|---|---|---|
radiusto_quote |
Radius of operation | select | 0_50 Local — up to 50 miles51_200 Intermediate — 51–200 miles201_500 Regional — 201–500 miles500_plus Long haul — over 500 miles / unlimited |
interstateto_quote |
Crosses state lines (interstate) | select | yes Yesno No |
statesto_quote |
States of operation | multi | AK AK — AlaskaAL AL — AlabamaAR AR — ArkansasAZ AZ — ArizonaCA CA — CaliforniaCO CO — ColoradoCT CT — ConnecticutDC DC — District of ColumbiaDE DE — DelawareFL FL — FloridaGA GA — GeorgiaHI HI — HawaiiIA IA — IowaID ID — IdahoIL IL — IllinoisIN IN — IndianaKS KS — KansasKY KY — KentuckyLA LA — LouisianaMA MA — MassachusettsMD MD — MarylandME ME — MaineMI MI — MichiganMN MN — MinnesotaMO MO — MissouriMS MS — MississippiMT MT — MontanaNC NC — North CarolinaND ND — North DakotaNE NE — NebraskaNH NH — New HampshireNJ NJ — New JerseyNM NM — New MexicoNV NV — NevadaNY NY — New YorkOH OH — OhioOK OK — OklahomaOR OR — OregonPA PA — PennsylvaniaRI RI — Rhode IslandSC SC — South CarolinaSD SD — South DakotaTN TN — TennesseeTX TX — TexasUT UT — UtahVA VA — VirginiaVT VT — VermontWA WA — WashingtonWI WI — WisconsinWV WV — West VirginiaWY WY — Wyoming |
cargo_typesto_quote |
Commodities hauled | multi | dry_van Dry van / general freightreefer Refrigeratedflatbed Flatbed / step deckbuilding_materials Building materialsmachinery Machinery & equipmentauto_hauler Auto haulerintermodal Intermodal containerstanker_nonhaz Tanker — non-hazardousdump Dump — sand, gravel, bulklivestock Livestockhousehold_goods Household goodshotshot Expedited / hot shothigh_value High-value / electronicsfood_bev Food & beverageshazmat Hazardous materialsother OtherOnly for
trucking |
hazmat_placardedto_quote |
Placarded hazmat loads | select | yes Yesno NoOnly when:
cargo_types = hazmatProgressive writes for-hire hazmat haulers for Physical Damage only |
vehicle_useto_quote |
Vehicle use | multi | service Service callslocal_delivery Local deliverysales Salespassenger Transporting peopleown_goods Hauling own goods / equipmentother OtherOnly for
commercial_auto |
descriptionto_quote |
Description of operations | textarea |
In the applicant's words: what they haul, for whom, typical lanes. Vague descriptions are the most common reason for declines |
driver_typeto_quote |
Drivers are | select | owner_only Owner-operator onlyw2 Employees (W-2)1099 Contractors (1099)mix Employees and contractors |
hire_lease_trucksto_quote |
Hires or leases trucks to run under own authority | select | yes Yesno NoOnly for
truckingProgressive does not accept such risks |
shares_filingto_quote |
Shares vehicles or a filing with a related company | select | yes Yesno NoOnly for
trucking |
annual_milesto_quote |
Annual miles per unit | number |
Progressive rates on expected annual mileage |
revenue_rangeoptional |
Annual revenue | select | lt_100k Under $100K100_250k $100K–250K250_500k $250K–500K500k_1m $500K–1M1_5m $1M–5Mgt_5m Over $5M |
employeesoptional |
Employees & contractors (excl. owners) | number | |
subcontractorsoptional |
Uses subhaulers | select | no Noyes_insured Yes — they carry own insuranceyes_unknown Yes — insurance unknown |
telematicsoptional |
ELD / telematics | multi | samsara Samsaramotive Motivegeotab Geotabother Othernone None |
dash_camoptional |
Dash cams | select | all All unitssome Some unitsnone NoneProgressive Snapshot Pro + dashcam discounts |
fields — Prior insurance & loss runs · 6
| Key | Field | Type | Values / notes |
|---|---|---|---|
currently_insuredto_quote |
Currently insured | select | yes Yeslapsed No — coverage lapsednever No — new venture, never insured |
coverage_gapto_quote |
Gap in coverage in the last 3 years | select | none No gapslt_30 Under 30 daysgte_30 30 days or more |
renewal_offeredoptional |
Current carrier is renewing | select | yes Yesnon_renewed No — non-renewedunknown Not known yetOnly when:
currently_insured = yes |
loss_historyoptional |
Losses in the last 3–5 years | textarea |
Filled from loss runs: date, what happened, amount paid. Leave empty if none |
has_gl_bopoptional |
Has GL or BOP | select | no Nogl GLbop BOP |
loa_titleoptional |
Your title in the company | text |
Only when:
entity_type = llc, corp, partnership, otherOwner, President, Member… — printed under your signature on the loss run authorization |
fields — Limits & deductibles · 14
| Key | Field | Type | Values / notes |
|---|---|---|---|
al_limitto_quote |
Auto liability limit | select | 750k $750,000 — federal minimum, general freight1m $1,000,000 — most brokers require2m $2,000,0005m $5,000,000 — hazmatunknown Not sureOnly when:
coverages = al |
ca_limitto_quote |
Liability limit | select | state_min State minimum100_300_100 100/300/100500k_csl $500,000 CSL1m_csl $1,000,000 CSLOnly for
commercial_auto |
cargo_limitto_quote |
Cargo limit | select | 50k $50,000100k $100,000150k $150,000250k $250,000unknown Not sureOnly when:
coverages = mtc |
apd_deductibleto_quote |
Physical damage deductible | select | 1000 $1,0002500 $2,5005000 $5,000unknown Not sureOnly when:
coverages = apd |
ntl_limitto_quote |
NTL limit | select | 300k $300,000500k $500,000750k $750,0001m $1,000,000Only when:
coverages = ntl |
gl_limitto_quote |
GL limit | select | 1m_2m $1M per occurrence / $2M aggregate2m_4m $2M / $4MOnly when:
coverages = gl |
occ_limitto_quote |
Occupational accident limit | select | 500k $500,0001m $1,000,000Only when:
coverages = occ_acc |
um_limitoptional |
Uninsured / underinsured motorist | select | match Same as liabilitystate_min State minimumreject Reject (signed rejection form)Only when:
coverages = al |
medpayoptional |
Medical payments | select | 0 None1000 $1,0005000 $5,00010000 $10,000 |
covered_symboloptional |
Covered autos | select | 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_dateto_quote |
Requested effective date | date YYYY-MM-DD |
|
payment_prefoptional |
Payment plan | select | full Paid in full (discount)monthly Monthlyquarterly Quarterlyboth Show both |
additional_insuredsoptional |
Additional insureds / waivers of subrogation | textarea |
Who must be listed and under which contract (brokers, shippers, lessors) |
required_byoptional |
Insurance required by | multi | fmcsa FMCSA / own authoritybrokers Freight brokers / shipperscarrier Motor carrier leased tolender Lender / lessorcontract Customer contract |
vehicles[] · 12
| Key | Field | Type | Values / notes |
|---|---|---|---|
vinto_quote |
VIN | text |
17 characters. Year, make and body type load from NHTSA |
yearto_quote |
Year | number | |
maketo_quote |
Make | text | |
modeloptional |
Model | text | |
vehicle_typeto_quote |
Body type | select | tractor Tractorbox_truck Straight / box truckcargo_van Cargo vanpickup Pickupdump_truck Dump trucktow_truck Tow trucktrailer_dry Trailer — dry vantrailer_reefer Trailer — reefertrailer_flatbed Trailer — flatbedtrailer_auto Trailer — auto haulerpassenger_van Passenger vanppv Private passengerother Other |
gvwr_classto_quote |
Gross vehicle weight | select | lte_10k Up to 10,000 lbs10k_26k 10,001–26,000 lbsgt_26k Over 26,000 lbs |
stated_valueoptional |
Stated value, $ | number |
Required for physical damage |
ownershipto_quote |
Ownership | select | owned Owned outrightfinanced Financedleased Leasedrented Rented |
lienholderoptional |
Lienholder / loss payee — name & address | text |
Required for financed or leased units |
garaging_zipoptional |
Garaging ZIP if different | text | |
cost_newoptional |
Cost new, $ | number | |
attached_equipmentoptional |
Permanently attached equipment | select | none Noneliftgate Liftgatecrane Crane / boomreefer_unit Refrigeration unitother Other |
drivers[] · 13
| Key | Field | Type | Values / notes |
|---|---|---|---|
first_nameto_quote |
First name | text | |
last_nameto_quote |
Last name | text | |
dobto_quote write-only |
Date of birth | string YYYY-MM-DD |
|
license_stateto_quote |
License state | select | AK AK — AlaskaAL AL — AlabamaAR AR — ArkansasAZ AZ — ArizonaCA CA — CaliforniaCO CO — ColoradoCT CT — ConnecticutDC DC — District of ColumbiaDE DE — DelawareFL FL — FloridaGA GA — GeorgiaHI HI — HawaiiIA IA — IowaID ID — IdahoIL IL — IllinoisIN IN — IndianaKS KS — KansasKY KY — KentuckyLA LA — LouisianaMA MA — MassachusettsMD MD — MarylandME ME — MaineMI MI — MichiganMN MN — MinnesotaMO MO — MissouriMS MS — MississippiMT MT — MontanaNC NC — North CarolinaND ND — North DakotaNE NE — NebraskaNH NH — New HampshireNJ NJ — New JerseyNM NM — New MexicoNV NV — NevadaNY NY — New YorkOH OH — OhioOK OK — OklahomaOR OR — OregonPA PA — PennsylvaniaRI RI — Rhode IslandSC SC — South CarolinaSD SD — South DakotaTN TN — TennesseeTX TX — TexasUT UT — UtahVA VA — VirginiaVT VT — VermontWA WA — WashingtonWI WI — WisconsinWV WV — West VirginiaWY WY — Wyoming |
license_classto_quote |
License type | select | cdl_a CDL Class Acdl_b CDL Class Bcdl_c CDL Class Cregular Regular licenseforeign Foreign license |
years_cdlto_quote |
Commercial driving experience | select | lt_1 Under 1 year1_2 1–2 years2_3 2–3 years3_5 3–5 years5_10 5–10 years10_plus 10+ years |
accidents_3yto_quote |
Accidents in the last 3 years | select | 0 None1 12 23_plus 3 or more |
violations_3yto_quote |
Moving violations in the last 3 years | select | 0 None1 12 23_plus 3 or more |
major_violationsto_quote |
Major violations (DUI, reckless, suspension) | select | none Noneyes_3y Yes — within 3 yearsyes_older Yes — over 3 years ago |
incidentsoptional |
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_noto_bind write-only |
License # | string string |
Encrypted. Needed for the MVR at binding |
roleoptional |
Relationship | select | owner Owneremployee Employeecontractor Contractorfamily Family member |
date_hiredoptional |
Date hired | date YYYY-MM-DD |
prior_policies[] · 7
| Key | Field | Type | Values / notes |
|---|---|---|---|
carrier_nameto_quote |
Carrier | text | |
policy_numberoptional |
Policy # | text | |
lineoptional |
Coverage | select | trucking Trucking / auto liabilitycargo Cargophysical_damage Physical damagentl NTL / bobtailcommercial_auto Commercial autogl General liabilityocc_acc Occupational accidentother Other |
period_fromoptional |
Effective | date YYYY-MM-DD |
|
period_toto_quote |
Expiration | date YYYY-MM-DD |
|
premiumoptional |
Annual premium, $ | number | |
want_lroptional |
Request loss runs | select | yes Yesno 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.
| type | Document | Needed | |
|---|---|---|---|
cdl | Driver's license (CDL) | to quote | Back side with the barcode (both sides is best): name, DOB, address, license #, class, expiration |
registration | Vehicle registration / cab card | to quote | VIN, year, make, registered owner |
vin_photo | VIN plate photo | to quote | If there is no registration |
dec_page | Current policy — declarations page | to quote | Carrier, policy #, dates, limits, premium, listed units and drivers. Proof of prior insurance for Progressive |
coi | Certificate of insurance (COI) | to quote | If there is no dec page |
loss_runs | Loss runs | to quote | 3–5 years, dated within 90 days. Needed by Progressive Small Fleet (10+ units) and wholesale / E&S markets |
lease | Lease agreement with motor carrier | to bind | Leased-on owner-operator: carrier name and USDOT. Required for NTL |
lien | Vehicle loan / lease (lienholder) | to bind | Bank or lessor — loss payee |
ein | IRS EIN letter (CP575 / 147C) | to bind | Legal name and EIN (stored encrypted) |
mvr | Motor vehicle record (MVR) | if available | If the driver has one: violations and accidents with dates |
authority | FMCSA authority letter (MC / USDOT) | if available | If the USDOT is new |
company | Company formation documents | if available | Articles / certificate |
title | Vehicle title / bill of sale | if available | Value and owner |
contracts | Customer / broker contracts | to bind | For additional insureds and waivers of subrogation |
other | Other | if available |
Driver links & consents
POST /applications/{id}/links returns two personal links for the driver. Open them in the system browser or an in-app browser (they cannot be embedded in an iframe).
| Link | What the driver does there |
|---|---|
apply_url | Our hosted application: upload documents, check and complete the form. Use it if you do not build your own form. |
sign_url | Signs, once: (1) the consumer reports authorization — insurers check the driving record (MVR), claims history and a soft credit report; (2) loss run authorization letters, if prior insurers were marked; (3) optionally, permission for Edeal Insurance to share application status and policy information with you. |
| Without share permission you get | With share permission you also get |
|---|---|
| Status, completeness, missing items, fields you sent, document statuses, status webhooks | Policies (carrier, number, coverages, dates, cancellation notices), quotes summary, loss run status, and these details inside webhooks |
If the driver withdraws the permission you receive consent.share_revoked; stop showing their policy data.
Policies, quotes, loss runs
| Endpoint | Returns |
|---|---|
GET /applications/{id}/policies | Policies we issued or monitor: carrier, policy_number, coverages, status (active, cancel_pending, cancelled), effective_date, expiration_date, cancel_effective_date. |
GET /applications/{id}/quotes | Market, coverages, status and premium for each quote request. |
GET /applications/{id}/loss-runs | Each 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-endpointswith{"url": "https://…", "events": ["*"]}; the response contains the signingsecretonce.POST /webhook-endpoints/{id}/testqueues 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
| type | When |
|---|---|
application.created | Application created through the API |
application.status_changed | Any stage change (data.previous_status → data.application.status) |
application.missing_data | Submitted, but something required to quote is missing (data.application.missing) |
application.ready_to_quote | Application is complete; a licensed agent is requesting quotes |
application.declined | Insurers declined the risk |
application.closed | Application closed |
consent.signed | Driver signed the consumer reports authorization (MVR, claims history, credit) |
consent.share_granted | Driver allowed Edeal Insurance to share status and policies with you |
consent.share_revoked | Driver withdrew that permission — stop showing policy data |
loss_runs.received | A prior insurer sent the driver's loss run report |
quotes.ready | Quotes were sent to the driver |
policy.bound | A policy was issued |
policy.cancel_pending | The insurer issued a notice of cancellation (data.policy.cancel_effective_date) |
policy.cancelled | The policy was cancelled |
policy.renewal_due | The 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"}
| event | What it does |
|---|---|
application.missing_data, application.ready_to_quote, application.declined, application.closed | Sets that status (and sends application.status_changed). |
consent.signed, consent.share_granted, consent.share_revoked | As if the driver signed or changed the share permission. |
quotes.ready | Creates sample quotes from the markets that fit the selected coverages and sets quotes_ready. |
policy.bound | Creates a sample one-year policy for the selected coverages and sets bound. |
policy.cancel_pending, policy.cancelled, policy.renewal_due | Changes that policy (run policy.bound first). |
loss_runs.received | Sends 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…"}}
| HTTP | code | Meaning |
|---|---|---|
| 401 | missing_api_key / invalid_api_key | No key, wrong key or revoked key. |
| 403 | live_disabled | Live key used before Edeal Insurance enabled live mode for your account. |
| 403 | consent_required | The driver has not allowed sharing policies, quotes or loss runs with you. |
| 403 | sandbox_only | Simulation endpoints work only with test keys. |
| 404 | not_found | Unknown id, or the object belongs to another mode (test vs live). |
| 409 | application_exists | An open application with this partner_ref already exists — see error.application_id. |
| 409 | application_closed | The application is bound, declined or closed. |
| 422 | unknown_field / invalid_option / invalid_date / invalid_number / read_only_field | Validation; error.field points to the value. |
| 422 | idempotency_key_reused | The same Idempotency-Key was sent for a different request. |
| 429 | rate_limited | More than 120 requests per minute per key. |
| 500 | internal_error | Our side. Retry with the same Idempotency-Key; quote error.request_id. |
| 503 | encryption_unavailable | Sensitive 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-29 | First version: applications, documents, links, consents, policies, quotes, loss runs, events, webhooks, sandbox simulation. |