or run

npx @tessl/cli init
Log in

Version

Tile

Overview

Evals

Files

docs

audio

audio-processing.mdrealtime-transcription.mdspeech-to-speech.mdspeech-to-text.mdtext-to-speech.md
index.md
tile.json

sip-trunk.mddocs/conversational/

SIP Trunk Integration

Make outbound calls via SIP trunk.

Quick Reference

import { ElevenLabsClient } from "@elevenlabs/elevenlabs-js";

const client = new ElevenLabsClient({ apiKey: "your-api-key" });
// Access this API via: client.conversationalAi.sipTrunk

SIP Trunk Operations

/**
 * Handle an outbound call via SIP trunk
 * @param request - Call configuration with agent, phone numbers
 * @param requestOptions - Optional request configuration
 * @throws UnprocessableEntityError if request fails
 */
client.conversationalAi.sipTrunk.outboundCall(
  request: BodyHandleAnOutboundCallViaSipTrunkV1ConvaiSipTrunkOutboundCallPost,
  requestOptions?: RequestOptions
): HttpResponsePromise<SipTrunkOutboundCallResponse>;

interface BodyHandleAnOutboundCallViaSipTrunkV1ConvaiSipTrunkOutboundCallPost {
  /** Agent ID to use for the call */
  agentId: string;
  /** Agent's phone number ID */
  agentPhoneNumberId: string;
  /** Destination phone number */
  toNumber: string;
  /** Optional metadata */
  metadata?: Record<string, unknown>;
}