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.

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
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."}]}'
JavaScript (Node, Deno, Bun, Workers)
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, email or mobile, and opportunityOrigin: customer_initiated (they asked) or business_initiated (they were sent a quote).
Optional
lastName, company, value in rand, quoteNumber, cadence (standard, high or urgent) and note, 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, and routineAutomatic: false means the owner approves each follow-up before it goes.

CONNECT

Three ways in. One set of rules.

  1. MCP

    Claude, ChatGPT and other assistants

    Add https://www.afterleads.co/api/mcp as 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"
        }
      }
    }
  2. 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_..."
          }
        }
      }
    }
  3. SDK

    A small client, no dependencies

    Import https://www.afterleads.co/sdk/afterleads.mjs and call addLeads, listWorkspace or run(action, input) for anything else.

RUNNING IT

Everything an agent needs to run follow-up

  1. 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.

  2. Events

    Know when something happens

    Read list_events from 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.

  3. 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_basis shows why one person may or may not be contacted; record_data_request records a customer’s request to see, correct or delete their information. Read the rules.

  4. 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_workspace get_opportunity read_opportunity
Act on it
reschedule_next_action mark_won mark_lost reopen_opportunity add_note update_opportunity_details record_quote_revision apply_do_not_contact archive_opportunity restore_opportunity
Follow-ups
preview_next_message prepare_email prepare_whatsapp approve_follow_upasks the owner first select_channel recover_continuity confirm_contact record_reply sync_email get_follow_up_wording
Follow-up timing
list_timing_schedules create_timing_schedule update_timing_schedule change_opportunity_timing
New work
create_opportunity check_leads add_leads list_enquiries resolve_enquiry get_enquiry_form customize_enquiry_pageasks the owner first
Your business
get_business_understanding update_business_understanding get_prices save_pricesasks the owner first get_business_settings update_business_settingsasks the owner first get_connections get_follow_up_analytics send_feedback
Rules and records
get_contact_basis get_compliance_status record_data_request list_data_requests resolve_data_request
Events
list_events add_webhookasks the owner first list_webhooks remove_webhook

NO CLICKING AROUND

Facts, ready to read

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.

Sign up free

Questions about an integration? Talk to a person.