REST endpoints for partner integrations. All responses are JSON. CORS is enabled.
Every request must include your API key in the x-api-key header (or as Authorization: Bearer <key>).
x-api-key: app_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxreferrer_slug. Can only read/create/update their own deals.https://autopayproleads.io/api/public/v1/api/public/v1/statsHigh-level KPIs: deal counts by stage, projected monthly and annual commission, lifetime revenue & volume.
curl https://autopayproleads.io/api/public/v1/stats \
-H "x-api-key: YOUR_KEY"/api/public/v1/dealsList deals (partner keys see only their own). Optional: stage=pending|closed|completed, limit=1-500.
curl "https://autopayproleads.io/api/public/v1/deals?stage=closed&limit=50" \
-H "x-api-key: YOUR_KEY"/api/public/v1/dealsCreate a new deal. Partner keys auto-set referrer_slug to the key's partner. Required: merchant_name.
curl -X POST https://autopayproleads.io/api/public/v1/deals \
-H "x-api-key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"merchant_name": "Acme Auto",
"contact_name": "Jane Doe",
"contact_email": "jane@acme.com",
"deal_amount": 250000,
"category": "Auto dealer"
}'/api/public/v1/deals/{id}Get a single deal with its uploaded statements. Contact PII is excluded.
curl https://autopayproleads.io/api/public/v1/deals/DEAL_UUID \
-H "x-api-key: YOUR_KEY"/api/public/v1/deals/{id}Update a deal. Partner keys can only update their own. Allowed: pipeline_stage, deal_amount, notes, close_date, category. Admin keys can also update revenue_percentage, referrer_percentage, processing_rate_percentage, hold_status, source_group.
curl -X PATCH https://autopayproleads.io/api/public/v1/deals/DEAL_UUID \
-H "x-api-key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{ "pipeline_stage": "completed", "close_date": "2026-06-30" }'/api/public/v1/partners/{slug}Public partner dashboard JSON — referred deals, share %, and projected partner cut.
curl https://autopayproleads.io/api/public/v1/partners/jetfuel \
-H "x-api-key: YOUR_KEY"400 — bad request (missing/invalid body field)401 — missing or invalid API key403 — partner key trying to access a deal it doesn't own404 — resource not found500 — server error (check response body)