whatsapp-cloud-api

whatsapp-cloud-api is a skill for Claude Code, Codex from ashish7802/awesome-api-skills. It costs 0 tokens per session (841 once invoked), scanned A, original, MIT.

A web API for sending WhatsApp Business messages and receiving customer messages and delivery updates. WhatsApp is a messaging service, and webhooks are HTTP callbacks that notify your application about events.

In plain words
What is it for?
Use it to send template or interactive messages, receive customer messages, process delivery receipts, and verify incoming webhook requests.
Why use it?
It connects a service to WhatsApp without manually handling messages in the app. It also provides a standard way to receive replies and delivery status changes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to send template or interactive messages, receive customer messages, process delivery receipts, and verify incoming webhook requests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ashish7802/awesome-api-skills/whatsapp-cloud-api
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ashish7802/awesome-api-skills --skill whatsapp-cloud-api
Clone the repo
git clone --depth 1 https://github.com/ashish7802/awesome-api-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for whatsapp-cloud-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/ashish7802/awesome-api-skills/whatsapp-cloud-api/github.svg)](https://agentmods.dev/skills/ashish7802/awesome-api-skills/whatsapp-cloud-api)
Your own site
<a href="https://agentmods.dev/skills/ashish7802/awesome-api-skills/whatsapp-cloud-api"><img src="https://agentmods.dev/badge/skills/ashish7802/awesome-api-skills/whatsapp-cloud-api/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for whatsapp-cloud-api

Your own site · 80×15
<a href="https://agentmods.dev/skills/ashish7802/awesome-api-skills/whatsapp-cloud-api"><img src="https://agentmods.dev/badge/skills/ashish7802/awesome-api-skills/whatsapp-cloud-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 841 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00841
Opus 5.5 $0.00000 $0.00336
Sonnet 5.5 $0.00000 $0.00168
Haiku 4.5 $0.00000 $0.00084

Measured 11d ago against content hash f9f40e1b7fcf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

whatsapp-cloud-api scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (examples/quickstart.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/whatsapp-cloud-api/SKILL.md · 56 lines

How it starts

The opening of the file, as written. The whole thing — 56 lines — stays where its author put it; the contents beside it link to each section on GitHub.

WhatsApp Business Cloud API Skill

Verification Tier: code_example_tested | Last Verified: 2026-11-18
Official Docs: https://developers.facebook.com/docs/whatsapp/cloud-api

Overview

The WhatsApp Cloud API (hosted by Meta Graph API at https://graph.facebook.com/v22.0/<PHONE_NUMBER_ID>/messages) lets applications send template and interactive messages and receive real-time customer messages and delivery receipts via webhooks.

Authentication

Use a permanent System User Access Token (WHATSAPP_ACCESS_TOKEN) from Meta Business Manager sent as Authorization: Bearer <token>. Never use temporary 24-hour developer tokens in production.

import crypto from 'node:crypto';

export function verifyWhatsAppSignature(rawBody: Buffer, sigHeader: string, appSecret: string): boolean {
  const expected = `sha256=${crypto.createHmac('sha256', appSecret).update(rawBody).digest('hex')}`;
  const a = Buffer.from(sigHeader, 'utf8');
  const b = Buffer.from(expected, 'utf8');
  return a.length === b.length && crypto.timingSafeEqual(a, b);
}

Core Concepts

  • 24-Hour Customer Service Window: Free-form text/media messages can ONLY be sent within 24 hours of the user's last inbound message. Outside that window, you MUST send a pre-approved Message Template.
  • GET Webhook Handshake: Meta validates your callback URL by sending GET ?hub.mode=subscribe&hub.verify_token=<token>&hub.challenge=<challenge>. Compare hub.verify_token with WHATSAPP_VERIFY_TOKEN and return the raw hub.challenge string with HTTP 200.
  • POST Webhook Signature: Every webhook POST includes X-Hub-Signature-256: sha256=<hex> signed with your Meta App Secret (WHATSAPP_APP_SECRET) over the exact raw request bytes. Always verify with crypto.timingSafeEqual.

Error Handling & Rate Limits

  • Return HTTP 200 OK quickly to Meta webhooks (even for status updates like delivered/read) and process heavy work asynchronously via a queue.
  • Deduplicate inbound messages using message.id (wamid...) because Meta may redeliver webhooks.
  • Monitor messaging tier limits and Graph API error codes (131047 re-engagement message required, 130429 rate limit hit).

Read the full file on GitHub · 56 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 56 lines · 0 tokens per session scan A f9f40e1b7fcf

Subscribe to this mod's changes

whatsapp-cloud-api is a skill published in the GitHub repository ashish7802/awesome-api-skills (13 stars, last pushed 11d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 841 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-19.

Related

whatsapp-cloud-api compared with skills from other repositories

whatsapp-cloud-api next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
whatsapp-cloud-apiashish7802/awesome-api-skillsSkill1311d agoMITA0Claude Code, Codex
api-testing-patternsproffesor-for-testing/agentic-qeSkill537yesterdayMITA34Claude Code
contract-testingproffesor-for-testing/agentic-qeSkill537yesterdayMITA35Claude Code
iii-observeiii-hq/iiiSkill19ktodaynoneA113Claude Code, Codex
iii-sdk-referenceiii-hq/iiiSkill19ktodaynoneA57Claude Code, Codex
presentationiii-hq/iiiSkill19ktodaynoneA51Claude Code, Codex
iii-core-primitivesiii-hq/iiiSkill19ktodaynoneA56Claude Code, Codex