https://retellai.com/?utm_source=discord&utm_medium=seo logo
I tried your recomendation but webhook is still no...
# ❓・ai-evy-support
l
@AI Evy I tried your recomendation but webhook is still not working
a
Thanks for tagging me @lathe_38179. I'll look through relevant sources and get back to you shortly.
### Answer [(1) ]() , [(2) ]() Based on the documentation, here are key troubleshooting steps for webhook issues: Webhook Configuration Requirements: - The webhook will
POST
the payload to your endpoint with a 10-second timeout [(1) ]() - Your server must return a successful status code (2xx) - no body is expected - If no success status is received within 10 seconds, the webhook will be retried up to 3 times Security Verification: Ensure you're properly verifying the webhook signature using your Retell API key [(2) ]() :
Copy code
javascript
// install the sdk: <https://docs.retellai.com/get-started/sdk>
import { Retell } from "retell-sdk";
import express, { Request, Response } from "express";
const app = express() ;
app.use(express.json() ) ;
app.post("/webhook", (req: Request, res: Response) => {
 if (
 !Retell.verify(
 JSON.stringify(req.body) ,
 process.env.RETELL_API_KEY,
 req.headers["x-retell-signature"] as string,
 )
 ) {
 console.error("Invalid signature") ;
 return;
 }
 const {event, call} = req.body;
 // process the webhook
 // Acknowledge the receipt of the event
 res.status(204) .send() ;
}) ;
Common Issues: - Only API keys with a webhook badge can be used to verify webhooks - For calls that don't connect (dial_failed, dial_no_answer, dial_busy) ,
call_started
webhooks won't trigger, but
call_ended
and
call_analyzed
will still fire [(1) ]() - You can allowlist Retell IP addresses:
100.20.5.228
[(2) ]() Event Types: - `call_started`: Triggered when a new call begins [(1) ]() - `call_ended`: Triggered when a call completes, transfers, or encounters an error - `call_analyzed`: Triggered when call analysis is complete If you're still experiencing issues, please verify your endpoint is responding with a 2xx status code within 10 seconds and that you're using the correct API key for webhook verification.
​ To learn more, see the sources I considered: [[1] Webhook Overview](https://docs.retellai.com/features/webhook-overview) [[2] Secure the webhook](https://docs.retellai.com/features/secure-webhook) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
l
@AI Evy were do I find the api key at
a
Thanks for the follow-up, @lathe_38179. I'll get back to you soon.
### Answer You can find your API keys in your Retell AI dashboard [(1) ]() . To access them, go to the left side menu and click on "API Keys" [(2) ]() . Your API keys are used to authenticate requests to REST API endpoints, SDK integrations, and webhook endpoints [(1) ]() . When making API requests, include your API key in the request headers using this format :
Copy code
Authorization: Bearer YOUR_API_KEY
Each workspace can have multiple API keys, all sharing the same permission level . For webhook authentication specifically, one of your API keys is automatically designated as the webhook API key, which is used to sign and verify webhook requests and cannot be deleted . Make sure to keep your API keys secure and never share them in public repositories or client-side code .
​ To learn more, see the sources I considered: [[1] API Key Overview](https://docs.retellai.com/accounts/api-keys-overview) [[2] where can I find my api keys?](https://discord.com/channels/1186424376300679209/1322586375941259425) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
l
I dont see a menu that shows api keys
@AI Evy I dont have a menu with api keys
a
Thanks for the follow-up, @lathe_38179. I'll get back to you soon.
### Answer You should find your API keys in the Retell AI dashboard under the "Keys" section [(1) ]() . According to the documentation, the "API Keys" section allows you to manage your authentication credentials for accessing the API . To access your API keys: 1. Look for the "API Keys" section in your dashboard 2. From there you can create a new API key by clicking the "Add" button 3. You can also delete existing keys or set a webhook API key If you're not seeing an "API Keys" menu option, try looking in the left side menu for "API Keys" as mentioned in the Discord discussion [(2) ]() . If you still can't locate the API keys section in your dashboard, I'd recommend checking if you have the proper account permissions or trying to refresh your browser session.
​ To learn more, see the sources I considered: [[1] Manage API Keys](https://docs.retellai.com/accounts/manage-api-keys) [[2] where can I find my api keys?](https://discord.com/channels/1186424376300679209/1322586375941259425) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
Thanks for the follow-up, @lathe_38179. I'll get back to you soon.
### Answer Based on the documentation, you can find your API keys in the Retell AI dashboard [(1) ]() . The "API Keys" section allows you to manage your authentication credentials for accessing the API . In the API Keys section, you can : 1. Create a new API key - Click the "Add" button and give your key a descriptive name to identify its purpose 2. Delete an existing API key - Locate the key you want to remove, click the delete (trash) icon, and confirm the deletion when prompted 3. Set a webhook API key - Select an existing API key and click "Set as Webhook Key" to designate it for webhook authentication For authentication, you'll use your API key in the request headers with this format [(2) ]() :
Copy code
Authorization: Bearer YOUR_API_KEY
Each workspace can have multiple API keys, all sharing the same permission level . For webhook authentication specifically, one of your API keys is automatically designated as the webhook API key, which is used to sign and verify webhook requests and cannot be deleted . If you're still not seeing the API Keys section in your dashboard, you may need to check your account permissions or contact support for assistance accessing this area.
​ To learn more, see the sources I considered: [[1] Manage API Keys](https://docs.retellai.com/accounts/manage-api-keys) [[2] API Key Overview](https://docs.retellai.com/accounts/api-keys-overview) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
l
@AI Evy were do I find the secrets to put api key into it
a
Thanks for the follow-up, @lathe_38179. I'll get back to you soon.
### Answer Based on the documentation, when you need to use your API key in your code, you'll store it as an environment variable or secret [(1) ]() . Here's how it's typically implemented: For authentication in API requests, you include your API key in the Authorization header :
Copy code
Authorization: Bearer YOUR_API_KEY
In code examples, like the JavaScript SDK, you would initialize the client with your API key [(2) ]() :
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
The "secrets" you're referring to would typically be environment variables in your deployment platform (like Vercel, Heroku, AWS, etc.) or a
.env
file for local development. You would set an environment variable like
RETELL_API_KEY
and then reference it in your code as
process.env.RETELL_API_KEY
. The actual API keys are managed in your Retell AI dashboard in the "API Keys" section, where you can create new keys by clicking the "Add" button and giving them descriptive names [(3) ]() . Keep your API keys secure and never share them publicly [(1) ]() .
​ To learn more, see the sources I considered: [[1] API Key Overview](https://docs.retellai.com/accounts/api-keys-overview) [[2] List Phone Numbers](https://docs.retellai.com/api-references/list-phone-numbers) [[3] Manage API Keys](https://docs.retellai.com/accounts/manage-api-keys) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
l
@AI Evy I added the api key and signature but inbound hook still not working
a
Thanks for the follow-up, @lathe_38179. I'll get back to you soon.
### Answer Based on the documentation, let me help troubleshoot your inbound webhook issue. Here are the key requirements and common problems: Webhook Configuration Requirements: The webhook will
POST
the payload to your endpoint with a timeout of 10 seconds [(1) ]() . If within 10 seconds no success status (2xx) is received, the webhook will be retried, up to 3 times . The webhook can be verified using your Retell API Key to make sure it comes from Retell AI . Request Payload Structure: For inbound calls, the payload includes these fields : - `agent_id`: if the number has inbound agent id set, you will see it in payload - `from_number`: this will always show up in payload, helps you identify the caller and process the call accordingly - `to_number`: this will always show up in payload, helps you identify the receiver and process the call accordingly Here's the sample payload format :
Copy code
json
{
 "event": "call_inbound",
 "call_inbound": {
 "agent_id": "agent_12345",
 "from_number": "+12137771234",
 "to_number": "+12137771235"
 }
}
Response Format: You need to return a JSON response with a successful status code (2xx) with fields grouped under
call_inbound
. Here's the sample response :
Copy code
json
{
 "call_inbound": {
 "override_agent_id": "agent_12345",
 "override_agent_version": 1,
 "dynamic_variables": {
 "customer_name": "John Doe"
 },
 "metadata": {
 "random_id": "12345"
 }
 }
}
Common Issues Based on Community Reports: From Discord discussions, users have reported signature verification issues [(2) ]() . Make sure you're using the designated webhook API key (not just any API key) [(3) ]() . For enhanced security, one of your API keys is automatically designated for webhook authentication . This designated webhook API key is used to sign and verify webhook requests and cannot be deleted . Troubleshooting Steps: 1. Verify your endpoint returns a 2xx status code within 10 seconds [(1) ]() 2. Ensure you're using the correct webhook API key for signature verification [(3) ]() 3. Check that your webhook URL is properly configured in your phone number settings [(1) ]() 4. If webhook fails all retry attempts, it will check whether the number has an inbound agent id set. If it does, it will connect to that agent. If not, it will disconnect the call Call Rejection Feature: You can use this webhook to decline inbound calls based on caller number . To selectively reject calls: unset the
Inbound Call Agent
in phone number settings, enable the
Inbound Webhook
, listen to
call_inbound.from_number
, and respond with 200 status code with or without
call_inbound.override_agent_id
to accept or reject respectively . If you're still having issues, please check that your webhook endpoint is responding correctly and using the proper API key for verification.
​ To learn more, see the sources I considered: [[1] Inbound call webhook](https://docs.retellai.com/features/inbound-call-webhook) [[2] Webhook signature header not passing through retell sdk as valid](https://discord.com/channels/1186424376300679209/1403098609016242206) [[3] API Key Overview](https://docs.retellai.com/accounts/api-keys-overview) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @lathe_38179. I'll get back to you soon.
l
@AI Evy with these corrections, still not working
a
### Answer Based on the documentation and community reports, here are additional troubleshooting steps for persistent webhook issues: Webhook Signature Verification Issues: From community discussions, signature verification can fail due to special characters in the webhook payload [(1) ]() . One user found that adding
ensure_ascii=False
to JSON dump helped resolve verification issues when special characters (like Spanish accents) appeared in transcripts . Proper Webhook Verification Code: Ensure you're using the exact verification method from the documentation [(2) ]() :
Copy code
javascript
// install the sdk: <https://docs.retellai.com/get-started/sdk>
import { Retell } from "retell-sdk";
import express, { Request, Response } from "express";
const app = express() ;
app.use(express.json() ) ;
app.post("/webhook", (req: Request, res: Response) => {
 if (
 !Retell.verify(
 JSON.stringify(req.body) ,
 process.env.RETELL_API_KEY,
 req.headers["x-retell-signature"] as string,
 )
 ) {
 console.error("Invalid signature") ;
 return;
 }
 const {event, call} = req.body;
 // process the webhook
 // Acknowledge the receipt of the event
 res.status(204) .send() ;
}) ;
Critical Requirements: - Only the API key with a webhook badge can be used to verify webhooks - Your endpoint must return a 2xx status code within 10 seconds - You can allowlist Retell IP address:
100.20.5.228
Common Issues from Community: Users have reported signature verification failures that appear random [(1) ]() . Some have found issues with redirect responses (307 Temporary Redirect) from services like ngrok . If you're still experiencing issues after these corrections, the problem might be related to character encoding in your webhook payload or network configuration between Retell and your endpoint.
​ To learn more, see the sources I considered: [[1] Webhook signature fails verification](https://discord.com/channels/1186424376300679209/1257584657172529183) [[2] Secure the webhook](https://docs.retellai.com/features/secure-webhook) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
l
@AI Evy can you give me all inbound setup with common issues and fixes in text for ccopy and paste
a
Thanks for the follow-up, @lathe_38179. I'll get back to you soon.
## 5. Common Issues and Fixes Issue 1: Webhook Timeout [(1) ]() - Problem: Webhook not responding within 10 seconds - Fix: Ensure your endpoint returns 2xx status code quickly - Fallback: After 3 failed retries, calls route to inbound agent if set, otherwise disconnect Issue 2: Signature Verification Failure [(3) ]() - Problem: Invalid signature errors - Fix: Use only the API key with webhook badge next to it - Fix: Allowlist Retell IP address:
100.20.5.228
Issue 3: Call Rejection Setup [(1) ]() To selectively reject inbound calls: - Unset the
Inbound Call Agent
in phone number setting - Enable the
Inbound Webhook
- Listen to webhook request body
call_inbound.from_number
- If you want to pick up: respond with 200 status containing
call_inbound.override_agent_id
- If you want to reject: respond with 200 status WITHOUT
call_inbound.override_agent_id
Issue 4: Call Stays in Ringing State - Problem: What happens when webhook response not received - Answer: The call would continue to stay in ringing state Issue 5: All Webhook Attempts Fail - Problem: What happens if webhook unsuccessful after retries - Answer: It checks if number has inbound agent id set. If yes, connects to that agent. If no, disconnects the call. ## 6. Dynamic Variables Usage Access caller information in prompts: [(4) ]() Use
{{to_number}}
in your agent prompt to reference the called number. For inbound calls, you can return the caller's number as a dynamic variable from your webhook response and reference it in your prompts.
### Answer # Complete Inbound Webhook Setup Guide ## 1. Basic Webhook Configuration Webhook Spec Requirements: [(1) ]() - The webhook will POST the payload to your endpoint - Timeout of 10 seconds - If no success status (2xx) is received within 10 seconds, retried up to 3 times - Can be verified using your Retell API Key Phone Number Configuration: [(2) ]() Set the
inbound_webhook_url
parameter when updating your phone number:
Copy code
json
{
  "inbound_webhook_url": "<https://example.com/inbound-webhook%22>
}
## 2. Request Payload Structure Sample Inbound Payload: [(1) ]()
Copy code
json
{
  "event": "call_inbound",
  "call_inbound": {
    "agent_id": "agent_12345",
    "from_number": "+12137771234",
    "to_number": "+12137771235"
  }
}
Payload Fields: - `agent_id`: if the number has inbound agent id set, you will see it in payload - `from_number`: this will always show up in payload, helps you identify the caller and process the call accordingly - `to_number`: this will always show up in payload, helps you identify the receiver and process the call accordingly ## 3. Response Format Required Response Structure:
Copy code
json
{
  "call_inbound": {
    "override_agent_id": "agent_12345",
    "override_agent_version": 1,
    "dynamic_variables": {
      "customer_name": "John Doe"
    },
    "metadata": {
      "random_id": "12345"
    }
  }
}
Response Fields (all optional) : - `override_agent_id`: if you want to override the agent id, you can set it here - `override_agent_version`: if you want to override the agent version, you can set it here - `dynamic_variables`: if you want to set dynamic variables for this inbound call, you can set it here - `metadata`: if you want to set metadata for this inbound call, you can set it here ## 4. Webhook Security Implementation Node.js Implementation: [(3) ]()
Copy code
javascript
// install the sdk: <https://docs.retellai.com/get-started/sdk>
import { Retell } from "retell-sdk";
import express, { Request, Response } from "express";
const app = express() ;
app.use(express.json() ) ;
app.post("/webhook", (req: Request, res: Response) => {
  if (
    !Retell.verify(
      JSON.stringify(req.body) ,
      process.env.RETELL_API_KEY,
      req.headers["x-retell-signature"] as string,
    )
  ) {
    console.error("Invalid signature") ;
    return;
  }
  const {event, call} = req.body;
  // process the webhook
  // Acknowledge the receipt of the event
  res.status(204) .send() ;
}) ;
​ To learn more, see the sources I considered: [[1] Inbound call webhook](https://docs.retellai.com/features/inbound-call-webhook) [[2] Update Phone Number](https://docs.retellai.com/api-references/update-phone-number) [[3] Secure the webhook](https://docs.retellai.com/features/secure-webhook) [[4] Discord message from @naseem_53863 on 2024-12-22](https://discord.com/channels/1186424376300679209/1186462578310910112/1320489831326810194) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
l
@AI Evy is there a proopogattion time for re publishing
a
Thanks for the follow-up, @lathe_38179. I'll get back to you soon.
​ To learn more, see the sources I considered: [[1] API Key Overview](https://docs.retellai.com/accounts/api-keys-overview) [[2] Manage API Keys](https://docs.retellai.com/accounts/manage-api-keys) ​
### Answer I don't see any information about propagation time for republishing in the available sources. The documentation covers API key management [(1) ]() and creating/deleting API keys [(2) ]() , but doesn't mention timing for changes to take effect. If you're experiencing delays after making changes to your webhook configuration or API keys, I'd recommend: Visit [Contact Sales]() Visit [) Would you like a general answer based on my knowledge instead?
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
l
@AI Evy my inbound webhook isnt working after publish and save the webhook in numberr settings
a
Thanks for the follow-up, @lathe_38179. I'll get back to you soon.
What Happens When Webhook Fails : - If webhook is unsuccessful after 3 retry attempts, it checks if the number has an inbound agent id set - If it does, it connects the call to that agent - If not, it disconnects the call Potential Workaround: Based on community reports, this appears to be a known issue that has been acknowledged by Retell AI support [(1) ]() . One user reported the issue was later resolved by the team . I recommend checking if your webhook URL is still saved in the phone number settings and re-adding it if it was removed.
### Answer Based on the sources, there are several known issues with inbound webhook configuration that might be causing your problem [(1) ]() : Known Configuration Issues: - The inbound webhook URL can randomly be removed from the phone number webhook input - If you have both a phone number level
call_inbound
webhook and agent level webhook events (
call_started
,
call_ended
,
call_analyzed
) , they may not work together properly - Saving an agent configuration can cause the webhook URL to be lost from the phone number settings Troubleshooting Steps: 1. Verify Webhook URL is Still Saved : - Check that your
inbound_webhook_url
is still present in your phone number settings after saving - The URL may have been automatically removed due to the reported bug 2. Check Webhook Configuration [(2) ]() : Your webhook endpoint must: - Accept POST requests with a 10-second timeout - Return a successful status code (2xx) - Handle the expected payload format:
Copy code
json
{
 "event": "call_inbound",
 "call_inbound": {
 "agent_id": "agent_12345",
 "from_number": "+12137771234",
 "to_number": "+12137771235"
 }
}
3. Proper Response Format : Return a JSON response with successful status code (2xx) :
Copy code
json
{
 "call_inbound": {
 "override_agent_id": "agent_12345",
 "override_agent_version": 1,
 "dynamic_variables": {
 "customer_name": "John Doe"
 },
 "metadata": {
 "random_id": "12345"
 }
 }
}
​ To learn more, see the sources I considered: [[1] inbound webhook URL failing to save (or stay saved) and wont work together with conversation agaent](https://discord.com/channels/1186424376300679209/1398428473781125314) [[2] Inbound call webhook](https://docs.retellai.com/features/inbound-call-webhook) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
l
@AI Evy how can I get suport to debug this on the backend for me? I have tried everything
a
Thanks for the follow-up, @lathe_38179. I'll get back to you soon.
### Answer Based on the available sources, I can see there are references to support options in the Discord community discussions [(1) ]() . The discussion mentions that there is paid enterprise support available through the Retell AI team . For direct human support to help debug your backend webhook issues, you can: - Visit [Contact Sales]() - Visit [) Given that you've tried all the troubleshooting steps and are still experiencing issues with your inbound webhook, contacting their support team would be the best next step to get backend debugging assistance. Would you like a general answer based on my knowledge about typical support channels for developer platforms instead?
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] Discord message from @firstcall_55852 on 2025-08-15](https://discord.com/channels/1186424376300679209/1186462578310910112/1406017137344118814) ​