SDKs

Node.js & TypeScript.

A typed client over the same REST API documented here. The resource surface is generated from the OpenAPI spec, so it tracks the API rather than drifting from it; hand-written helpers cover webhook verification and idempotency ergonomics.

Unreleased preview. The in-repo version is 0.1.0-preview.0 under the working name @jobtalkvoice/sdk, which predates the Rexa.ai rename. It is not on npm, 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 npm yet. Use the REST API:
#   POST https://api.rexa.ai/v1/calls
# Reference: https://rexa.ai/docs/api

Place a call

Read the API key from the environment — never commit it, and never ship it to a browser. Keep test_mode: true while you iterate: it dispatches against the test pool and does not deduct production credits.

import { JobTalkVoice } from '@jobtalkvoice/sdk';

const client = new JobTalkVoice({
  apiKey: process.env.JOBTALK_VOICE_API_KEY!,
});

const session = await client.calls.create({
  to: '+14155552671',
  from: '+15555551000',
  agent_config: {
    prompt: 'Confirm the appointment tomorrow at 3pm.',
  },
  test_mode: true,
});

console.log(session.id); // queued — poll with sessions.get(session.id)

create resolves as soon as the call is queued — it does not wait for the call to connect. Track the outcome with webhooks rather than polling in a loop.

Webhook verification

The SDK ships a signature verification helper. Use it on every inbound webhook — an unverified endpoint accepts call events from anyone who finds the URL. See the webhooks reference for the event payloads and the verification contract.

Next