Leads API
List, create and fetch leads. Creating through the API runs the exact same pipeline as the lead webhook — field mapping, automations, ad attribution — so a lead behaves identically however it arrives.
List leads#
https://adwixatlas.com/api/v1/leads| Field | Accepted keys | Notes |
|---|---|---|
| limit | ?limit=25 | 1–100, default 25. |
| offset | ?offset=0 | Skip N rows. Newest first (created_at desc). |
| status | ?status=new | Optional filter: new · contacted · qualified · proposal_sent · negotiating · confirmed · lost · cancelled. Unknown values → 422. |
curl "https://adwixatlas.com/api/v1/leads?limit=25&status=new" \ -H "Authorization: Bearer aa_live_xxxxxxxxxxxxxxxx"
{
"data": [
{
"id": "3f7c2b9e-…",
"name": "Rahul Sharma",
"phone": "+91 98765 43210",
"email": "rahul@example.com",
"destination": "Bali",
"budget": 150000,
"pax": 2,
"travel_date": "12 Aug 2026",
"status": "new",
"source": "website",
"score": 0,
"notes": "Looking for a honeymoon package",
"follow_up_date": null,
"tags": [],
"created_at": "2026-07-21T09:12:33.000Z",
"updated_at": "2026-07-21T09:12:33.000Z"
}
],
"has_more": true
}Create a lead#
https://adwixatlas.com/api/v1/leadsAccepts the same generous field aliases as the lead webhook — at least one of name, phone or email is required (422 otherwise); unmapped keys are preserved in the lead's notes; fbclid/fbc/fbp attribution is honoured. Two API-specific behaviours:
— source defaults to "api" when omitted (the webhook defaults to "meta") — still, always send your real source.
— A valid status in the body is honoured (useful for migrations); invalid values are ignored and the lead lands as new.
curl -X POST https://adwixatlas.com/api/v1/leads \
-H "Authorization: Bearer aa_live_xxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"name": "Rahul Sharma",
"phone": "+91 98765 43210",
"destination": "Bali",
"budget": 150000,
"pax": 2,
"travel_date": "12 Aug 2026",
"source": "crm-import",
"notes": "Migrated from our old system"
}'Returns 201 with the created lead. Your “New lead created” automations fire and, when Meta is connected and attribution ids were sent, a server-side Lead conversion event goes out — exactly as if the lead had arrived via the webhook.
Fetch one lead#
https://adwixatlas.com/api/v1/leads/{id}Returns { "data": { … } } or 404 — including for ids belonging to another workspace; a key can never see across tenants.
429 + Retry-After you hit.