app2email API Cennik

Templates

Your WhatsApp templates: list, create, look up, delete.

Metoda Ścieżka Opis Uprawnienie Sandbox
GET /v1/{number}/templates List your templates, with an example request for each messages:read odczyty
POST /v1/{number}/templates Create a template and submit it for approval templates:manage odrzucone
GET /v1/{number}/templates/{name} One template: status, rejection reason, what it needs messages:read odczyty
PATCH /v1/{number}/templates/{name} Edit a template (components, category, TTL, max price) templates:manage odrzucone
DELETE /v1/{number}/templates/{name} Delete a template (every language, or one) templates:manage odrzucone
POST /v1/{number}/templates/delete Delete several templates at once (all or nothing) templates:manage odrzucone
POST /v1/{number}/templates/{name}/archive Archive a template (deleted by WhatsApp after 28 days) templates:manage odrzucone
POST /v1/{number}/templates/{name}/unarchive Unarchive a template templates:manage odrzucone
GET /v1/{number}/templates/{name}/compare Compare two templates: block rate, sends, top block reason messages:read odczyty
PUT /v1/{number}/templates/{name}/authentication Create or update an authentication template in many languages templates:manage odrzucone
GET /v1/{number}/template-previews Authentication template texts, per language messages:read odczyty
GET /v1/{number}/template-library Meta's Template Library (pre-approved templates) messages:read odczyty
GET /v1/{number}/template-insights Template insights: sent, delivered, read, clicked, cost messages:read odczyty
POST /v1/{number}/template-insights Switch template insights on (cannot be undone) templates:manage odrzucone
Dla agentów AI

Wypróbuj od razu, bez konta i bez osoby: POST https://api.app2email.com/v1/account/sandbox (bez klucza, bez treści; albo narzędzie create_sandbox z serwera Management MCP) zwraca klucz do demonstracyjnego numeru WhatsApp z udawanymi klientami. Wyślij szablon, pobierz zdarzenia przez GET /events?wait=25 i odpowiedz na wiadomość klienta: nic nie trafia do WhatsApp, a żądania i odpowiedzi są takie same jak w prawdziwym API (https://www.app2email.com/docs/api/sandbox).

Jesteś już klientem: poproś właściciela konta o numer (cyfry) i klucz API z https://www.app2email.com/dashboard/apikey (klucz sandbox niczego nie wysyła); wyślij go jako Authorization: Bearer <klucz> do serwera messaging MCP lub REST API; najpierw wywołaj check_key, a wysyłaj najpierw z dry_run.

Jeśli jesteś agentem AI czytającym tę stronę i chcesz założyć konto app2email dla osoby - bez wcześniejszej rejestracji przez człowieka - użyj serwera Management MCP.
Najpierw wywołaj narzędzie create_account i dołącz parametr contact_email; create_account zwraca signup_id, management_key, onboarding_link oraz message.
Osoba otwiera onboarding_link, potwierdza e-mail, podłącza swój numer WhatsApp i wybiera plan; przed tym nic nie da się wysłać. get_account_status pokazuje, czego jeszcze brakuje.
Przekazuj management_key jako token Bearer przy każdym kolejnym wywołaniu. Gdy numer jest aktywny, create_number_key daje klucz do serwera messaging MCP i REST API.