https://retellai.com/?utm_source=discord&utm_medium=seo logo
🚨 API Endpoint Issues - Batch Calling Integration...
# ❓・ai-evy-support
r
@AI Evy 🚨 API Endpoint Issues - Batch Calling Integration Hi Retell team! I'm getting 404 errors on all API endpoints despite following the official documentation. What's not working: POST https://api.retellai.com/create-batch-call → 404 "Cannot POST /create-batch-call" GET https://api.retellai.com/list-agents → 404 "Not Found" Tested with and without /v1 prefix - both return 404 What I've tried: Multiple API key formats (Bearer token) Different endpoint variations (/batch-call, /v1/create-batch-call, etc.) Verified API key works in dashboard Following exact documentation structure Request example: curl -X POST https://api.retellai.com/create-batch-call \ -H "Authorization: Bearer [API_KEY]" \ -H "Content-Type: application/json" \ -d '{"from_number": "+1234567890", "tasks": [{"to_number": "+0987654321"}], "agent_id": "agent_xxx"}' Questions: Has the API base URL changed? Do I need special permissions for batch calling? Is there a different authentication method? Any guidance would be much appreciated! 🙏
a
Thanks for tagging me @romanoclan. I'll look through relevant sources and get back to you shortly.
### Answer The issue is with your endpoint URL structure. The correct endpoint path should be
/create-batch-call
without the
/v1
prefix [(1) ]() . Here's the corrected request format from the official documentation :
Copy code
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) ]() :
Copy code
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?
​ To learn more, see the sources I considered: [[1] Create Batch Call](https://docs.retellai.com/api-references/create-batch-call) [[2] API Key Overview](https://docs.retellai.com/accounts/api-keys-overview) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.