Vyyy
01/29/2026, 5:06 PMAI Evy
01/29/2026, 5:06 PMAI Evy
01/29/2026, 5:06 PMjavascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const agentIds = ['agent_id_1', 'agent_id_2', /* ...all 80 agent IDs */];
for (const agentId of agentIds) {
const agentResponse = await client.agent.update(agentId, {
agent_name: 'Updated Name', // your update parameters here
}) ;
console.log(agentResponse.agent_id) ;
}
You would:
1. Retrieve all your agent IDs (you can use the List Agents endpoint if needed)
2. Loop through each ID and call client.agent.update() with the desired changes
For conversation flow agents, the update method is similar:
[(2) ]()
javascript
const conversationFlowResponse = await client.conversationFlow.update('conversation_flow_id') ;
Consider adding error handling and rate limiting if you're updating many agents in quick succession.AI Evy
01/29/2026, 5:06 PMAI Evy
01/29/2026, 5:06 PM