Skip to content

API Overview ​

Every Zawa endpoint on one page. If this is your first time, stop by the Quick Start first.

The Basics ​

  • Base URL: https://api-zawa.azickri.com
  • Authentication: the id and session-id headers from Create Session, required on every endpoint except POST /session
  • Format: JSON for both requests and responses
  • Errors: always { "statusCode": number, "message": string }. See Errors & Fixes

Session API ​

Create, monitor, and manage your WhatsApp number's connection.

MethodEndpointPurpose
POST/sessionCreate a session and get its id + sessionId
GET/sessionGet session info, the QR code, and connection status
PUT/sessionUnlink the device and generate a new QR code
DELETE/sessionDelete the session and all of its data

Send API ​

Send things from your number.

MethodEndpointPurpose
POST/messageSend text, images, video, audio, documents, locations, or contacts
POST/statusPost a text, image, or video status
POST/typingShow a typing or recording-audio indicator

Channel API ​

Read data from the WhatsApp channels (newsletters) you follow.

MethodEndpointPurpose
GET/channelList the channels you follow
GET/channel/{channelId}Get one channel's details
GET/channel/messageChannel message history, 100 per page

Group API ​

Read data from the WhatsApp groups you're in.

MethodEndpointPurpose
GET/groupList the groups you're in
GET/group/{groupId}Get one group's details
GET/group/memberList a group's members

What about webhooks?

The current Zawa engine has no webhook, so Zawa can't notify you about incoming messages yet. The old webhook docs are kept on the Webhook (Deprecated) page for reference.