About whapi
A practical guide for AI agents building WhatsApp integrations with WHAPI.cloud, covering rules for messaging, groups, channels, communities, and webhooks. It also directs agents to check whapi-mcp status and treat its tool schema and the API reference as authoritative.
Key features
- 01Guidance across seven API rule categories
- 02MCP setup and connection-status checks
- 03Messaging and webhook instructions
- 04Group, channel, and community management
- 05Rules against inventing parameters
Use cases
- 01Configure WHAPI MCP in Cursor or Claude Desktop
- 02Build WhatsApp messaging or broadcast systems
- 03Set up webhook-based message reception
- 04Troubleshoot unexpected WHAPI API behavior
MCP support
The skill requires checking whapi-mcp before starting and handling connection, pairing, or authentication issues based on its status. whapi-mcp exposes API methods; the skill supplies usage guidance and parameter-validation rules.
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ whapi-cloud/ whapi-whatsapp-api-skill --skill whapiAfter installing, type/whapiin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
AGENTS.mdCLAUDE.mdREADME.mdreferences/_contributing.md_sections.md_template.mdchannels-management.mdcommunities-management.mdcore-auth.mdcore-chat-id.mdcore-mcp-setup.mdgroups-management.mdmsg-interactive.mdmsg-media.mdmsg-text.mdmsg-type-selection.mdpattern-bot.mdpattern-broadcast.mdrecv-history.mdrecv-webhooks.mdDetails
From the project READMEWHAPI.cloud WhatsApp API — Agent Skill
Practical guide for AI agents building WhatsApp integrations via WHAPI.cloud. Contains rules across 7 categories, prioritized to prevent the most frequent mistakes and cover the most-used API features.
Prerequisites — MCP Setup Check
Before starting any task, verify that the whapi-mcp MCP server is available:
- Attempt to call the
checkHealthtool. - If it responds successfully — proceed.
- If the tool is not found — the MCP server is not installed.
Guide the user through installation:
references/core-mcp-setup.md. - If the tool returns 404 ("Channel not found") — the token is invalid or the channel
does not exist. Guide the user:
references/core-mcp-setup.mdsection "Token is Missing or Invalid". - If the tool responds, check
status.textin the response:
| status.text | Meaning | Action |
|---|---|---|
AUTH | Connected and operational | Proceed |
QR | Waiting for QR code scan | Open the channel dashboard and scan the QR code to pair |
INIT | Server initialization | Wait 40-50 seconds; if persists, contact WHAPI support |
LAUNCH | Connecting to WhatsApp account | Wait a few seconds; if persists, contact WHAPI support |
STOP | Channel deactivated | Check subscription status at panel.whapi.cloud/dashboard |
SYNC_ERROR | Sync failure | Log out the channel and reconnect it; GET requests will fail until resolved |
For QR pairing: references/core-mcp-setup.md section "Where to Get Your API Token".
When to Apply
Reference these guidelines when:
- Setting up the WHAPI MCP in Cursor, Claude Desktop, or any MCP-compatible client
- Sending messages (text, media, interactive, polls)
- Receiving incoming messages via webhooks
- Managing groups, channels (newsletters), or communities
- Building bots, broadcast systems, or CRM integrations
- Troubleshooting unexpected API behavior
API Coverage and MCP Fallback
This skill covers the most-used operations and prevents the most common mistakes. It does NOT document every WHAPI endpoint.
If the operation you need is not described in any reference file:
- Check available MCP tools —
whapi-mcpexposes all API methods directly. - Apply
core-chat-id.mdrules for Chat ID format regardless of the endpoint. - Apply
core-auth.mdrules for authentication regardless of the endpoint. - Use ONLY parameter names from the MCP tool schema — do NOT invent parameters.
- Validate against the WHAPI API Reference if unsure.
The MCP is the source of truth for available methods. The skill is the source of truth for correct usage patterns and anti-hallucination rules.
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Core Concepts | CRITICAL | core- |
| 2 | Messaging | CRITICAL | msg- |
| 3 | Receiving | CRITICAL | recv- |
| 4 | Groups | HIGH | groups- |
| 5 | Channels | HIGH | channels- |
| 6 | Communities | MEDIUM | communities- |
| 7 | Patterns | HIGH | pattern- |
How to Use
Read individual reference files for detailed explanations and code examples:
1. references/core-mcp-setup.md ← install and configure the MCP first
2. references/core-chat-id.md ← understand Chat ID formats (most common error)
3. references/core-auth.md ← authenticate direct REST calls
4. references/msg-type-selection.md ← choose the right send tool
5. references/recv-webhooks.md ← set up receiving messages
Each reference file contains:
- Why this matters (1-2 sentences)
- Incorrect example with explanation
- Correct example with explanation
- Anti-hallucination checklist (parameters that do NOT exist)
- WHAPI-specific notes