Documentation Index
Fetch the complete documentation index at: https://docs.wazzapi.com/llms.txt
Use this file to discover all available pages before exploring further.
Python SDK
The official Python SDK gives you a typed client for the public WazzAPI surface. Use it to:- send direct WhatsApp messages
- pair SDK usage with the public API for device inventory and sender selection
- list, create, update, and delete contacts
- create templates and preview rendered content
- verify signed WazzAPI webhook deliveries
Package
Install the published package from PyPI.
Source code
Browse the SDK repository, examples, and release history.
Requirements
- Python
3.10+ - a WazzAPI account
- a WazzAPI API key
Install
Choose the package manager that fits your stack:pip
uv
Configuration
The SDK useshttps://api.wazzapi.com by default.
For most integrations, you only need:
WAZZAPI_API_KEY
WAZZAPI_WEBHOOK_SECRET
.env
Keep secrets on the server side only. Do not expose them in browsers or mobile apps.
Quick start
Send a message
List contacts
Preview a template
Verify incoming webhooks
UseWebhookHandler to validate the raw request body against the signature header before parsing JSON.
X-Wazzapi-SignatureX-Wazzapi-EventX-Wazzapi-Event-ID
- message events:
message.received,message.sent,message.delivered,message.read,message.failed - device events:
device.connected,device.disconnected
Handle API errors
When the API returns a non-success status, the SDK raisesWazzapiAPIError.
Example scripts
The SDK repository includes ready-to-run examples:examples/send_message.pyexamples/list_contacts.pyexamples/create_template.pyexamples/preview_template.pyexamples/verify_webhook.py
Next steps
Quickstart
Create your API key and send your first live request.
API Reference
Explore endpoints and payloads behind the SDK methods.