Skip to content

Teiwah API

WhatsApp automation for builders. Receive messages via webhooks, send replies via a tiny REST API.

Teiwah connects a WhatsApp number to your automation. The model is intentionally small:

flowchart LR
  WA[Incoming WhatsApp message] --> H[Teiwah webhook]
  H --> A[AI / n8n / your backend]
  A --> S[POST /messages]
  S --> WA2[WhatsApp reply]

Send messages

One endpoint, POST /messages, for text plus image, voice notes, audio, video, and documents — addressed by a single chatId.

Receive webhooks

Inbound WhatsApp events — 1:1 and group — are delivered to your webhook URL in the same chatId + text/media shape you send.

Session API keys

Each connected WhatsApp session has its own Bearer key, issued by the Teiwah dashboard.

Media by URL

Media is referenced by URL. Download inbound media on demand; send outbound media by URL or base64.

  1. Create a session and connect WhatsApp in the Teiwah dashboard.
  2. Copy the session API key.
  3. Follow the HTTP Quickstart or install the TypeScript SDK.