brytons
09/23/2025, 6:56 PMAI Evy
09/23/2025, 6:56 PMAI Evy
09/23/2025, 6:57 PM<https://api.retellai.com/v1/agent/%7Bagent_id%7D/versions>
The official Python code example uses the JavaScript SDK, but if you are using requests, your call should look like:
python
headers = {
"Authorization": f"Bearer {token}"
}
response = requests.get(
f"<https://api.retellai.com/v1/agent/%7Bagent_id%7D/versions%22,>
headers=headers
)
[(1) ]()
Make sure your endpoint matches this format. If you continue to get a 404, double-check that your agent_id is correct and exists in your account. For more, see [Get Agent Versions]() .brytons
09/23/2025, 6:58 PMAI Evy
09/23/2025, 6:58 PMAI Evy
09/23/2025, 6:58 PMAI Evy
09/23/2025, 6:58 PMAI Evy
09/23/2025, 6:58 PMbrytons
09/23/2025, 6:59 PMbrytons
09/23/2025, 6:59 PMAI Evy
09/23/2025, 6:59 PMAI Evy
09/23/2025, 7:00 PMjavascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const agentResponses = await client.agent.getVersions('16b980523634a6dc504898cda492e939') ;
console.log(agentResponses) ;
If the agent is visible in the dashboard but not via API, there may be a sync or permissions issue [(1) ]() , [(2) ]() .
Check out these potentially useful sources: [Get Agent Versions]() , [List Agents]() .AI Evy
09/23/2025, 7:00 PMAI Evy
09/23/2025, 7:00 PMAI Evy
09/23/2025, 7:02 PMAI Evy
09/23/2025, 7:02 PMbrytons
09/23/2025, 7:10 PMAI Evy
09/23/2025, 7:10 PMAI Evy
09/23/2025, 7:10 PMAI Evy
09/23/2025, 7:11 PMAI Evy
09/23/2025, 7:11 PM