wapi.kz: WhatsApp attribution and API

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

Facts

Users (last 30 days)0
HandshakeHealthy
Auth neededNone
Tool count33
Latency2076 ms
Last checked (UTC)2026-11-30T19:50:18.041Z

Health history

Checked (UTC)StatusLatencyError
2026-11-30T19:50:18.041ZHealthy2076
2026-11-28T10:15:12.594ZHealthy2352
2026-11-26T02:20:34.682ZHealthy5287
2026-11-23T20:21:10.063ZDown–The operation was aborted due to timeout

Tools (33)

send_messageSend 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_messageReact 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_messageEdit the text of your own text message (WhatsApp allows it within 15 minutes after sending).
delete_messageDelete your own message for everyone in WhatsApp (within about 2 days after sending). The record stays in the history with deleted_at.
list_groupsWhatsApp 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_groupOne group of the number and its participants: jid, phone (null if hidden), name, admin.
list_numbersThe account's WhatsApp numbers: id (for the from parameter), phone, whether it is connected (connected), status (active / paused — balance ran out).
get_messagesLatest 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_mediaA 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_exportBuild 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_exportExport 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_balanceAccount balance in tenge (KZT), the daily charge (330 ₸ per active number) and how many days it will last.
get_limitsThe 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_numberCheck whether a phone number is on WhatsApp before sending. phone — digits with country code (77011234567). Limit: 200 checks per day per number.
get_statusSummary: numbers (connected or not) and balance.
add_numberAdd 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_numberLink 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_webhookSet 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_analyticsEnd-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_leadsLeads — 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_leadLead 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_leadChange 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_linksTracking 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_linkCreate 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_clicksTracking 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_statsTracking 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_leadsTurn 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_accountsConnected 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_objectsCampaigns, 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_statusPause 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_budgetChange 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_adsFetch 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_changesLog 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.