Skip to content
Back to skills

app2email-whatsapp

ASecurity

Send and receive WhatsApp Business messages through the app2email API (templates, free-form replies inside the 24 hour window, conversations, contacts, Do Not Call list, broadcasts, webhooks). Use when the user mentions WhatsApp messaging, WhatsApp templates, app2email, or wants an agent to message customers on WhatsApp.

  • 0 votes
  • 0 copies
  • 7 views
  • Added November 16, 2026
content-marketinggoreactrailsgitapi

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 16, 2026

npx -y skills add app2email/skills --skill app2email-whatsapp --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of app2email-whatsapp?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for app2email-whatsapp
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/app2email-app2email-whatsapp/badge)](https://www.skillsdirectory.com/skills/app2email-app2email-whatsapp)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: app2email-whatsapp
description: Send and receive WhatsApp Business messages through the app2email API (templates, free-form replies inside the 24 hour window, conversations, contacts, Do Not Call list, broadcasts, webhooks). Use when the user mentions WhatsApp messaging, WhatsApp templates, app2email, or wants an agent to message customers on WhatsApp.
license: MIT
compatibility: Needs network access to api.app2email.com and an app2email API key (APP2EMAIL_API_KEY) plus the WhatsApp number (APP2EMAIL_NUMBER).
metadata:
  author: app2email
  version: "1.1.0"
  source: generated by sdk/skills/make_skills.py from the app2email OpenAPI spec 1.4.0
---

# app2email WhatsApp

app2email connects a business's own WhatsApp number (official WhatsApp Business Cloud API, the customer owns the number and pays Meta directly) to email, to automations and to agents. This skill is for an agent that sends or reads WhatsApp messages through the REST API `https://api.app2email.com/v1/{number}/...`, through the MCP server `https://api.app2email.com/mcp` (189 tools: https://www.app2email.com/docs/api/mcp), or through the SDKs (`app2email-api` on npm and PyPI).

## Setup

- Base URL: `https://api.app2email.com/v1/YOUR_NUMBER` where `YOUR_NUMBER` is the WhatsApp number you send from, country code first, digits only.
- Auth: `Authorization: Bearer YOUR_API_KEY`. Keys come from https://www.app2email.com/dashboard/apikey and are shown once. Keep them in the environment (`APP2EMAIL_API_KEY`, `APP2EMAIL_NUMBER`).
- First call: `GET /me` (is the key valid, which scopes, which plan, the limits). If it fails, stop and tell the user.
- Reference: https://www.app2email.com/docs/api (one page per call, add `.md` for Markdown), errors https://www.app2email.com/docs/api/errors#<code>, webhooks https://www.app2email.com/docs/api/webhooks. For agents: https://www.app2email.com/llms.txt, https://www.app2email.com/docs-api.md (everything in one file), OpenAPI `https://api.app2email.com/v1/openapi.json`.

A key has scopes: `messages:send` (send, media upload, cancel a broadcast, conversation owner, approvals), `messages:read` (messages, conversations, broadcasts, usage, stats, templates, request log, contacts, stored media), `dnc:manage` (Do Not Call list, compliance export), `webhooks:manage`, `templates:manage` (templates and flows: create, edit, delete, archive, insights; each change applies to every number of the WhatsApp Business Account), `settings:manage` (auto reply, email forwarding, opt-ins, the number's settings), `contacts:manage` (contacts, segments, consent records), `calls:manage` (WhatsApp Calling), `bookings:manage` (appointment bookings, the booking settings, sending a Flow; the booking reads also work with `messages:read`), `submissions:manage` (Submit-Info: forms, submissions, the inbox team, automations and connections), `tickets:manage` (event tickets: events, ticket types, orders, refunds, tickets, check-in, promo codes), or `*` for full access. The Default key (the key made before keys with permissions existed) has `messages:send`, `messages:read`, `dnc:manage` and `webhooks:manage` only - creating templates and changing settings need a key created with Full access. A call the key may not make answers 403 `insufficient_scope`. A key can also be limited to some IP addresses, or expire. `GET /v1/{number}/me` checks a key and shows its name, scopes and limits.

## Start here

1. `GET /me` checks the key.
2. `GET /templates` lists the approved templates, each with the values it needs and a complete `example_request`.
3. `GET /conversations/{contact}/messages` (or `GET /conversations`) tells you whether the contact's reply window is open (`window_open`).
4. `POST /messages` with `"dry_run": true` checks everything and sends nothing.
5. `POST /messages` for real, with an `Idempotency-Key` header. Then `GET /messages/{message_id}` or a webhook reports delivery.

## Which message to send

| Situation | Send |
| --- | --- |
| Starting a conversation, or `window_open` is false | an approved template: `"type": "template"` |
| The reply window is open (the contact wrote within 24 hours) | a free-form message, one contact per call: `"type": "text"` / `image` / `video` / `document` / `audio` (`"voice": true`: a voice note) / `sticker` / `location` / `contacts` / `reaction` (each counts as one message), or a template |
| Buttons, a menu, cards, a form, a location or the contact's number | `"type": "interactive"`: `button`, `list`, `cta_url`, `carousel`, `flow`, `location_request_message`, `request_contact_info` |
| Show that you read it, or that you are typing | `POST /messages/read` with the `message_id` (`"typing": true` for the typing indicator). Free: not counted, no window |
| The same or a personalised message to many numbers | a template with `to` as a list, or `recipients` with per-number values, or `segment` |
| A big list, or the client stops waiting after about 30 seconds | add `"background": true`, then follow `GET /broadcasts/{code}` |
| Later | a template with `"send_at"` (ISO 8601 with a time zone, 1 minute to 29 days ahead) |
| The person asks for a human | `PUT /conversations/{contact}/owner` with `"owner": "human"`, a reason and a summary (see app2email-agent-handoff) |

## Guardrails (read before any send)

- CANNOT send a free-form message (text, image, video, document, buttons) to a contact whose 24 hour window is closed. `window_open: false` or `422 outside_24h_window` means: send an APPROVED template instead, or stop.
- CANNOT send marketing to a number on the Do Not Call list (the API refuses with `403 recipient_opted_out`) or to a person who has not consented to marketing. Utility messages (order updates, reminders the person asked for) do not need marketing consent.
- CANNOT connect a WhatsApp number or pay for a plan: a person does that. An agent can start an account for a person with the Management MCP server (`create_account`, see app2email-setup); otherwise ask the user for the number and a key.
- CANNOT read messages of other numbers: a key belongs to one number.
- Every send reaches a real person's phone and counts against the customer's monthly plan (outgoing WhatsApp messages and outgoing emails together). Confirm the recipients and the content with the user unless they already told you to send; use `dry_run: true` first for template sends; use an `Idempotency-Key` so a retry never sends twice.
- Never put the API key in a message, a log, a web page or a reply to the user.
- When the person asks for a human, stop automating that contact: hand the conversation over (see the agent handoff skill) and say so.

## Errors

Every failed call returns `{ "success": false, "request_id": "...", "error": { "code", "message", "how_to_fix", ... } }`. Read `how_to_fix`; copy `example_request` when it is given; wait `Retry-After` seconds on 429; quote `request_id` to the user when you cannot fix it. The full list is in [references/errors.md](references/errors.md).

## Endpoints

| Group | Calls | Docs |
| --- | --- | --- |
| Messages | `GET /messages`, `POST /messages`, `GET /messages/{message_id}`, `POST /messages/read`, `GET /marketing` | https://www.app2email.com/docs/api/messages |
| Templates | `GET /templates`, `POST /templates`, `GET /templates/{name}`, `PATCH /templates/{name}`, `DELETE /templates/{name}`, `POST /templates/delete`, `POST /templates/{name}/archive`, `POST /templates/{name}/unarchive`, `GET /templates/{name}/compare`, `PUT /templates/{name}/authentication`, `GET /template-previews`, `GET /template-library`, `GET /template-insights`, `POST /template-insights` | https://www.app2email.com/docs/api/templates |
| Media | `POST /media`, `GET /media/{id}`, `DELETE /media/{id}` | https://www.app2email.com/docs/api/media |
| Broadcasts | `GET /broadcasts`, `GET /broadcasts/{code}`, `GET /broadcasts/{code}/results.csv`, `POST /broadcasts/{code}/cancel` | https://www.app2email.com/docs/api/broadcasts |
| Account | `GET /me`, `GET /requests`, `GET /requests/{id}`, `GET /usage/history`, `GET /stats`, `GET /usage`, `GET /usage/meta` | https://www.app2email.com/docs/api/account |
| Conversations | `GET /conversations`, `GET /conversations/{phone}/messages`, `GET /conversations/{contact}`, `PUT /conversations/{contact}/owner` | https://www.app2email.com/docs/api/conversations |
| Do Not Call | `GET /donotcall`, `POST /donotcall`, `DELETE /donotcall/{phone}`, `GET /compliance/export.csv` | https://www.app2email.com/docs/api/do-not-call |
| Settings | `GET /settings/autoreply`, `PUT /settings/autoreply`, `GET /settings/forwarding`, `PUT /settings/forwarding`, `GET /settings/number`, `PUT /settings/number` | https://www.app2email.com/docs/api/settings |
| Opt-ins | `GET /settings/optin`, `PUT /settings/optin`, `GET /optins`, `POST /optins`, `DELETE /optins/{phone}` | https://www.app2email.com/docs/api/opt-ins |
| Contacts | `GET /contacts`, `POST /contacts`, `POST /contacts/import`, `GET /contacts/export.csv`, `GET /contacts/{identity}`, `PATCH /contacts/{identity}`, `DELETE /contacts/{identity}`, `POST /contacts/{identity}/consent`, `GET /segments`, `POST /segments`, `GET /segments/{id}`, `PUT /segments/{id}`, `DELETE /segments/{id}`, `GET /segments/{id}/contacts`, `GET /blocked`, `POST /blocked`, `DELETE /blocked`, `GET /contact-book/{bsuid}`, `DELETE /contact-book/{bsuid}` | https://www.app2email.com/docs/api/contacts |
| Approvals | `GET /approvals`, `POST /approvals/{id}/approve`, `POST /approvals/{id}/reject` | https://www.app2email.com/docs/api/approvals |
| Webhooks | `GET /webhooks`, `POST /webhooks`, `GET /webhooks/samples`, `PATCH /webhooks/{id}`, `DELETE /webhooks/{id}`, `POST /webhooks/{id}/test`, `POST /webhooks/{id}/rotate-secret`, `GET /webhooks/{id}/deliveries`, `GET /webhooks/{id}/deliveries/{event_id}`, `POST /webhooks/{id}/deliveries/{event_id}/redeliver`, `GET /events`, `POST /webhooks/test-url`, `GET /webhooks/catchers`, `POST /webhooks/catchers`, `GET /webhooks/catchers/{token}`, `DELETE /webhooks/catchers/{token}` | https://www.app2email.com/docs/api/webhooks |
| Analytics | `GET /analytics/pricing`, `GET /analytics/messages`, `GET /activity`, `GET /conversions/dataset`, `POST /conversions/dataset`, `GET /conversions/dataset/quality`, `POST /conversions/events` | https://www.app2email.com/docs/api/analytics |
| Book-and-Pay | `GET /bookings/waitlist`, `POST /bookings/waitlist`, `POST /bookings/waitlist/{reference}/remove`, `GET /bookings`, `POST /bookings`, `GET /bookings/availability`, `GET /bookings/reports`, `GET /bookings/{id}`, `POST /bookings/{id}/cancel`, `POST /bookings/{id}/status`, `GET /settings/booking`, `PUT /settings/booking`, `POST /flows/{key}/send` | https://www.app2email.com/docs/api/book-and-pay |
| Calendar | `PATCH /bookings/{id}`, `GET /calendar`, `GET /calendar/blocks`, `POST /calendar/blocks`, `PATCH /calendar/blocks/{id}`, `DELETE /calendar/blocks/{id}`, `GET /bookings/services`, `GET /bookings/staff`, `GET /bookings/next`, `POST /bookings/{id}/reschedule`, `GET /bookings/{id}/notes`, `POST /bookings/{id}/notes`, `GET /bookings/notes`, `POST /bookings/notes`, `DELETE /bookings/notes/{note_id}`, `GET /bookings/links`, `POST /bookings/links`, `DELETE /bookings/links/{code}`, `POST /bookings/holds`, `DELETE /bookings/holds/{reference}` | https://www.app2email.com/docs/api/calendar |
| Calling | `GET /calling/settings`, `PATCH /calling/settings`, `POST /calls`, `GET /calls/permissions/{contact}` | https://www.app2email.com/docs/api/calling |
| Flows | `GET /flows`, `POST /flows`, `GET /flows/{id}`, `PATCH /flows/{id}`, `DELETE /flows/{id}`, `GET /flows/{id}/json`, `PUT /flows/{id}/json`, `POST /flows/{id}/publish`, `POST /flows/{id}/deprecate`, `GET /flows/{id}/preview`, `POST /flows/{id}/preview`, `GET /flows/encryption-key`, `PUT /flows/encryption-key` | https://www.app2email.com/docs/api/flows |
| Number | `GET /health`, `PUT /settings/identity-check`, `GET /profile`, `PATCH /profile`, `PUT /profile/photo`, `PUT /profile/display-name`, `GET /profile/official-business-account`, `POST /profile/official-business-account`, `GET /profile/india-compliance`, `PUT /profile/india-compliance`, `GET /username`, `PUT /username`, `DELETE /username`, `GET /username/suggestions`, `GET /settings/conversation-starters`, `PUT /settings/conversation-starters`, `GET /qr-codes`, `POST /qr-codes`, `GET /qr-codes/{code}`, `PATCH /qr-codes/{code}`, `DELETE /qr-codes/{code}`, `GET /settings/commerce`, `PUT /settings/commerce`, `GET /catalog`, `PUT /catalog` | https://www.app2email.com/docs/api/number |
| Payments | `GET /payments`, `GET /payments/{id}`, `POST /payments/links`, `POST /payments/{id}/refund`, `POST /bookings/{id}/payment`, `GET /bookings/packages`, `GET /bookings/packages/purchases`, `POST /bookings/packages/grant`, `GET /bookings/customers`, `GET /bookings/customers/{contact}`, `PATCH /bookings/customers/{contact}`, `DELETE /bookings/customers/{contact}`, `GET /bookings/polls`, `POST /bookings/polls`, `GET /bookings/polls/{id}`, `POST /bookings/polls/{id}/close`, `POST /bookings/polls/{id}/book` | https://www.app2email.com/docs/api/payments |
| Order-and-Pay | `GET /shop`, `GET /shop/settings`, `PUT /shop/settings`, `GET /shop/categories`, `GET /shop/items`, `POST /shop/items`, `GET /shop/items/{id}`, `PUT /shop/items/{id}`, `DELETE /shop/items/{id}`, `POST /shop/items/{id}/stock`, `POST /shop/items/{id}/sold_out`, `GET /shop/orders`, `POST /shop/orders`, `GET /shop/orders/{id}`, `POST /shop/orders/{id}/action`, `POST /shop/orders/{id}/refund`, `POST /shop/quote`, `GET /shop/report`, `POST /shop/link` | https://www.app2email.com/docs/api/order-and-pay |
| Submit-Info | `GET /submit/guide`, `GET /submit/settings`, `PUT /submit/settings`, `POST /submit/setup`, `GET /submit/presets`, `GET /submit/forms`, `POST /submit/forms`, `GET /submit/forms/{key}`, `PUT /submit/forms/{key}`, `DELETE /submit/forms/{key}`, `POST /submit/forms/{key}/publish`, `POST /submit/forms/{key}/send`, `GET /submit/lists`, `PUT /submit/lists/{key}`, `DELETE /submit/lists/{key}`, `GET /submit/submissions`, `POST /submit/submissions`, `GET /submit/submissions/{id}`, `PATCH /submit/submissions/{id}`, `DELETE /submit/submissions/{id}`, `POST /submit/submissions/{id}/notes`, `POST /submit/submissions/{id}/reply`, `POST /submit/submissions/{id}/files`, `POST /submit/submissions/{id}/run`, `GET /submit/members`, `POST /submit/members`, `PUT /submit/members/{id}`, `DELETE /submit/members/{id}`, `GET /submit/automations`, `POST /submit/automations`, `POST /submit/automations/try`, `GET /submit/automations/{id}`, `PUT /submit/automations/{id}`, `DELETE /submit/automations/{id}`, `GET /submit/runs`, `GET /submit/connections`, `PUT /submit/connections/{key}`, `DELETE /submit/connections/{key}`, `POST /submit/connections/{key}/test`, `POST /submit/connections/{key}/refresh`, `GET /submit/connections/{key}/functions`, `GET /submit/report` | https://www.app2email.com/docs/api/submit-info |
| Tickets-and-Pay | `GET /tickets/events`, `POST /tickets/events`, `GET /tickets/events/{id}`, `PATCH /tickets/events/{id}`, `POST /tickets/events/{id}/publish`, `POST /tickets/events/{id}/cancel`, `GET /tickets/events/{id}/dates`, `POST /tickets/events/{id}/dates`, `PATCH /tickets/dates/{date_id}`, `POST /tickets/dates/{date_id}/cancel`, `GET /tickets/dates/{date_id}/door`, `GET /tickets/events/{id}/types`, `POST /tickets/events/{id}/types`, `PATCH /tickets/types/{type_id}`, `GET /tickets/events/{id}/availability`, `GET /tickets/orders`, `POST /tickets/orders`, `GET /tickets/orders/{id}`, `POST /tickets/orders/{id}/refund`, `POST /tickets/orders/{id}/resend`, `GET /tickets/issued`, `GET /tickets/issued/{id}`, `POST /tickets/issued/{id}/void`, `POST /tickets/check-ins`, `POST /tickets/check-ins/{scan_id}/undo`, `GET /tickets/codes`, `POST /tickets/codes`, `PATCH /tickets/codes/{id}`, `DELETE /tickets/codes/{id}`, `GET /tickets/waitlist`, `GET /tickets/stats`, `GET /settings/tickets`, `PUT /settings/tickets` | https://www.app2email.com/docs/api/tickets-and-pay |

Full parameters, bodies and examples: [references/endpoints.md](references/endpoints.md). Webhook events and signature check: [references/webhooks.md](references/webhooks.md).

## Facts worth remembering

- Free-form replies: `"type": "text" | "image" | "video" | "document"` sends a normal message (not a template) to one number, but only within 24 hours of that contact's last message to your number (app2email stops 15 minutes early; `window_closes_at` in the answer is the exact time, and `window_open` in `GET /v1/{number}/conversations` says whether it is open now). `text`: `{"body": "...", "preview_url": false}`. `image`, `video`, `document`: `link`, base64 `data` (with `filename`) or a media `id`, plus an optional `caption`. Optional `reply_to` quotes one of the contact's messages (a `wamid.` id).
- Rate limit: every call counts against its key (calls without a key: against the IP address). Each answer has the headers `X-RateLimit-Limit`, `X-RateLimit-Remaining`, `X-RateLimit-Reset` (seconds until full again) and `X-RateLimit-Policy`. Over the limit: 429 `rate_limited` with a `Retry-After` header and `error.retry_after_seconds`. Wait, then send again (`limits.rate_limit_mode` in GET /me is `enforce`).
- Several recipients: put a list of numbers in `to`, separated by commas (`"61412345678,61498765432"`), or as a JSON array. Each number gets its own message with the same values; duplicates are sent once. The answer then has one entry per number in `results`, and the HTTP status is 200 when all were accepted, 207 when some were. The most numbers per request is the number's broadcast limit (as on the Broadcast page, up to 1000).
- Media: image, video or document as `link` (app2email downloads it), base64 `data` in the request, or a WhatsApp media `id`. Leave the header component out to send the template's own sample image, video or document. WhatsApp limits: images (JPG/PNG) 5 MB, videos (MP4/3GP) 16 MB, documents 100 MB. Requests can be up to 140 MB (a 100 MB file as base64).
- Plans: every call, reading as well as sending, needs a paid plan (Standard, Professional, Team, Agency or Agent/Developer; 403 `plan_not_allowed`) and a LIVE service (403 `service_not_live`).

Files in this skill

  • SKILL.md17.8 KB
  • references/errors.md33.1 KB
  • references/webhooks.md13.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in content-marketing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.