whatsapp-business-cloud
A complete, typed Python client for the WhatsApp Business Platform (Cloud API + Business Management API + Flows API).
from whatsapp_business_cloud import Client
from whatsapp_business_cloud.builders import Buttons, Template
client = Client(
access_token="EAAB...",
phone_number_id="106540352242922",
waba_id="102290129340398",
)
# messages
client.messages.send_text(to="15551234567", body="Hello!")
client.messages.send_interactive(to="15551234567", interactive=Buttons()
.body("Pick one").add("Yes", "y").add("No", "n"))
client.messages.send_template(to="15551234567", template=Template("order_conf", "en_US")
.body_params("Ana", "1234"))
# media
media = client.media.upload("./invoice.pdf")
client.messages.send_document(to="15551234567", media_id=media.id, filename="invoice.pdf")
# everything else
client.templates.list(status="APPROVED")
client.groups.create(subject="VIP")
client.calls.connect(to="1555...", sdp=offer)
client.flows.publish(flow_id)
# webhooks
from whatsapp_business_cloud.webhooks import parse, verify_signature
events = parse(request.body())
# async
from whatsapp_business_cloud import AsyncClient
async with AsyncClient("EAAB...", phone_number_id="...") as c:
await c.messages.send_text(to="1555...", body="hi")
See docs/api-reference.md for the endpoint spec and docs/plan.md for the design.
Install
pip install -e . # from this repo
pip install "whatsapp-business-cloud[fastapi]" # with the webhook router extra
Develop
uv venv .venv && uv pip install --python .venv/bin/python -e ".[dev,fastapi]"
.venv/bin/pytest # tests
.venv/bin/ruff check src # lint
.venv/bin/mypy src # typecheck
Metadata
Release files for whatsapp-business-cloud 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| whatsapp_business_cloud-0.1.1.tar.gz | 185.6 kB | With provenance | Details for whatsapp_business_cloud-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| whatsapp_business_cloud-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for whatsapp_business_cloud-0.1.1-py3-none-any.whl |
Total release size: 237.7 kB
Release files / whatsapp_business_cloud-0.1.1.tar.gz
| Download URL | whatsapp_business_cloud-0.1.1.tar.gz |
|---|---|
| Size | 185.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
957f51fd76d4938a2f2f5878fe8b76927fee42e9be61c7405c3fd903cdd130e8
|
|
BLAKE2b-256 checksum How to use checksums |
2aeda7485f5f084d12287d4c8f585b9146a28b38739bd4f48f59abac6a38a9af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.
Transparency logRelease files / whatsapp_business_cloud-0.1.1-py3-none-any.whl
| Download URL | whatsapp_business_cloud-0.1.1-py3-none-any.whl |
|---|---|
| Size | 52.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ae79770d0d5baed4b18abc973d33b8a426244f3e60210b33a00769ac7407c5f6
|
|
BLAKE2b-256 checksum How to use checksums |
56f9febd338b8048d0e641f43b4676d6d9176451737088bee5342f0f48ad34d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.
Transparency logSecurity for whatsapp-business-cloud 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for whatsapp_business_cloud-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.