SDKs
Python.
A typed Python client over the same REST API documented here, generated from the OpenAPI spec so it tracks the API rather than drifting from it. Requires Python 3.10 or newer.
Unreleased alpha. The in-repo version is 0.1.0a0 under the working name jobtalkvoice, which predates the Rexa.ai rename. It is not on PyPI, so there is nothing to pin yet, and the surface may still shift before the first release.
Install
This SDK is not published yet.
No package for it exists on the public registry, so the snippets below describe the intended interface rather than something you can install today. Use the REST API in the meantime. Do not install a similarly named package from the registry — none of them are ours.
# Not published to PyPI yet. Use the REST API:
# POST https://api.rexa.ai/v1/calls
# Reference: https://rexa.ai/docs/apiPlace a call
Note from_ with a trailing underscore — from is a reserved word in Python, so the field is renamed on the client while the wire format stays from.
import os
from jobtalkvoice import JobTalkVoice
client = JobTalkVoice(api_key=os.environ["JOBTALK_VOICE_API_KEY"])
session = client.calls.create(
to="+14155552671",
from_="+15555551000",
agent_config={"prompt": "Confirm the appointment tomorrow at 3pm."},
test_mode=True,
)
print(session.id) # queued — poll with client.sessions.get(session.id)create returns as soon as the call is queued — it does not block until the call connects. Use webhooks for outcomes instead of a polling loop.
Webhook verification
Signature verification helpers ship in the package. Verify every inbound webhook — an unverified endpoint accepts call events from anyone who finds the URL.
Next
- Quickstart — first call in five minutes.
- Outbound calls — every request field and status value.
- Node.js SDK — the same surface in TypeScript.