SDKs

Type-safe SDKs

The REST API is the supported interface today. Language SDKs are in progress and are not published to npm or PyPI yet.

Do not install a package named after this product.

Rexa.ai has not published @rexa/sdk, @jobtalkvoice/sdk, jobtalkvoice, or rexa. The name rexa on PyPI belongs to an unrelated regex utility library and is not ours. Until an official package exists, use the REST API below or the API reference. We will announce real package names on the changelog when they ship.

Node.js / TypeScript

Node ≥ 18
ReferenceSource soon

— Install

# No package published yet — call the REST API directly

— Usage

// The REST API is the supported interface today.
const res = await fetch('https://api.rexa.ai/v1/calls', {
  method: 'POST',
  headers: {
    authorization: `Bearer ${process.env.REXA_API_KEY}`,
    'content-type': 'application/json',
  },
  body: JSON.stringify({
    provider: 'telnyx',
    to: '+15551234567',
    from: '+15557654321',
    voice_id: 'alloy',
    prompt: 'Hello! Who am I speaking with?',
  }),
});

const call = await res.json();

Python

Python ≥ 3.9
ReferenceSource soon

— Install

# No package published yet — call the REST API directly

— Usage

# The REST API is the supported interface today.
import os, requests

res = requests.post(
    "https://api.rexa.ai/v1/calls",
    headers={"Authorization": f"Bearer {os.environ['REXA_API_KEY']}"},
    json={
        "provider": "telnyx",
        "to": "+15551234567",
        "from": "+15557654321",
        "voice_id": "alloy",
        "prompt": "Hello! Who am I speaking with?",
    },
    timeout=30,
)

call = res.json()

Another language? Tell us what you need — we’ll ship Go, Ruby, and PHP next based on demand.