kz.wapi/whatsapp · v0.5.1 · communication
wapi.kz: WhatsApp attribution and API is healthy: it completed an MCP handshake in 2076 ms and exposes 33 tools.
WhatsApp with ad attribution: which ad, link or site brought each chat, and did it sell
Endpoint: https://wapi.kz/api/mcp (streamable-http)
Repository · Website · JSON · Add to my inventory
| Users (last 30 days) | 0 |
| Handshake | Healthy |
| Auth needed | None |
| Tool count | 33 |
| Latency | 2076 ms |
| Last checked (UTC) | 2026-11-30T19:50:18.041Z |
| Checked (UTC) | Status | Latency | Error |
|---|---|---|---|
| 2026-11-30T19:50:18.041Z | Healthy | 2076 | |
| 2026-11-28T10:15:12.594Z | Healthy | 2352 | |
| 2026-11-26T02:20:34.682Z | Healthy | 5287 | |
| 2026-11-23T20:21:10.063Z | Down | – | The operation was aborted due to timeout |
send_message | 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, converted to a WhatsApp voice message), video (video_url — MP4; MOV/WebM are converted), location, contact card or poll. Size — up to the WhatsApp lim |
react_message | 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 own messages. |
edit_message | Edit the text of your own text message (WhatsApp allows it within 15 minutes after sending). |
delete_message | Delete your own message for everyone in WhatsApp (within about 2 days after sending). The record stays in the history with deleted_at. |
list_groups | 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 is cached for 5 minutes. |
get_group | One group of the number and its participants: jid, phone (null if hidden), name, admin. |
list_numbers | The account's WhatsApp numbers: id (for the from parameter), phone, whether it is connected (connected), status (active / paused — balance ran out). |
get_messages | 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, api/mcp — sent by a program. chat — the other party's phone or chat_id, to get a single conversation. Messages with a file have media {id, kind, |
get_media | 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 minutes). |
create_export | 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 status and the link. At most 2 at a time and 10 per day. |
get_export | 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 archive is kept for 24 hours). |
get_balance | Account balance in tenge (KZT), the daily charge (330 ₸ per active number) and how many days it will last. |
get_limits | 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. |
check_number | Check whether a phone number is on WhatsApp before sending. phone — digits with country code (77011234567). Limit: 200 checks per day per number. |
get_status | Summary: numbers (connected or not) and balance. |
add_number | 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 within 10 minutes without linking WhatsApp), then daily until the number is deleted. FREE TRIAL: an account without payments and with less th |
connect_number | 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 device → "Link with phone number instead" and enters the code (the most convenient option for an agent; at most 4 codes per 10 minutes). With |
set_webhook | Set the webhook URL (https) where wapi immediately sends events: message (incoming, with a lead field; location, contact cards and polls parsed into wapi.details), message.out (sent by a person from the phone), message.ack (delivered/read), session.status (connection; on FAILED the reason is in wapi |
get_analytics | 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 a sale. group — row breakdown: campaign (campaigns), adset (ad sets), ad (ads), source (source: meta_ctwa — Meta click-to-WhatsApp ads, link: |
list_leads | 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: ad.ad_id, adset_id, campaign_id, ad text and link), link (tracking link wapi.kz/go/…: click.utm_*, fbclid, gclid), organic (came on their own). mat |
get_lead | Lead card: source (ad or link), first message, device, first reply (first_reply), stage and amount; conversation — the chat from the log: messages, incoming, outgoing, last_at, incoming_after_reply (how many messages the person sent after our first reply — whether the conversation continued), outgoi |
update_lead | 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 77011234567" → phone=77011234567, stage=won, value=45000; "they bought on November 20" → won_at=2026-11-20; "the customer is qualified" → stage |
list_links | 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 ads, bio, QR; snippet — script code for a website (routes the site's WhatsApp buttons through this link with utm and fbclid). |
create_link | 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 carries an invisible click marker — and their first message is matched to the click (utm, fbclid, gclid). Without the marker (the person eras |
get_link_clicks | Tracking link clicks (newest first): time, IP, geo (country, region, city), device, OS, browser or app (Instagram, TikTok…), source, language, visitor (visitor; returning — clicked before), utm, fbclid/gclid, website page, and the lead the click was matched to (lead: id, phone, stage; null — the per |
get_link_stats | Tracking link click stats for a period — which sources, campaigns and pages bring WhatsApp chats and sales: clicks, unique clicks, visitors and returning visitors, how many reached a WhatsApp chat (leads, conversion %), sales and revenue, clicks without a lead, median minutes from click to message, |
set_number_leads | Turn counting of organic leads on a number on or off: when on, every new contact who came without an ad or link becomes a lead (organic). Existing contacts do not become leads. Leads from ads and links are always counted. |
list_ad_accounts | Connected Meta ad accounts (Facebook / Instagram ads) and the connections to them. For each ad account: id (for the account parameter), external_id (act_…), name, currency, enabled — whether it is synced, synced_at — when data was last fetched, error — what went wrong, capi_enabled — whether convers |
list_ad_objects | Campaigns, ad sets and ads from connected Meta ad accounts (data from the last sync, hourly). Fields: external_id (the Meta id — for set_ad_status / set_ad_budget), level (campaign | adset | ad), name, status (what is set: ACTIVE / PAUSED), effective_status (what is actually happening: ACTIVE, CAMPA |
set_ad_status | Pause or launch a campaign, ad set or ad in Meta. status: PAUSED — pause (the ad stops showing and spending money), ACTIVE — launch (the ad starts spending the client's budget). Pausing a campaign stops all its ad sets and ads. The change is logged (list_ad_changes). Before launching, make sure the |
set_ad_budget | Change the daily (daily_budget) or lifetime (lifetime_budget) budget of a campaign or ad set in Meta. WARNING: this spends the client's money — raising the budget immediately increases spend charged to their card/account in Meta. Change it only if the human asked for it or explicitly agreed. The amo |
sync_ads | Fetch fresh data from Meta now: campaigns, ad sets, ads, budgets and stats for today and yesterday (on the first run of the day — for 30 days). Normally this happens automatically (structure hourly, stats every 30 minutes) — call it if you have just changed something in Ads Manager. No more than 3 t |
list_ad_changes | Log of ad changes made through wapi (dashboard, API, MCP, CLI): what changed (field: status, daily_budget, lifetime_budget), before → after (budget in the ad account currency), who (by), whether Meta accepted it (ok) and its response. Newest first. |