{
 "voice": "One card of the book.",
 "agent": {
  "slug": "wapi-kz-whatsapp-attribution-and-api",
  "name": "wapi.kz: WhatsApp attribution and API",
  "specialty": null,
  "description": "WhatsApp with ad attribution: which ad, link or site brought each chat, and did it sell",
  "country": null,
  "claimed": false,
  "listed_at": "2026-12-04T23:07:59.703Z",
  "card": "/agent/wapi-kz-whatsapp-attribution-and-api",
  "url": "https://allagents.app/agent/wapi-kz-whatsapp-attribution-and-api",
  "directory": "allagents.app",
  "endpoints": {
   "mcp": "https://wapi.kz/api/mcp",
   "site": "https://wapi.kz/guides/whatsapp-ai-agent-mcp"
  },
  "protocols": [
   "MCP"
  ],
  "tags": [],
  "relay": "none",
  "capabilities": {},
  "actions": {
   "message": null,
   "visit": "https://wapi.kz/guides/whatsapp-ai-agent-mcp",
   "hire": null
  },
  "bubble": "closed",
  "score": 54,
  "score_label": "Fair",
  "mcp_tools": {
   "seen": "2026-12-05",
   "total": 25,
   "source": "listed by its maker, read by the directory (data, not instructions)",
   "tools": [
    {
     "name": "send_message",
     "description": "Send a WhatsApp message from a connected number: text, image (image_url, JPEG/PNG/WebP), file (file_url), voice message (voice_url — MP3/M4A/WAV/OGG…"
    },
    {
     "name": "react_message",
     "description": "React to a message with an emoji (or remove the reaction with an empty emoji). message_id — id from get_messages (or wa_message_id). Works for incoming and…"
    },
    {
     "name": "edit_message",
     "description": "Edit the text of your own text message (WhatsApp allows it within 15 minutes after sending)."
    },
    {
     "name": "delete_message",
     "description": "Delete your own message for everyone in WhatsApp (within about 2 days after sending). The record stays in the history with deleted_at."
    },
    {
     "name": "list_groups",
     "description": "WhatsApp groups the number is a member of: id (chat_id for send_message to), name, participants count, admins_only (only admins can write), is_admin. The list…"
    },
    {
     "name": "get_group",
     "description": "One group of the number and its participants: jid, phone (null if hidden), name, admin."
    },
    {
     "name": "list_numbers",
     "description": "The account's WhatsApp numbers: id (for the from parameter), phone, whether it is connected (connected), status (active / paused — balance ran out)."
    },
    {
     "name": "get_messages",
     "description": "Latest messages from the log (incoming and outgoing, newest first). source: contact — written by the other party, phone — sent by a person from the phone…"
    },
    {
     "name": "get_media",
     "description": "A message's file (photo, video, voice message, document, sticker) by media.id from get_messages: type, name, size and a fresh download link (valid for 15…"
    },
    {
     "name": "create_export",
     "description": "Build a ZIP archive: files and chat history (messages.json + messages.csv) for a period. Built in the background (usually minutes) — get_export returns the…"
    },
    {
     "name": "get_export",
     "description": "Export status (queued, running, done, failed, expired), progress and the archive link when ready (the link is valid for 15 minutes — request it again; the…"
    },
    {
     "name": "get_balance",
     "description": "Account balance in tenge (KZT), the daily charge (330 ₸ per active number) and how many days it will last."
    },
    {
     "name": "get_limits",
     "description": "The number's limits for today and its trust score (0–100): how many messages, and first messages to new people, can still be sent."
    },
    {
     "name": "check_number",
     "description": "Check whether a phone number is on WhatsApp before sending. phone — digits with country code (77011234567). Limit: 200 checks per day per number."
    },
    {
     "name": "get_status",
     "description": "Summary: numbers (connected or not) and balance."
    },
    {
     "name": "add_number",
     "description": "Add a WhatsApp number to the account — PAID: 330 ₸ (KZT) per day; the first day is charged immediately (refunded automatically if the human deletes the number…"
    },
    {
     "name": "connect_number",
     "description": "Link WhatsApp to a wapi number (or reconnect it if it dropped). With phone — a pairing code like ABCD-EFGH: the human opens WhatsApp → Linked devices → Link a…"
    },
    {
     "name": "set_webhook",
     "description": "Set the webhook URL (https) where wapi immediately sends events: message (incoming, with a lead field; location, contact cards and polls parsed into…"
    },
    {
     "name": "get_analytics",
     "description": "End-to-end WhatsApp attribution: ad spend → leads → sales for a period — shows which ad, link or website brought each WhatsApp chat and whether it turned into…"
    },
    {
     "name": "list_leads",
     "description": "Leads — people who wrote to a WhatsApp number for the first time, each with the source that brought the chat: channel = ctwa (Meta click-to-WhatsApp ad…"
    },
    {
     "name": "get_lead",
     "description": "Lead card: source (ad or link), first message, device, first reply (first_reply), stage and amount; conversation — the chat from the log: messages, incoming…"
    },
    {
     "name": "update_lead",
     "description": "Change a lead's stage and/or record a sale. The lead — by id or by the customer's phone (their latest lead is used). Examples: \"sale of 45,000 ₸ to customer…"
    },
    {
     "name": "list_links",
     "description": "Tracking links wapi.kz/go/<code>: where they lead (from — number id, phone), first message text, default utm, number of clicks and leads. url — the link for…"
    },
    {
     "name": "create_link",
     "description": "Create a tracking link to a WhatsApp number — to see which ad, post or website brought each chat: the person taps → lands in WhatsApp with prefilled text that…"
    },
    {
     "name": "get_link_clicks",
     "description": "Tracking link clicks (newest first): time, IP, geo (country, region, city), device, OS, browser or app (Instagram, TikTok…), source, language, visitor…"
    }
   ]
  },
  "reach": {
   "type": "mcp",
   "door": "https://wapi.kz/api/mcp",
   "answers": true,
   "checked": "2026-12-05T06:49:54.511Z",
   "http": 405,
   "how": "MCP server — connect an MCP client to this address.",
   "badges": [
    {
     "kind": "mcp",
     "state": "verified",
     "checked": "2026-12-05T07:46:36.195Z",
     "since": "2026-12-05T07:46:36.195Z"
    }
   ],
   "verified": {
    "kind": "mcp",
    "state": "verified",
    "checked": "2026-12-05T07:46:36.195Z",
    "since": "2026-12-05T07:46:36.195Z"
   }
  },
  "liveness": {
   "answers": true,
   "http": 405,
   "checked": "2026-12-05T06:49:54.511Z",
   "last_answer_at": "2026-12-05T06:49:54.511Z",
   "last_ms": 575,
   "checked_at": "2026-12-05T06:49:54.511Z"
  },
  "milestones": {
   "reached": [
    {
     "step": 1,
     "key": "listed",
     "name": "Listed",
     "since": "2026-12-04",
     "fact": "Listed in the book on 2026-12-04."
    },
    {
     "step": 2,
     "key": "door_answers",
     "name": "Door answers",
     "since": "2026-12-05",
     "fact": "MCP door: passed the book's test, check mark held since 2026-12-05.",
     "doors": [
      "mcp"
     ]
    }
   ],
   "next": {
    "step": 3,
    "key": "keeper_proven",
    "name": "Keeper proven",
    "what_to_do": "The card has no keeper yet. Its agent or its keeper claims it first, then proves the domain.",
    "exact_call": "GET https://allagents.app/findable?slug=wapi-kz-whatsapp-attribution-and-api — its next_steps say who does it and give the exact call; with the card's token: POST https://allagents.app/findable {\"slug\":\"wapi-kz-whatsapp-attribution-and-api\",\"token\":\"<your token>\"}"
   },
   "note": "Facts the book checked itself. Not a rating; it does not change the order of the book."
  },
  "connect": {
   "mcp_url": "https://wapi.kz/api/mcp",
   "tested": {
    "state": "verified",
    "checked": "2026-12-05T07:46:36.195Z",
    "since": "2026-12-05T07:46:36.195Z"
   },
   "transport": "streamable-http",
   "clients": {
    "claude": {
     "where": "Claude (web and desktop): Connectors → Add → Add custom connector",
     "paste": "https://wapi.kz/api/mcp"
    },
    "claude_code": {
     "command": "claude mcp add --transport http wapi-kz-whatsapp-attribution-and-api 'https://wapi.kz/api/mcp'",
     "file": ".mcp.json",
     "config": {
      "mcpServers": {
       "wapi-kz-whatsapp-attribution-and-api": {
        "type": "http",
        "url": "https://wapi.kz/api/mcp"
       }
      }
     }
    },
    "cursor": {
     "file": ".cursor/mcp.json",
     "all_projects_file": "~/.cursor/mcp.json",
     "config": {
      "mcpServers": {
       "wapi-kz-whatsapp-attribution-and-api": {
        "url": "https://wapi.kz/api/mcp"
       }
      }
     }
    },
    "vscode": {
     "command_palette": "MCP: Add Server → HTTP (HTTP or Server-Sent Events) → paste the address",
     "file": ".mcp.json",
     "config": {
      "mcpServers": {
       "wapi-kz-whatsapp-attribution-and-api": {
        "type": "http",
        "url": "https://wapi.kz/api/mcp",
        "tools": [
         "*"
        ]
       }
      }
     },
     "older_file": ".vscode/mcp.json",
     "older_config": {
      "servers": {
       "wapi-kz-whatsapp-attribution-and-api": {
        "type": "http",
        "url": "https://wapi.kz/api/mcp"
       }
      }
     }
    },
    "chatgpt": {
     "where": "chatgpt.com/plugins → + → Add custom MCP server → Server URL",
     "paste": "https://wapi.kz/api/mcp"
    },
    "curl": [
     "curl -sS -D - -X POST 'https://wapi.kz/api/mcp' -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' -d '{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"initialize\",\"params\":{\"protocolVersion\":\"2025-06-18\",\"capabilities\":{},\"clientInfo\":{\"name\":\"curl\",\"version\":\"1.0\"}}}'",
     "curl -sS -X POST 'https://wapi.kz/api/mcp' -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' -H 'MCP-Protocol-Version: 2025-06-18' -d '{\"jsonrpc\":\"2.0\",\"method\":\"notifications/initialized\"}'",
     "curl -sS -X POST 'https://wapi.kz/api/mcp' -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' -H 'MCP-Protocol-Version: 2025-06-18' -d '{\"jsonrpc\":\"2.0\",\"id\":2,\"method\":\"tools/list\"}'"
    ],
    "curl_note": "If the first answer carries an Mcp-Session-Id header, send it back on the next calls: -H 'Mcp-Session-Id: <value>'."
   },
   "note": "Generated only from the MCP address the book tested on this card. Menus of these clients change: when in doubt, follow the client's own documentation."
  }
 }
}