FOR AI AGENTS AND DEVELOPERS
Hand over the leads.
AfterLeads makes sure each one gets an answer.
If your agent finds, qualifies or collects enquiries, AfterLeads is where they go next. Each one gets a next step and a time, follow-ups go out from the business’s own Gmail or WhatsApp, and they stop the moment the customer replies.
- MCP
https://www.afterleads.co/api/mcp - REST
https://www.afterleads.co/api/v1 - OpenAPI
https://www.afterleads.co/openapi.json - Facts
https://www.afterleads.co/facts.json
ONE CALL
Add leads for follow-up
Send up to 50 leads at once with add_leads. Give each lead your own id, so sending it again never adds it twice. The answer lists every lead as added, already added or not added, with the reason.
curl https://www.afterleads.co/api/v1/actions/add_leads \
-H "Authorization: Bearer $AFTERLEADS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"source":"Website chat","routineAutomatic":false,"leads":[{"id":"chat-1042","firstName":"Thandi","lastName":"Mokoena","email":"thandi@example.com","service":"Kitchen renovation quote","value":85000,"opportunityOrigin":"customer_initiated","note":"Wants it finished before December."}]}'import { AfterLeads } from 'https://www.afterleads.co/sdk/afterleads.mjs';
const afterleads = new AfterLeads({ apiKey: process.env.AFTERLEADS_API_KEY });
const result = await afterleads.addLeads({
"source": "Website chat",
"routineAutomatic": false,
"leads": [
{
"id": "chat-1042",
"firstName": "Thandi",
"lastName": "Mokoena",
"email": "thandi@example.com",
"service": "Kitchen renovation quote",
"value": 85000,
"opportunityOrigin": "customer_initiated",
"note": "Wants it finished before December."
}
]
});
// { added: 1, alreadyAdded: 0, notAdded: 0, results: [...] }- Required on each lead
id,firstName,service,emailormobile, andopportunityOrigin:customer_initiated(they asked) orbusiness_initiated(they were sent a quote).- Optional
lastName,company,valuein rand,quoteNumber,cadence(standard, high or urgent) andnote, what they asked for in their own words.- For the whole call
source, where the leads came from, saved as a note on each one, androutineAutomatic: false means the owner approves each follow-up before it goes.
CONNECT
Three ways in. One set of rules.
- MCP
Claude, ChatGPT and other assistants
Add
https://www.afterleads.co/api/mcpas a custom connector. The assistant opens Sign in with AfterLeads, the owner taps Allow, and every tool is ready. No key to copy.MCP client config { "mcpServers": { "afterleads": { "url": "https://www.afterleads.co/api/mcp" } } } - API key
Your own code and headless agents
The owner creates a key in Settings > AI assistants in the AfterLeads app and gives it to you once. Send it as
Authorization: Bearer al_live_...to the REST API or the MCP endpoint.MCP with a key { "mcpServers": { "afterleads": { "url": "https://www.afterleads.co/api/mcp", "headers": { "Authorization": "Bearer al_live_..." } } } } - SDK
A small client, no dependencies
Import
https://www.afterleads.co/sdk/afterleads.mjsand calladdLeads,listWorkspaceorrun(action, input)for anything else.
RUNNING IT
Everything an agent needs to run follow-up
- Start
A new business
Accounts belong to people.
GET https://www.afterleads.co/api/v1/start?email=&firstName=&agent=returns a sign-up link with their details filled in. The owner chooses a password and connects you. The 30-day trial needs no card; nobody pays through an agent. - Events
Know when something happens
Read
list_eventsfrom a cursor, or add a webhook: replies, messages sent, wins, losses, bookings, quotes and stop requests. Webhooks carry ids only, never personal information, and are signed with HMAC-SHA256. - The law
South African rules, enforced
POPIA section 69, WhatsApp opt-in and CPA contact hours apply to every message, and owners who contact people first are reminded about the opt-out registry.
get_contact_basisshows why one person may or may not be contacted;record_data_requestrecords a customer’s request to see, correct or delete their information. Read the rules. - Limits
Safe by default
120 requests a minute per key, read-only connections when the owner chooses, keys that expire after 90 days unused, and History that shows which assistant made each change.
THE RULES
What an agent can and cannot do
Always
- Only add people who asked for something or were sent a quote. AfterLeads does not follow up cold lists, and South Africa’s POPIA would not allow it.
- Every call acts as the person who connected the agent, with exactly their permissions in the app.
- AfterLeads decides when each follow-up goes out by its own rules. Agents hand over the work; they do not replace the rules.
- Agents give AfterLeads facts; AfterLeads writes every customer message. No action takes message wording, and notes that read like a message are refused.
- Prices, promises, a no and complaints always go to the owner.
- South African law is enforced for every message: POPIA section 69 (one permission email to someone the business contacts first), WhatsApp opt-in, CPA contact hours, with reminders about the opt-out registry. get_contact_basis shows why a person may or may not be contacted.
- Customers’ requests to see, correct or delete their information are recorded with record_data_request and answered by the owner within 30 days.
- To know when something happens, read list_events from a cursor or add a webhook; webhooks carry ids only, never personal information.
- Each key may make 120 requests a minute.
Asks the owner first
- Sending a follow-up to a customer
- Changing prices
- Changing the business’s enquiry page
- Changing business settings
- Adding a webhook
Never
- Write a message or the business’s follow-up wording
- Delete anything
- Export or bulk download customers
- Touch files, team members, billing or API keys
- Connect or disconnect Gmail or WhatsApp
- Switch automatic sending on or off
- Lift Do Not Contact
- Decide by itself that a job was won or lost, or record a contact or reply that did not happen
EVERY ACTION
52 actions, the same as the app
Each action runs the same server step as the button in the app, so History, permissions and rules are identical. Input schemas are in openapi.json.
- What needs you
list_workspaceget_opportunityread_opportunity- Act on it
reschedule_next_actionmark_wonmark_lostreopen_opportunityadd_noteupdate_opportunity_detailsrecord_quote_revisionapply_do_not_contactarchive_opportunityrestore_opportunity- Follow-ups
preview_next_messageprepare_emailprepare_whatsappapprove_follow_upasks the owner firstselect_channelrecover_continuityconfirm_contactrecord_replysync_emailget_follow_up_wording- Follow-up timing
list_timing_schedulescreate_timing_scheduleupdate_timing_schedulechange_opportunity_timing- New work
create_opportunitycheck_leadsadd_leadslist_enquiriesresolve_enquiryget_enquiry_formcustomize_enquiry_pageasks the owner first- Your business
get_business_understandingupdate_business_understandingget_pricessave_pricesasks the owner firstget_business_settingsupdate_business_settingsasks the owner firstget_connectionsget_follow_up_analyticssend_feedback- Rules and records
get_contact_basisget_compliance_statusrecord_data_requestlist_data_requestsresolve_data_request- Events
list_eventsadd_webhookasks the owner firstlist_webhooksremove_webhook
NO CLICKING AROUND
Facts, ready to read
/facts.jsonEvery fact on this site as JSON: what AfterLeads is, who it is for, price, guarantees, company and how to connect.
/llms.txtThe same facts as plain text for language models.
/openapi.jsonOpenAPI 3.1 for every action, served live by the API.
/.well-known/mcp.jsonThe MCP server card: endpoint, transport, sign in and tools.
/.well-known/oauth-authorization-serverOAuth 2.1 metadata for Sign in with AfterLeads (PKCE, dynamic client registration).
/sdk/afterleads.mjsA small JavaScript client with no dependencies.
- Price
- A 30-day free trial of the complete product. No card needed. Free for 30 days from sign up, with no card. It does not turn into a paid plan by itself. R599 a month, billed monthly until you cancel. No contract and no notice period. Online payments are not open yet, so nobody loses access when the trial days run out. When they open, you keep the rest of your trial or 7 more days, whichever is longer, before you choose a plan. Replies, site visits, quotes and follow-ups, taken off your hands. Refund policy.
- What it is not
- Not a CRM, not a lead generation or cold outreach tool, not a marketing platform.
A PERSON SETS IT UP ONCE
The owner signs up. The agent takes it from there.
An agent never opens an account for someone. The business owner signs up free, connects Gmail or WhatsApp, and connects the agent. After that, the leads can flow in by themselves.
Questions about an integration? Talk to a person.