https://retellai.com/?utm_source=discord&utm_medium=seo logo
my ai agent says Error Not found
# ❓・ai-evy-support
b
@AI Evy my ai agent says Error Not found
a
Thanks for tagging me @blekkk_. I'll look through relevant sources and get back to you shortly.
​ To learn more, see the sources I considered: [[1] Here is how that can be fixed](https://retell.discourse.group/t/here-is-how-that-can-be-fixed/23) ​
### Answer Based on the available sources, the "Error Not found" message could be related to phone number configuration issues [(1) ]() . Here are the key points to check: **Phone Number Setup**: Your
from_number
must be a phone number you've purchased and configured through Retell AI - you can't use arbitrary numbers . **Agent Binding**: The phone number should have an
outbound_agent_id
configured, or you need to use the
override_agent_id
parameter in your request . **Parameter Names**: Use
override_agent_id
instead of
agent_id
, and
retell_llm_dynamic_variables
instead of
custom_data
:
Copy code
json
{
  "from_number": "+16504144521",
  "to_number": "your_target_number",
  "override_agent_id": "agent_71724df7636716ceb3a7e244c8",
  "retell_llm_dynamic_variables": {
    "name": "Sarah"
  }
}
**Phone Number Configuration**: If you haven't set up your phone number yet, you'll need to either purchase a new number through Retell AI or import an existing number from a supported provider (Twilio, Telnyx, etc.) . To update an existing phone number for outbound calls :
Copy code
javascript
const phoneNumberResponse = await client.phoneNumber.update('+14157774444', {
 inbound_agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
 nickname: 'Frontdesk Number',
 outbound_agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
}) ;
Configure your phone number properly first, then test the API call with the corrected payload structure .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
b
@AI Evy When i open the Agent it says Error not found,
a
Thanks for the follow-up, @blekkk_. I'll get back to you soon.
### Answer Based on the sources, if you're getting an "Error not found" when opening an Agent, this is likely an API endpoint issue [(1) ]() . The correct endpoint to retrieve an agent is:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const agentResponse = await client.agent.retrieve('16b980523634a6dc504898cda492e939') ;
console.log(agentResponse.agent_id) ;
[(2) ]() If you're using a direct API call, make sure you're using the correct endpoint URL format [(1) ]() . The endpoint should be: ` Common troubleshooting steps: 1. Verify your agent ID format - ensure you're using the complete agent ID as it appears in your dashboard 2. Check your API key - make sure it's properly configured in the Authorization header 3. Agent publication status - the agent may need to be published before it can be retrieved via API If you're still experiencing issues, try creating a new test agent and publishing it, then test the retrieval with that agent ID .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] URGENT: 404 Error - Cannot Retrieve Agent agent_24a7b7382eca64e0fcbe118931 via API](https://discord.com/channels/1186424376300679209/1382991998654480505) [[2] Get Agent](https://docs.retellai.com/api-references/get-agent) ​
b
@AI Evy How long are call logs kept for
a
Thanks for the follow-up, @blekkk_. I'll get back to you soon.
### Answer Based on the available sources, call log retention in Retell AI depends on your data storage settings [(1) ]() . By default, Retell AI stores call logs, transcripts, recordings, caller ID, callee ID, knowledge base retrieved contents logs, dynamic variables, and metadata [(1) ]() [(2) ]() . However, you have control over what gets stored through your agent's data storage settings [(1) ]() . You can configure three different storage levels : - Everything — store transcripts, recordings, and logs - Everything except PII — store content, excluding PII when possible - Basic Attributes Only — store only metadata (no transcripts/recordings/logs) When you opt out of storing sensitive data, you'll continue to receive webhook events where you can access the transcript, call recording, and other sensitive data, but the call recording link will expire after 10 minutes upon receiving the webhook . The sources don't specify an exact retention period for stored call logs. For specific retention timeframes, I'd recommend checking your account settings or contacting Retell AI support directly. You can also update the data storage setting for individual calls using the Update Call API [(3) ]() :
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const callResponse = await client.call.update('call_a4441234567890777c4a4a123e6', {
 data_storage_setting: 'everything_except_pii',
 metadata: { customer_id: 'cust_123', notes: 'Follow-up required' },
}) ;
​ To learn more, see the sources I considered: [[1] Data Storage Settings - Retell AI](https://docs.retellai.com/accounts/privacy-disable) [[2] Model data retention](https://discord.com/channels/1186424376300679209/1394836647773864127) [[3] Update Call](https://docs.retellai.com/api-references/update-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.