mctrades
08/18/2025, 12:39 AMAI Evy
08/18/2025, 12:40 AMAI Evy
08/18/2025, 12:40 AMoutbound_agent_id and outbound_agent_version assigned to your phone number .
If you need to update the agent assignment, use the Update Phone Number API with the correct outbound_agent_id and outbound_agent_version [(1) ]() . The version parameter is important - if not provided, it will default to the latest version .
Based on a Discord discussion about outbound call APIs, there may be additional considerations when using external tools like n8n for triggering outbound calls [(5) ]() . The API structure mentioned includes specifying the agent_id in the call creation request .
If you're still experiencing issues after verifying the phone number configuration, you might want to check if your n8n workflow is overriding the agent ID in the outbound call request itself, as this could bypass the phone number's default agent assignment.AI Evy
08/18/2025, 12:40 AMoutbound_agent_id and outbound_agent_version are properly set [(1) ]() . The phone number will automatically use the specified agent when conducting outbound calls .
To verify your current configuration, first check what agent is actually assigned to your phone number using the Get Phone Number API [(2) ]() :
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneNumberResponse = await client.phoneNumber.retrieve('+14157774444') ;
console.log(phoneNumberResponse.inbound_agent_id) ;AI Evy
08/18/2025, 12:40 AMAI Evy
08/18/2025, 12:40 AMmctrades
08/18/2025, 12:53 AMAI Evy
08/18/2025, 12:56 AMmctrades
08/18/2025, 12:56 AMAI Evy
08/18/2025, 12:56 AMAI Evy
08/18/2025, 12:57 AMjavascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneNumberResponse = await client.phoneNumber.retrieve('+14157774444') ;
console.log(phoneNumberResponse.inbound_agent_id) ;
To use this API:
1. Install the Retell SDK in your project (the exact installation method depends on your environment - typically npm install retell-sdk for Node.js projects)
2. Import the Retell client and initialize it with your API key
3. Use the client.phoneNumber.retrieve() method with the phone number in E.164 format
The API requires authentication using your API key in the format "Bearer YOUR_API_KEY" . You can find your API key in the Retell dashboard .
This will return details about the phone number including the assigned agents, versions, area code, nickname, and webhook URL .AI Evy
08/18/2025, 12:57 AM