WhatsApp Messaging API by Retention Stack
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| WHATSAPP_API_KEY | Yes | Your RapidAPI key. The server exits on startup if it is missing. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_sessionsA | List all WhatsApp sessions belonging to this API key. |
| create_sessionA | Create a new WhatsApp session. Needs an account key (ak_live_...). Returns the session name and its own session token; pair it with get_qr_code next. |
| get_session_statusA | Get the current status of a session (STARTING, SCAN_QR_CODE, WORKING, FAILED, STOPPED, PASSKEY_REQUIRED, PASSKEY_CONFIRMATION_REQUIRED). PASSKEY_* means WhatsApp wants a passkey, which must be signed in a browser: tell the user to finish linking at https://whatsapp-messaging.retentionstack.agency/app. These tools cannot do it. |
| get_qr_codeB | Get the QR code to authenticate a session by scanning with WhatsApp (Settings > Linked Devices). |
| request_pairing_codeB | Request an 8-digit pairing code as an alternative to scanning a QR code. |
| check_contact_existsB | Check whether a phone number is registered on WhatsApp before sending to it. |
| send_text_messageB | Send a WhatsApp text message to a contact, group, or channel. |
| send_imageB | Send an image to a contact, group, or channel via a public URL. |
| send_fileB | Send a file (PDF, document, etc.) to a contact, group, or channel via a public URL. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 9 tools
Each tool targets a distinct resource+action: session lifecycle (create/list/status/QR/pairing), contact verification, and three clearly separated send operations by media type. The only near-pair, get_qr_code vs request_pairing_code, is explicitly framed as alternative authentication methods in the descriptions.
All nine tools follow a strict snake_case verb_noun pattern (check_contact_exists, create_session, get_qr_code, list_sessions, request_pairing_code, send_text_message, etc.). No camelCase or vague bare verbs anywhere.
Nine tools is well within the ideal 3-15 range and each maps to a concrete step in the session-setup or message-sending workflow. Nothing feels padded or redundant.
Sending is well covered (text, image, file) and session creation/authentication is complete, but the lifecycle has a dead end: no stop_session, logout, or delete_session despite get_session_status reporting STOPPED, and no tool to read/receive messages or manage groups/channels. Agents can set up and send but cannot tear down a session or ingest inbound traffic.