Skip to main content

Callaider Python SDK

PyPI version Python versions License: MIT

The official Python client library for the Callaider AI voice calling and conversational platform.

Built on top of the Callaider OpenAPI 3.0.3 specification.


Features

  • ⚡ Sync & Async clients built on modern httpx.
  • 🛡️ Fully typed request/response models with Pydantic v2.
  • 🔄 Automatic retries with exponential backoff on 429/5xx errors.
  • 📞 Complete Ringing API support: Campaigns, batch calls, recordings, and statistics.
  • 🤖 External Conversation Bridge: Direct AI assistant messaging integration (ideal for Telegram bots).
  • 🪝 Built-in Webhooks parser: Typed events parsing for callback handling.

Installation

pip install callaider

Or using uv:

uv add callaider

Quickstart

Synchronous Usage

from callaider import Callaider

client = Callaider(api_key="your_api_key_here")

# 1. Check API status
health = client.health()
print(f"API status: {health.status}")

# 2. Create an automated call campaign
campaign = client.ringing.create_campaign(
    assistant_id="asst_sales_01",
    recipients=[
        {"phone": "+380501234567", "name": "Alex"}
    ],
    name="VIP Outreach Campaign"
)
print(f"Created campaign #{campaign.id} with status: {campaign.status}")

# 3. Launch the campaign
client.ringing.launch_campaign(campaign.id)

Asynchronous Usage (FastAPI, Asyncio, Telegram Bots)

import asyncio
from callaider import AsyncCallaider

async def main():
    async with AsyncCallaider(api_key="your_api_key_here") as client:
        # Send a message to AI assistant bridge
        response = await client.assistants.send_message(
            assistant_id="asst_support_01",
            external_conversation_id="telegram_user_12345",
            message="Hello! I need help with my order."
        )
        print("AI Response:", response.text)

asyncio.run(main())

Webhooks Handling

Easily parse incoming Callaider webhook payloads in FastAPI or Flask:

from fastapi import FastAPI, Request
from callaider import Webhooks

app = FastAPI()

@app.post("/webhooks/callaider")
async def handle_webhook(request: Request):
    payload = await request.body()
    event = Webhooks.construct_event(payload)

    if event.event == "call.completed":
        print(f"Call {event.data.call_id} finished. Duration: {event.data.duration_seconds}s")
        print(f"Audio recording: {event.data.recording_url}")

    return {"status": "ok"}

Development & Testing

# Clone the repository
git clone https://github.com/astatdeglebantiy/callaider-python.git
cd callaider-python

# Install dependencies with uv
uv sync --all-extras

# Run unit tests
uv run pytest

License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for callaider 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for callaider 0.1.0
File Size Uploaded Provenance Actions
callaider-0.1.0.tar.gz 34.8 kB Without provenance Details for callaider-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for callaider 0.1.0
File Interpreter ABI Platform Actions
callaider-0.1.0-py3-none-any.whl Python 3 none any Details for callaider-0.1.0-py3-none-any.whl

Total release size: 47.9 kB

Release files / callaider-0.1.0.tar.gz

Download URL callaider-0.1.0.tar.gz
Size 34.8 kB
Tags Source
SHA-256 checksum
How to use checksums
72ea925bd1a15dca57ae68b6517cba4b25a8bae79036f9193a8a2bffe6cd602b
BLAKE2b-256 checksum
How to use checksums
35039aa1a6bcd032f096be1c323e6bc5a67de2fc9a9b2022f8ac0131c4ff1985
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / callaider-0.1.0-py3-none-any.whl

Download URL callaider-0.1.0-py3-none-any.whl
Size 13.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c6f57ac891b79d4354e98ec11d7145538188f93fd6b28ed821dffd044c138034
BLAKE2b-256 checksum
How to use checksums
b54eb5ef7ea980a1717fcbe7d996c825d9e3fcdc646148c5d38ccc243697a4ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for callaider 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page