Quickstart

Make your first AI voice call in under 5 minutes.

Prerequisites

1Install the SDK

Install the BringRings SDK using npm, yarn, or pnpm:

Terminal
bash
npm install @bringrings/sdk

2Initialize the Client

Import the SDK and initialize it with your API key:

app.js
javascript
import BringRings from '@bringrings/sdk';
const client = new BringRings({
apiKey: 'pk_live_xxxxxxxxxxxxxxxx'
});
Security Tip: Never expose your API key in client-side code. Use environment variables and keep your key on the server.

3Make Your First Call

Use the calls.initiate() method to start an AI voice call:

app.js
javascript
// Initiate an AI voice call
const call = await client.calls.initiate({
to: '+1234567890',
agentId: 'your-agent-id',
metadata: {
customerId: 'cust_123'
}
});
console.log('Call ID:', call.id);
console.log('Status:', call.status);

Next Steps