Skip to main content

Installation

Install the Truedy Node.js SDK using npm, yarn, or pnpm.
npm install trudy-sdk

Initialization

Initialize the client with your API key. You can find your API key in the Dashboard.
import { Trudy } from 'trudy-sdk';

const trudy = new Trudy({
  apiKey: 'your_api_key_here',
});

Usage Example

List Agents

const { data: agents } = await trudy.agents.list();

console.log(agents);

Make a Call

const call = await trudy.calls.create({
  agentId: 'agent_123',
  phoneNumber: '+15550001234',
});

console.log('Call started:', call.id);