Skip to main content
Server-side only — This SDK is designed for server-side environments (Python servers, serverless functions). Never use it in browser/frontend code as this exposes your API key. See Frontend Integration for the proxy pattern.
Coverage. The Python SDK does not generate invitations, URL verification, sub-accounts, balance, account, functions and 10DLC yet, and no SDK generates voice calls. Those endpoints are still reachable: use the CLI or the REST API. See the coverage table.
The official Zavu SDK for Python provides a clean, Pythonic interface to the Zavu API with full type hints.

Installation

Requirements

  • Python 3.9 or higher

Quick Start

Configuration

Initialize the Client

Environment Variables

We recommend storing your API key in environment variables:

Accessing Response Headers

Use .with_raw_response() to access the full HTTP response including headers:

Error Handling

Exception Types

Async Support

The SDK supports async/await with asyncio:

Retries

The SDK supports automatic retries with configurable backoff:

Type Hints

The SDK includes full type annotations:

Debugging

Enable debug logging: