r/WhatsappBusinessAPI • u/AparatoTuring • 4d ago
Services Welcome kapso-python: an unofficial Python SDK for Kapso (WhatsApp Business API)
if you're building agents with WhatsApp through Kapso with Python, you've probably written the same client I did: verify the webhook, parse the payload by hand, wrap the send calls, rediscover the same edge cases. I counted ~55 public GitHub repos doing exactly that.
So I built the SDK. What you get:
- Webhooks: signature check, every Kapso event as typed objects, dedup keys for retries
- Sending: text, media, buttons, lists, CTA links, flows, templates, reactions, and read receipts with "typing…"
- WhatsApp's limits checked before the request (1024-char interactive bodies, 20-char button titles, 10 list rows), so you get a clear error in your code, not a 131009 from Meta
- Usernames handled: BSUIDs go in
recipient, phones into, and replying tomsg.senderjust works - Media upload, and downloads with a size cap and checksum check
- Async and sync clients, only pydantic + httpx
Built from real webhook traffic and tested against a real number. It's alpha and unofficial (not affiliated with Kapso), so the API will change.
Install: pip install kapso-python
Code: https://github.com/Joselier3/kapso-python
Happy to answer questions, and I'd love to hear what you'd want next.