Skip to main content

Bookivox Python SDK

Official Python client and CLI for the Bookivox API: typed access to agents, node types, tools, knowledge-base documents, recordings, credentials and test calls.

  • Typed — generated TypedDict models and typed method signatures (py.typed).
  • Safe by default — timeouts, retries on idempotent verbs only, typed errors, no secret logging.
  • One install — pip install bookivox gives you both the SDK and the bookivox CLI.
  • Single runtime dependency — httpx.

Requirements

  • Python 3.11 or newer.
  • A Bookivox API key (bookeys_sk-...), created in API keys.

Install

python3 -m venv .venv
source .venv/bin/activate        # Windows: .venv\Scripts\Activate.ps1
pip install bookivox
uv add bookivox      # or: poetry add bookivox

Verify the installation:

python -c "import bookivox_sdk; print(bookivox_sdk.__version__)"
bookivox --version

Authenticate

The API key is read from the api_key argument, then from BOOKIVOX_API_KEY:

export BOOKIVOX_API_KEY="bookeys_sk-..."
import os
from bookivox_sdk import Bookivox

client = Bookivox(
    api_key=os.environ["BOOKIVOX_API_KEY"],  # or omit to use the env var
    timeout=30.0,
    max_retries=2,                           # idempotent requests only
)
Parameter Env var Default
api_key BOOKIVOX_API_KEY — (required)
timeout — 30.0
max_retries — 2

The API origin is https://api.bookivox.com and is not configurable.

Quick start

import os
from bookivox_sdk import Bookivox

with Bookivox(api_key=os.environ["BOOKIVOX_API_KEY"]) as client:
    for workflow in client.list_workflows():
        print(workflow["id"], workflow.get("name"))

Bookivox is a context manager: with closes the underlying connection pool.

Methods

Method HTTP Description
list_workflows(*, status=None) GET /workflow/fetch List the organization's agents
get_workflow(workflow_id) GET /workflow/fetch/{id} Fetch one agent
create_workflow(body) POST /workflow/create/definition Create an agent
update_workflow(workflow_id, body) PUT /workflow/{id} Update an agent
list_node_types() GET /node-types List node types and their specs
get_node_type(name) GET /node-types/{name} Fetch one node type spec
list_tools(*, status=None, category=None) GET /tools/ List tools
create_tool(body) POST /tools/ Create a tool
list_documents(*, status=None, limit=None, offset=None) GET /knowledge-base/documents List knowledge-base documents
list_recordings(*, workflow_id=None, ...) GET /workflow-recordings/ List recordings
list_credentials() GET /credentials/ List credentials
test_phone_call(body) POST /telephony/initiate-call Start a test call (billable)

Errors

from bookivox_sdk import (
    Bookivox,
    AuthenticationError,
    NotFoundError,
    RateLimitError,
    ValidationError,
)

try:
    with Bookivox() as client:
        client.get_workflow("wf_123")
except AuthenticationError:
    ...  # 401 — invalid or revoked key
except NotFoundError:
    ...  # 404 — unknown agent, or outside your organization
except ValidationError as exc:
    print(exc.status_code, exc.body)
except RateLimitError as exc:
    print("retry in", exc.retry_after, "s")

Every APIStatusError exposes status_code, request_id and body.

CLI

bookivox login --api-key "$BOOKIVOX_API_KEY"
bookivox config
bookivox workflows list --json

Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 rate limit, 6 connection.

Security

  • Never commit .env files; load the key from your platform's secret manager.
  • test_phone_call triggers a real, billable phone call.

Generated code

src/bookivox_sdk/models.py and src/bookivox_sdk/_generated.py are generated from the API OpenAPI schema and must never be edited by hand. Regenerate them with ./generate_sdk.sh from the repository root.

Full documentation: https://docs.bookivox.com/sdk/overview.

Metadata

Release files for bookivox 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 bookivox 0.1.0
File Size Uploaded Provenance Actions
bookivox-0.1.0.tar.gz 13.7 kB Without provenance Details for bookivox-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 30.6 kB

Release files / bookivox-0.1.0.tar.gz

Download URL bookivox-0.1.0.tar.gz
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4e4513f442b5571f85a1e1dba1e255c6ec5457f15b68d9492738ea46828a96a9
BLAKE2b-256 checksum
How to use checksums
b77dd5e2850544815fbdb44d9eb74c4b6403e149a5550fbd8d03952f7e3d3f36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

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

Download URL bookivox-0.1.0-py3-none-any.whl
Size 16.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0a62dfced1902a2166c8ffa4a973b5ace76a24a6c021253db4964ab5eb8afec8
BLAKE2b-256 checksum
How to use checksums
50b690606224c54252db970a3d11d4ca54ff6cf775157b0c38cde78c49d23d58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Security for bookivox 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