AnyDial API Documentation
Integrate AnyDial into your application to connect callers programmatically and receive call recordings and transcripts automatically.
Documentation
Quick Start
AnyDial simplifies connecting two phone numbers and getting call recordings and transcripts:
- Make a single API call to the
/initiate-callendpoint with two phone numbers and your webhook URL - AnyDial connects the calls, handling all the integration for you
- When the call completes, AnyDial automatically:
- Gets the recording
- Generates a transcript
- Sends everything to your webhook
Basic Example
// 1. Make a single API call
fetch('https://dial-api.anysoft.ai/initiate-call', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
phoneNumberA: '5551234567',
phoneNumberB: '5557654321',
webhookUrl: 'https://your-server.com/api/call-webhook'
})
})
.then(response => response.json())
.then(data => console.log('Call initiated:', data));
// 2. Receive the results at your webhook endpoint
// Example Express route
app.post('/api/call-webhook', (req, res) => {
const callData = req.body;
console.log('Call completed!', callData);
console.log('Transcript:', callData.transcript);
console.log('Recording URL:', callData.recordingUrl);
// Return 200 OK
res.status(200).send('Webhook received');
});