Skip to main content
The Burki Python SDK provides a simple, Pythonic interface to the Burki Voice AI API with support for both synchronous and asynchronous operations.

Installation

Requirements: Python 3.8+

Quick Start


Configuration

Basic Configuration

Custom Base URL

Timeout Settings

Using Environment Variables


Resources

List Assistants

Get a Specific Assistant

Create an Assistant

Update an Assistant

Delete an Assistant


Real-time Streaming

The Python SDK supports WebSocket streaming for real-time transcripts and campaign progress using async context managers.

Live Transcript Streaming

Campaign Progress Streaming


Async Usage

The SDK supports both synchronous and asynchronous usage. All resource methods have async counterparts with the _async suffix:

Synchronous

Asynchronous


Error Handling

The SDK provides typed exceptions for different error scenarios:

Exception Types


Complete Example

Here’s a complete example that creates an assistant, assigns a phone number, uploads a knowledge document, and monitors incoming calls:

Next Steps

JavaScript SDK

Check out the TypeScript-first JavaScript SDK

Real-time Streaming

Deep dive into WebSocket streaming

API Reference

Complete REST API documentation

RAG Documentation

Learn about knowledge base integration