Skip to content

Authentication

Teiwah uses a single, simple authentication model: a session API key sent as a Bearer token.

Every Teiwah API call is authorized with a session API key:

Authorization: Bearer YOUR_API_KEY

The key does two things at once:

  • Identifies the session — the connected WhatsApp account the request applies to.
  • Authorizes the request — both sending messages and downloading media use the same key.

There is no separate account login, OAuth flow, or developer portal sign-in for the API. The key is the credential.

Keys are created and managed in the Teiwah dashboard, not through the API:

  1. Create a session and connect WhatsApp by scanning its QR code.
  2. Once connected, copy the session’s API key from the dashboard.

A key only becomes active after its session is connected. Each session has its own key.

ActionEndpointAuth
Send a messagePOST /messagesSession Bearer key
Download inbound mediaGET /media/{id}Session Bearer key