romanoclan
08/04/2025, 3:13 PMAI Evy
08/04/2025, 3:13 PMAI Evy
08/04/2025, 3:14 PM/create-batch-call without the /v1 prefix [(1) ]() .
Here's the corrected request format from the official documentation :
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const batchCallResponse = await client.batchCall.createBatchCall({
from_number: '+14157774444',
tasks: [{ to_number: '+12137774445' }],
}) ;
console.log(batchCallResponse.batch_call_id) ;
For authentication, ensure you're using the correct format in your headers [(2) ]() :
Authorization: Bearer YOUR_API_KEY
The endpoint should be POST /create-batch-call [(1) ]() , and your authentication header format appears correct based on the API key documentation [(2) ]() .
If you're still experiencing 404 errors after using the exact endpoint path /create-batch-call, I'd recommend:
1. Visit [Contact Sales]()
2. Visit [)
Would you like a general answer based on my knowledge instead?AI Evy
08/04/2025, 3:14 PMAI Evy
08/04/2025, 3:14 PM