carlos.sanchez3072
07/28/2025, 4:46 PMAI Evy
07/28/2025, 4:46 PMAI Evy
07/28/2025, 4:46 PMAI Evy
07/28/2025, 4:46 PMAI Evy
07/28/2025, 4:46 PMcarlos.sanchez3072
07/28/2025, 4:48 PMcarlos.sanchez3072
07/28/2025, 4:49 PMAI Evy
07/28/2025, 4:49 PMAI Evy
07/28/2025, 4:49 PMGET /v2/get-call/{call_id}
[(1) ]()
So your full URL should be:
GET <https://api.retellai.com/v2/get-call/%7Bcall_id%7D>
You also need to include the proper authorization header with your API key [(2) ]() :
Authorization: Bearer YOUR_API_KEY
Here's the complete request structure you should use in your n8n automation:
- **Method**: GET
- **URL**: ` (replace {call_id} with your actual call ID)
- **Headers**:
- Authorization: Bearer YOUR_RETELL_API_KEY
- Content-Type: application/json
The key differences from what you were trying:
1. Use /v2/ instead of /v1/
2. Use /get-call/ instead of /calls/
3. Make sure to include the Authorization header
This will return the complete call details including transcript, recording URL, call analysis, and other call metadata [(1) ]() .AI Evy
07/28/2025, 4:49 PMAI Evy
07/28/2025, 4:49 PMcarlos.sanchez3072
07/28/2025, 4:51 PMAI Evy
07/28/2025, 4:51 PMAI Evy
07/28/2025, 4:51 PMGET /v2/get-call/{call_id}
[(1) ]()
The JavaScript example shows how to use this endpoint:
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const callResponse = await client.call.retrieve('119c3f8e47135a29e65947eeb34cf12d') ;
console.log(callResponse) ;
For your n8n automation, you need:
- **Method**: GET
- **URL**: ` (replace {call_id} with your actual call ID)
- **Headers**:
- Authorization: Bearer YOUR_API_KEY
The authorization header format is specifically "Bearer YOUR_API_KEY" [(2) ]() . Make sure you're using your actual API key from the dashboard .
If it's still not working, double-check:
1. Your API key is correct and properly formatted in the Authorization header
2. The call ID exists and is valid
3. You're using the exact URL format: `AI Evy
07/28/2025, 4:51 PMAI Evy
07/28/2025, 4:51 PMcarlos.sanchez3072
07/30/2025, 11:04 AMAI Evy
07/30/2025, 11:04 AMAI Evy
07/30/2025, 11:05 AMinbound_webhook_url [(2) ]() :
json
{
"phone_number": "+14157774444",
"inbound_agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
"inbound_webhook_url": "<https://example.com/inbound-webhook%22>
}
The inbound call webhook allows you to provide dynamic variables and other fields specific to that call, including potentially overriding the agent [(1) ]() . This webhook would include details like the caller's number, call direction, or other parameters that your n8n workflow can use to determine which of your 3 agents should handle the call [(3) ]() .
## 2. Programmatic Call Creation
When creating outbound calls through your n8n workflows, you can specify different agents by using the Create Phone Call API [(4) ]() :
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',
}) ;AI Evy
07/30/2025, 11:05 AMAI Evy
07/30/2025, 11:05 AMAI Evy
07/30/2025, 11:05 AMcarlos.sanchez3072
07/30/2025, 3:54 PMAI Evy
07/30/2025, 3:54 PMAI Evy
07/30/2025, 3:54 PMjavascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneNumberResponse = await client.phoneNumber.import({
phone_number: '+14157774444',
termination_uri: 'someuri.pstn.twilio.com',
}) ;AI Evy
07/30/2025, 3:54 PMinbound_agent_id and outbound_agent_id [(1) ]() [(2) ]() , but when making individual outbound calls, you can specify which agent should handle that particular call.
Based on the Discord discussions, other users have successfully integrated Retell AI with n8n for outbound calling [(3) ]() [(4) ]() . One user mentioned they found a solution for triggering calls with their Retell agent from n8n [(3) ]() .
To implement this in your n8n workflows:
1. Use the same phone number for all workflows
2. In each n8n workflow, specify the appropriate agent ID when making the outbound call request
3. This allows you to use different agents (your 3 different agents) while using the same phone number for outbound calls
The exact API endpoint and parameters for specifying the agent in outbound calls would need to be referenced from the Create Phone Call API documentation, which isn't included in the current sources.AI Evy
07/30/2025, 3:54 PMAI Evy
07/30/2025, 3:54 PMcarlos.sanchez3072
07/30/2025, 3:57 PMcarlos.sanchez3072
07/30/2025, 3:58 PMAI Evy
07/30/2025, 3:58 PMAI Evy
07/30/2025, 3:58 PMoverride_agent_id parameter [(1) ]() .
Here's the correct JSON structure for your n8n HTTP request node:
json
{
"from_number": "+14157774444",
"to_number": "+12137774445",
"override_agent_id": "your_agent_id_here"
}
For your n8n HTTP request node configuration:
- **Method**: POST
- **URL**: `
- **Headers**:
- Authorization: Bearer YOUR_RETELL_API_KEY
- Content-Type: application/json
- Body (JSON) :
json
{
"from_number": "+14157774444",
"to_number": "+12137774445",
"override_agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD"
}
The override_agent_id field allows you to specify which agent should handle the call, overriding any default agent configured for the phone number . Replace "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD" with your actual agent ID from your Retell AI dashboard.
This way, each of your 3 n8n workflows can use the same phone number but specify different agents by changing the override_agent_id value in the JSON payload.AI Evy
07/30/2025, 3:58 PMAI Evy
07/30/2025, 3:58 PMcarlos.sanchez3072
08/06/2025, 12:07 PMAI Evy
08/06/2025, 12:07 PMAI Evy
08/06/2025, 12:07 PMinvalid_destination
- telephony_provider_permission_deniedAI Evy
08/06/2025, 12:07 PMtelephony_provider_unavailable
- sip_routing_error
## Recommended Actions
1. **Check Zadarma Configuration**: Verify that your original number's configuration in Zadarma wasn't affected when you added the new number.
2. **Review SIP Settings**: Ensure your Elastic SIP Trunking settings are still correct, including termination SIP URI and authentication credentials [(6) ]() .
3. **Contact Zadarma Support**: Since this appears to be a provider-side issue, reach out to Zadarma's support team to verify that adding the new number didn't affect your existing number's configuration [(4) ]() .
The timing of the issue (immediately after purchasing a new Zadarma number) suggests this is likely a configuration change on Zadarma's side rather than a Retell AI issue.AI Evy
08/06/2025, 12:08 PMAI Evy
08/06/2025, 12:08 PM