Insta Leads API v1
Read your leads, change their status and add notes from your own apps or an AI assistant. JSON over HTTPS. Machine-readable description: openapi.json.
AI assistants: ChatGPT, Claude, Gemini and other assistants that support MCP connect without a key: add https://app.instaleads.in/mcp as a custom connector and sign in (OAuth 2.1 with PKCE, dynamic client registration; metadata at /.well-known/oauth-protected-resource/mcp and /.well-known/oauth-authorization-server). The connector also accepts an API key as Authorization: Bearer. Tools: get_account, list_forms, list_statuses, search_leads, lead_stats, get_lead, and with update access update_lead_status and add_lead_note.
Start
- In Insta Leads, go to AI & API Connect and create a key. Choose Read only, or Read + update to also change statuses and add notes. The key is shown once: store it in your app's secure settings, never in chat or email.
- Send it with every request:
Authorization: Bearer il_…
curl https://app.instaleads.in/api/v1/leads?status=new&limit=10 \ -H "Authorization: Bearer il_your_key"
Base address: https://app.instaleads.in/api/v1 · Limit: 120 requests a minute per key (HTTP 429 with Retry-After above that). Times are ISO 8601 in your business's time zone. Phone numbers from forms set to take numbers from any country include the country code (+6591234567).
Endpoints
/meCheck the key: the business and the key's scope.
/formsThe business's forms (landing pages), e.g. one per job opening, product or campaign, with their fields. Use a form's id as form_id to filter leads.
/statusesLead statuses and the words accepted for each (e.g. "shortlisted" means Qualified, "not suitable" means Lost).
/leadsList leads, newest first, with filters and paging.
from string | Received on or after: 2026-11-21 or 2026-11-21T09:00:00+08:00. Dates are in the business's time zone. |
to string | Received on or before (a date includes that whole day). |
form_id string | One or more form ids, e.g. 11 or 11,12. |
source string | Source platform from the form link (?src=instagram), e.g. instagram, facebook, tiktok, linkedin. |
campaign string | Campaign from the form link (?utm_campaign=…). |
status string | One or more statuses or accepted words, e.g. new or shortlisted,interested. |
updated_since string | Changed on or after this date or date-time. |
since_id integer | Only leads with a higher id, oldest first: for checking new leads on a schedule. Keep the highest id you have seen. |
q string | Search the answers (name, phone, email, …). |
limit integer | 1 to 100, default 25. |
page integer | Page number, default 1. has_more tells you if there is another page. |
/leads/{id}One lead with all answers, notes, who it is assigned to and its recent activity. File answers (e.g. a CV) come with a download link that works for one hour.
/leads/{id}/statusRead + update keyChange a lead's status, optionally with a note. Returns the updated lead. The change shows on the lead's timeline as made through the API, with the key's name.
status string | A status or accepted word: new, contacted, interested, follow up, qualified / shortlisted, won / hired, lost / not suitable… |
note string | Optional. Added to the lead's notes and timeline. |
/leads/{id}/notesRead + update keyAdd a note to a lead.
note string | The note (up to 2,000 characters). |
Change a status
curl -X POST https://app.instaleads.in/api/v1/leads/1042/status \
-H "Authorization: Bearer il_your_key" -H "Content-Type: application/json" \
-d '{"status": "shortlisted", "note": "Good fit for the night shift"}'
A lead
Every answer from the form is in answers, with the field's key, label and type, so screening questions, location, consent and uploaded files come through as the business set up the form. name, phone and email are filled in from the answers for convenience.
{
"id": 1042,
"received_at": "2026-11-21T10:15:03+08:00",
"updated_at": "2026-11-21T11:02:40+08:00",
"form": {
"id": 11,
"name": "Warehouse Assistant – Nov",
"slug": "warehouse-assistant-nov"
},
"source": "instagram",
"campaign": "nov_hiring",
"status": {
"key": "new",
"label": "New"
},
"name": "Example Candidate",
"phone": "+6591234567",
"email": "candidate@example.com",
"priority": false,
"repeat_count": 0,
"answers": [
{
"key": "name",
"label": "Full Name",
"type": "text",
"value": "Example Candidate"
},
{
"key": "mobile",
"label": "WhatsApp Number",
"type": "tel",
"value": "+6591234567"
},
{
"key": "experience",
"label": "Years of experience",
"type": "select",
"value": "2-5 years"
},
{
"key": "resume",
"label": "Resume",
"type": "file",
"value": {
"name": "cv.pdf",
"size": 182044,
"url": "https://app.instaleads.in/api/v1/files/1042/resume?exp=…&sig=…"
}
},
{
"key": "consent",
"label": "I agree to be contacted",
"type": "checkbox",
"value": "yes"
}
],
"notes": null
}
Webhook: new leads as they arrive
In AI & API Connect, enter an https address. Each new lead is sent there as a POST with a JSON body {"event":"lead.created","delivery_id":…,"sent_at":…,"lead":{…}} (the same lead shape as above). Headers:
X-InstaLeads-Event | lead.created, or ping for the test button. |
X-InstaLeads-Delivery | The delivery id. The same lead is never sent twice under different ids, so you can ignore a repeat. |
X-InstaLeads-Signature | sha256= HMAC-SHA256 of the raw body with your webhook signing secret. Check it before trusting the body. |
Answer with any 2xx within 10 seconds. If not, it is tried again after 1 minute, 5 minutes, 30 minutes, 2 hours, 12 hours and 24 hours. No webhook? Ask GET /leads?since_id=<highest id you have> every few minutes instead.
Errors
Errors come as {"error":{"code":"…","message":"…"}} with HTTP 400 (bad filter), 401 (key missing or revoked), 403 (read-only key, or an expired file link), 404, 422 (unknown status or missing note) or 429 (too many requests).