kaicalls
Official Python SDK for the KaiCalls API — give your AI agent a phone. Outbound calls, agents, leads, SMS, transcripts, webhooks, and platform APIs.
- Python 3.9+, one dependency (
requests) - Docs: https://www.kaicalls.com/docs/api · Live OpenAPI:
GET /api/v1/openapi.json - Source: https://github.com/KaiCalls/kaicalls-python
Install
pip install kaicalls
Quick start
from kaicalls import KaiCalls
kai = KaiCalls(api_key="kc_live_...")
# Make an outbound call — the agent auto-enriches with CRM context
call = kai.calls.create(
agent_id="uuid-abc123",
to="+15125551234",
name="John Smith",
context="Following up on his kitchen remodel inquiry",
)
# Block until the call finishes, then read the AI summary
result = kai.calls.wait(call.id)
print(result.summary)
Responses support attribute access (call.id, result.summary, call.quality_dimensions.empathy) and behave like dicts.
No account yet? Sign up via the API
from kaicalls import KaiCalls, signup
account = signup(
business_name="Smith Law Firm",
email="contact@smithlaw.com",
plan_id="starter",
)
# account.api_key works immediately; send the owner to account.checkout_url
kai = KaiCalls(api_key=account.api_key)
What's wrapped
| Resource | Methods |
|---|---|
kai.calls |
create, get, list, wait |
kai.recordings |
get |
kai.agents |
list, get, create, update, versions |
kai.leads |
list, get, create, update, audit |
kai.sms |
send, update_prompt, conversations, messages |
kai.transcripts |
list |
kai.phone_numbers |
list, available, assign, release |
kai.workspaces |
list, get, create, update (lifecycle actions) |
kai.webhooks |
list, create, delete, test, rotate_secret |
kai.analytics |
dashboard, calls, funnel, agents, weekly, businesses |
kai.evals |
create, list, get, update, delete, run, get_run |
kai.events |
list, deliveries, replay, backfill |
kai.communication_runs |
validate, preview, create, list, pause, cancel, jobs, attempts |
kai.discovery |
capabilities, openapi, schemas, health |
kai.account |
balance, usage |
Anything not wrapped yet is reachable through the escape hatch:
kai.request("GET", "/api/sdr/pipeline", query={"businessId": "uuid-biz"})
Errors
All non-2xx responses raise KaiCallsError with .status, .code (e.g. unauthorized, forbidden, rate_limited), and .body.
from kaicalls import KaiCallsError
try:
kai.calls.create(agent_id=agent_id, to=to)
except KaiCallsError as err:
if err.code == "rate_limited":
... # back off and retry
Notes
- Get an API key at https://www.kaicalls.com/dashboard/settings/api. New keys default to read-only scopes — request write scopes (
calls:write,sms:write, …) when creating the key. - Phone numbers are E.164 (
+15125551234). - API reference: https://www.kaicalls.com/docs/api · Errors: https://www.kaicalls.com/docs/api/errors
Connect your existing agent
receipt = kai.agent_connections.connect(
business_id, agent_id, "agent:desk",
"https://your-agent.example.com/events", "desk-v1",
)
# Save receipt.webhook_secret securely before making any further request.
access = kai.agent_connections.get(business_id)
# access.operations gives the entire scoped API catalog and missing permissions.
# access.channels gives actual readiness and the next setup step.
Existing resources and kai.request reach the canonical API. Email replies use owner-reviewed email campaigns; provisioned human approvals use kai.approval_requests.create(request). Dispatch is not an approval. Verify signed incoming webhook bodies and deduplicate event IDs. A connection grants no permissions or carrier activation; RCS remains unavailable. Disconnect using kai.agent_connections.disconnect(business_id, revision).
Metadata
Release files for kaicalls 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kaicalls-0.2.0.tar.gz | 12.6 kB | Without provenance | Details for kaicalls-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kaicalls-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for kaicalls-0.2.0-py3-none-any.whl |
Total release size: 22.7 kB
Release files / kaicalls-0.2.0.tar.gz
| Download URL | kaicalls-0.2.0.tar.gz |
|---|---|
| Size | 12.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0e961d7469d2ebd03cc200f8314a6870f123bc02ad3135db793658882acaad78
|
|
BLAKE2b-256 checksum How to use checksums |
f268b28c989c749483621b58810e6e0ad7fd356aebb6bd499ac4742573e59434
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / kaicalls-0.2.0-py3-none-any.whl
| Download URL | kaicalls-0.2.0-py3-none-any.whl |
|---|---|
| Size | 10.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d228985fe4a9fa0bc02b9c8e91ba33b20a2a672b05b88c6cca85a046c2ece063
|
|
BLAKE2b-256 checksum How to use checksums |
1eb7ddb0302b168d5b26c7f4a4b19f70fa10daa2a73a1c375d48ce7c7728e621
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for kaicalls 0.2.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.