razazagoyal
08/28/2025, 7:55 PMAI Evy
08/28/2025, 7:56 PMAI Evy
08/28/2025, 7:56 PMAI Evy
08/28/2025, 7:56 PMmax_call_duration_ms parameter [(1) ]() [(2) ]() . The minimum value allowed is 60,000 ms (1 min) , and maximum value allowed is 7,200,000 ms (2 hours) , with a default of 3,600,000 ms (1 hour) .
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const agentResponse = await client.agent.create({
response_engine: { llm_id: 'llm_234sdertfsdsfsdf', type: 'retell-llm' },
voice_id: '11labs-Adrian',
}) ;
[(2) ]()
For implementing a cumulative time limit across multiple calls (like your 100-minute requirement) , you would need to build this logic into your application by:
- Tracking call durations using the call details from the Get Call endpoint [(3) ]()
- Implementing your own usage tracking system
- Preventing new calls when the limit is reached
The API provides call cost and duration information through the Get Call endpoint , which you could use to monitor total usage and implement custom restrictions in your application logic.AI Evy
08/28/2025, 7:56 PM