AI Evy
01/06/2026, 10:08 PMAI Evy
01/06/2026, 10:09 PMjavascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const agentResponse = await client.agent.retrieve('16b980523634a6dc504898cda492e939') ;
console.log(agentResponse.agent_id) ;
[(2) ]()
You can also pass the version query parameter to retrieve a specific version rather than the latest draft.
Alternatively, use the Get Agent Versions endpoint to retrieve all versions of your agent:
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const agentResponses = await client.agent.getVersions('16b980523634a6dc504898cda492e939') ;
console.log(agentResponses) ;
[(1) ]()
The response will include voice settings such as: [(2) ]()
- voice_id
- voice_temperature
- voice_speed
- volume
- voice_model
- fallback_voice_ids
Replace the agent ID in the examples with your agent ID (agent_18991b652659417cec25733aaa) and specify version 73 to retrieve those exact settings.AI Evy
01/06/2026, 10:09 PMAI Evy
01/06/2026, 10:09 PM