# Webhook Payloads

Source: https://docs.premiumqualifiedleads.com/webhooks-delivery-testing/webhook-payloads

Webhook delivery sends each lead from Premium Qualified Leads to an endpoint you own, as JSON over HTTPS, the moment it qualifies.

#### Request

- Method: POST
- Body: application/json, UTF-8
- Shape: one flat JSON object (no nested objects). Empty fields are sent as empty strings.
- Fields depend on the vertical (funding or business debt) and on your account's field mapping.

#### Example payload (funding lead, test data)

```json
{
  "lead_record_id": "rec8x2LmQp41Abcde",
  "event_type": "lead",
  "lead_update": false,
  "vertical": "funding",
  "source": "web_form",
  "firstName": "Jordan",
  "lastName": "Rivera",
  "email": "jordan@example.com",
  "phone": "+15125550142",
  "business_name": "Rivera Plumbing LLC",
  "state": "TX",
  "business_zip": "78701",
  "loan_amount": "$100,000 - $250,000",
  "monthly_revenue": "85000",
  "credit_score": "Good (700-749)",
  "industry": "Plumbing",
  "time_in_business": "4-6 years",
  "tcpa_consent": true,
  "consent_timestamp": "2026-11-25T15:04:11Z",
  "trusted_form_cert_url": "https://cert.trustedform.com/example",
  "source_form_url": "https://www.example.com/apply",
  "utm_source": "facebook"
}

```

The full field list for funding leads is in "Funding Leads: Fields, Documents, and Updates".

#### Identity fields (every send)

| Field | Meaning |
|---|---|
| lead\_record\_id | Our stable lead ID. The same on every send of the same lead. Use it as your dedupe key. |
| event\_type | "lead" for a normal delivery. |
| lead\_update | false on the first send, true when we resend the same lead with more data. |
| updated\_fields | On an update, the list of fields that changed. |
| original\_submitted\_at | When the lead first came in (on updates). |
| consent\_certificate\_url | Link to our consent record for the lead. |

#### Authentication to your endpoint

Choose one. We store your credential server-side as a secret.

- A static header, e.g. `X-API-Key: <your key>`
- A Bearer token: `Authorization: Bearer <token>`
- Basic auth (username and password)

#### How we read your response

| Your response | What happens |
|---|---|
| 2xx within 30 seconds | Accepted. |
| 2xx with `{"success": false}` in the body | Treated as a rejection. |
| 4xx | Rejected (for example a duplicate or outside your criteria). Logged, not retried. Include a short reason in the body. |
| 5xx, timeout or network error | Retried. Up to 3 attempts in total, with short backoff. If every attempt fails, our team is alerted. |

Every retry of the same send carries the same `Idempotency-Key` header, so you can safely drop repeats.

If you already have the lead, reply with `{"status": "duplicate"}`, `{"duplicate": true}` or a 4xx whose reason says it already exists. The lead isn't charged to you. See "Delivering to Your Own API" for every duplicate reply we recognise.

Recommended success response:

```json
{ "success": true, "message": "Lead received" }

```

#### Assigned rep (optional)

If your system assigns a rep the moment the lead arrives, you can return it in your response and we show the rep to the applicant on their confirmation page. See "Assigned Rep, Conversations, and Status Updates" for the fields.

#### Best practices

- Use HTTPS. Plain HTTP, localhost and private-network addresses are rejected.
- Store the lead first, then respond. Do slow work after you reply.
- Dedupe on `lead_record_id`. A send with `lead_update: true` updates the lead you already have; it is not a new lead.
- Download documents on receipt rather than keeping only the link.
- Don't reject a lead because an optional field is empty.
- Use Test Delivery in the buyer portal before going live.
- If you only accept known IPs, ask us for our outbound addresses.
