jerahfel_19140
10/01/2025, 7:09 AMAI Evy
10/01/2025, 7:09 AMAI Evy
10/01/2025, 7:09 AMPOST <https://api.retellai.com/v2/register-phone-call>
Your request must include all required fields, especially agent_id, and optionally fields like from_number, to_number, and direction ("outbound" for outbound calls) . The API key must be sent in the Authorization header as Bearer YOUR_API_KEY [(1) ]() .
Example payload:
json
{
"agent_id": "YOUR_AGENT_ID",
"from_number": "+14157774444",
"to_number": "+12137774445",
"direction": "outbound"
}
Make sure your HTTP request from n8n matches this structure and that the endpoint URL is exactly as above. Double-check that there are no typos in the URL and that the API key is valid .
If n8n reports the resource is not found, verify:
- The endpoint URL is (no extra spaces, correct spelling, and /v2/ path) .
- The HTTP method is POST.
- The Content-Type is set to application/json.
- The Authorization header is present and correct.
If your request has no error logs but the call is not triggered, ensure that all required payload fields are included and the agent_id is valid. Also, see this related discussion: [HTTP Request not working]() [(2) ]() .
For more information, review the official documentation: [Register Phone Call]() [(1) ]() .AI Evy
10/01/2025, 7:09 AMAI Evy
10/01/2025, 7:09 AMjerahfel_19140
10/01/2025, 7:33 AMAI Evy
10/01/2025, 7:33 AMAI Evy
10/01/2025, 7:33 AMAI Evy
10/01/2025, 7:33 AMjson
{
"agent_id": "YOUR_AGENT_ID",
"from_number": "+14157774444",
"to_number": "+12137774445",
"direction": "outbound"
}
If you are not getting any error in n8n but the call is not triggered, verify that your agent_id and phone numbers are correct and in E.164 format (e.g., +14157774444) . Also, check your Retell AI dashboard for any call logs or errors associated with your API requests.
If you are still stuck, please share the exact HTTP response code and body you are receiving from the API (redact sensitive info) . This will help narrow down whether it is an authentication, payload, or agent configuration issue.
For further details, see: [Register Phone Call]()AI Evy
10/01/2025, 7:33 AMjerahfel_19140
10/01/2025, 7:37 AMAI Evy
10/01/2025, 7:40 AMjerahfel_19140
10/01/2025, 7:40 AMAI Evy
10/01/2025, 7:40 AMjavascript
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) ;
If your HTTP request is not triggering a call and you receive no error, double-check:
- The API key is valid and present in the Authorization header as Bearer YOUR_RETELL_API_KEY.
- from_number and to_number are in E.164 format (e.g., +14157774444) .
- The agent_id associated with the number is valid.
- The phone number you are calling is active and configured in your Retell account.
Also, review the API response body for any hidden error fields. If calls still do not trigger, check your Retell dashboard for call logs and errors, and verify the number is correctly set up under your API key [(2) ]() .AI Evy
10/01/2025, 7:41 AMAI Evy
10/01/2025, 7:41 AMjerahfel_19140
10/01/2025, 7:45 AMAI Evy
10/01/2025, 7:45 AMAI Evy
10/01/2025, 7:45 AMAI Evy
10/01/2025, 7:45 AMAI Evy
10/01/2025, 7:45 AMjerahfel_19140
10/15/2025, 5:14 AMAI Evy
10/15/2025, 5:14 AMAI Evy
10/15/2025, 5:14 AMinbound_agent_id and outbound_agent_id fields, which can be configured independently [(1) ]() :
json
{
"phone_number": "+14157774444",
"inbound_agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
"outbound_agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD"
}
The configuration options allow you to [(2) ]() :
- Use different agents for inbound vs outbound calls
- Configure outbound only by leaving inbound agent unset
- Configure inbound only by setting only the inbound agent
Using the same number for both directions won't block the line, as VoIP numbers support multiple concurrent calls [(3) ]() . An inbound caller won't encounter a busy signal just because an agent is making an outbound call from the same number .AI Evy
10/15/2025, 5:14 AMAI Evy
10/15/2025, 5:14 AMjerahfel_19140
10/15/2025, 5:20 AMAI Evy
10/15/2025, 5:20 AMAI Evy
10/15/2025, 5:20 AMAI Evy
10/15/2025, 5:20 AMAI Evy
10/15/2025, 5:20 AMAI Evy
10/15/2025, 5:20 AMAI Evy
10/20/2025, 1:52 AMjerahfel_19140
10/20/2025, 1:52 AMAI Evy
10/20/2025, 1:52 AMAI Evy
10/20/2025, 1:52 AMinbound_agent_id and outbound_agent_id for the same phone number .
When you retrieve phone number details, you'll see both fields that can be configured independently :
json
{
"phone_number": "+14157774444",
"phone_number_type": "retell-twilio",
"phone_number_pretty": "+1 (415) 777-4444",
"inbound_agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
"outbound_agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
"inbound_agent_version": 1,
"outbound_agent_version": 1,
"area_code": 415,
"nickname": "Frontdesk Number",
"inbound_webhook_url": "<https://example.com/inbound-webhook%22,>
"last_modification_timestamp": 1703413636133
}
The system allows you to :
- Use the same agent for both inbound and outbound calls
- Use different agents for inbound vs outbound calls
- Configure outbound only by setting inbound_agent_id to null
- Configure inbound only by setting outbound_agent_id to null
If you need to use different agents for the same inbound number based on conditions, you can also use the inbound webhook feature to dynamically route calls [(2) ]() .AI Evy
10/20/2025, 1:52 AMjerahfel_19140
10/20/2025, 1:54 AMAI Evy
10/20/2025, 1:54 AMAI Evy
10/20/2025, 1:54 AMinbound_agent_id and outbound_agent_id fields [(1) ]() [(2) ]() .
When creating a phone number, you can set both agent IDs to the same value [(3) ]() :
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneNumberResponse = await client.phoneNumber.create() ;
console.log(phoneNumberResponse.inbound_agent_id) ;
When updating an existing phone number, you can use the same agent ID for both directions [(1) ]() :
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneNumberResponse = await client.phoneNumber.update('+14157774444', {
inbound_agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
nickname: 'Frontdesk Number',
outbound_agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
}) ;
console.log(phoneNumberResponse.inbound_agent_id) ;
The phone number configuration will show both agent IDs set to the same value [(2) ]() :
json
{
"phone_number": "+14157774444",
"phone_number_type": "retell-twilio",
"phone_number_pretty": "+1 (415) 777-4444",
"inbound_agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
"outbound_agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
"inbound_agent_version": 1,
"outbound_agent_version": 1,
"area_code": 415,
"nickname": "Frontdesk Number",
"inbound_webhook_url": "<https://example.com/inbound-webhook%22,>
"last_modification_timestamp": 1703413636133
}AI Evy
10/20/2025, 1:54 AMAI Evy
10/20/2025, 1:54 AMjerahfel_19140
10/20/2025, 1:57 AMAI Evy
10/20/2025, 1:57 AMAI Evy
10/20/2025, 1:57 AMjavascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneNumberResponse = await client.phoneNumber.create() ;
console.log(phoneNumberResponse.inbound_agent_id) ;
[(2) ]()
## Option 2: Import Your Existing Twilio Number
If you already have a Twilio number with your own account, you can import it to Retell using SIP trunking [(3) ]() [(4) ]() :
javascript
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',
}) ;
console.log(phoneNumberResponse.inbound_agent_id) ;
[(3) ]()
## Configuration Result
Once configured, your phone number will show both agent IDs set to the same value [(1) ]() :AI Evy
10/20/2025, 1:57 AMjson
{
"phone_number": "+14157774444",
"phone_number_type": "retell-twilio",
"phone_number_pretty": "+1 (415) 777-4444",
"inbound_agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
"outbound_agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
"inbound_agent_version": 1,
"outbound_agent_version": 1,
"area_code": 415,
"nickname": "Frontdesk Number",
"inbound_webhook_url": "<https://example.com/inbound-webhook%22,>
"last_modification_timestamp": 1703413636133
}
If you need to set up SIP trunking with your existing Twilio account, follow the detailed steps in the Twilio integration guide [(4) ]() .AI Evy
10/20/2025, 1:57 AMAI Evy
10/20/2025, 1:57 AMjerahfel_19140
10/20/2025, 2:51 AMAI Evy
10/20/2025, 2:51 AMAI Evy
10/20/2025, 2:51 AMAI Evy
10/20/2025, 2:51 AMAI Evy
10/20/2025, 2:51 AMAI Evy
10/20/2025, 2:51 AMAI Evy
11/03/2025, 12:31 AMjerahfel_19140
11/03/2025, 12:31 AMAI Evy
11/03/2025, 12:31 AMAI Evy
11/03/2025, 12:31 AMAI Evy
11/03/2025, 12:31 AM