Lead intake API
Live demo · example keysSuppliers post one lead per request as JSON, authenticated with their source API key in the x-api-key header. Each post is validated, normalized (E.164 phone, lowercase email, zip → city/state/metro), checked against the suppression list, deduped by fingerprint (phone or email, per vertical, 30 days), and its consent evidence is written to the consent vault. Then it runs a second-price auction across every live buy box that fits — geography, homeowner, credit, lead type, call length, delivery window, caps and budgets — and writes one match row per bid, a simulated delivery, and a three-leg shadow ledger transaction (buyer debit = supplier credit + 5% fee).
Responses: sold (with price, fee and match id), unsold (no buy box could take it, with reason), duplicate, suppressed, or rejected (422, with reason, e.g. missing_consent_evidence).
curl -X POST https://agorenza.vercel.app/api/leads \
-H "x-api-key: agz_demo_s1042_bath_remodel_form" \
-H "content-type: application/json" \
-d '{
"first_name": "Pat", "last_name": "Example",
"phone": "(813) 555-7788", "email": "pat.example@example.com",
"zip": "33611", "homeowner": true, "credit_score": 720,
"attributes": { "project_type": "Tub to shower" },
"consent": {
"jornaya_leadid": "EXAMPLE-0000-1111", "trustedform_cert_url": "https://cert.trustedform.com/example",
"ip": "198.51.100.7", "page_url": "https://example.com/bath", "disclosure_version": "2026-11-v3"
}
}'Response appears here. Post the same body twice to see dedupe.