https://retellai.com/?utm_source=discord&utm_medium=seo logo
API 404 responses
# ❓・bug-report
y
I keep getting 404 responses while trying to make calls to the retell's api https://docs.retellai.com/api-references/create-phone-call is there an outage or smth like that?
a
Thanks for tagging me @yunoo212. I'll look through relevant sources and get back to you shortly.
y
@AI Evy
a
[(3) ]() To troubleshoot: - Verify your
from_number
is a Retell AI phone number that's connected to an agent [(2) ]() - Check that you have sufficient account credits - Confirm your agent ID is correct - Test with a fresh API key If these steps don't resolve the issue, you may need to contact support with your workspace ID for further investigation .
### Answer Based on the available sources, 404 errors with the Create Phone Call API are commonly caused by specific configuration issues rather than outages [(1) ]() [(2) ]() . The most common causes of 404 errors include: 1. **Phone number issues**: The
from_number
must be a valid Retell AI phone number that's properly connected . If you're using a number that isn't purchased through Retell or isn't properly configured, you'll get a 404 error [(1) ]() . 2. **Account credit issues**: If your provider credits are insufficient, the phone number becomes inactive and API calls will fail [(2) ]() . 3. **Agent configuration**: Ensure your
override_agent_id
or
agent_id
is valid and the agent is properly configured . 4. **API key issues**: Try regenerating your API key if the phone number and agent are working correctly . The correct endpoint format for creating phone calls is:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneCallResponse = await client.call.createPhoneCall({
 from_number: '+14157774444',
 to_number: '+12137774445',
}) ;
console.log(phoneCallResponse.agent_id) ;
​ To learn more, see the sources I considered: [[1] Getting a 404 error when trying to use create-phone-call through HTTP in make.com](https://discord.com/channels/1186424376300679209/1370700007765704785) [[2] Hi ,](https://discord.com/channels/1186424376300679209/1397614768440742012) [[3] Create Phone Call](https://docs.retellai.com/api-references/create-phone-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
y
a
Thanks for the follow-up, @yunoo212. I'll get back to you soon.
### Answer Based on the available sources, there have been recent reports of internal server errors with the create knowledge base endpoint [(1) ]() [(2) ]() . The endpoint itself appears to be documented and functional [(3) ]() , but some users have encountered issues. Common problems reported include: 1. Internal server errors - Multiple users have reported getting 500 internal server errors when calling the endpoint [(1) ]() [(2) ]() 2. Parameter formatting issues - One user encountered an error message "knowledge base name not a string" despite verifying the parameter was correctly formatted as a string [(1) ]() The endpoint should work with this format:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
await client.knowledgeBase.delete('kb_1234567890') ;
[(4) ]() The create knowledge base endpoint accepts various parameters including
knowledge_base_name
,
knowledge_base_texts
,
knowledge_base_files
, and
knowledge_base_urls
[(3) ]() . When successful, it returns a response with status "in_progress" initially, then "complete" when processing finishes . If you're experiencing issues, the Retell team has acknowledged these problems and is investigating [(2) ]() . You might want to: - Verify your API key format is correct ("Bearer YOUR_API_KEY") - Check that your request parameters match the documented format exactly - Try with minimal test data first For ongoing issues, I'd recommend visiting [Contact Sales]() or [) for support.
​ To learn more, see the sources I considered: [[1] internal server error on create knowledge base by API](https://discord.com/channels/1186424376300679209/1391417148215136376) [[2] When i try to use the create-knowledge-base endpoint, it returns internal server error.](https://discord.com/channels/1186424376300679209/1418609638391283813) [[3] Create Knowledge Base](https://docs.retellai.com/api-references/create-knowledge-base) [[4] Delete Knowledge Base](https://docs.retellai.com/api-references/delete-knowledge-base) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
o
Hello @yunoo212 , make sure your phone number is correct.