romanoclan
10/08/2025, 7:19 PMAI Evy
10/08/2025, 7:19 PMAI Evy
10/08/2025, 7:20 PMtrigger_timestamp parameter [(1) ]() .
Looking at the Create Batch Call endpoint, the scheduled_timestamp field in the response shows a Unix timestamp format (1735718400) . The documentation doesn't specify support for ISO 8601 formatted strings with timezone information.
For your Chicago example (October 10, 2025 at 2:30 PM CT) , you should:
1. Convert the user's local datetime (2:30 PM Central Time) to UTC first
2. Convert that UTC time to Unix milliseconds
3. Send that value as the trigger_timestamp parameter
The API expects Unix timestamps in milliseconds, so converting to UTC first ensures the calls trigger at the correct absolute time regardless of server timezone .
Here's the JavaScript example from the documentation for creating a batch call:
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const batchCallResponse = await client.batchCall.createBatchCall({
from_number: '+14157774444',
tasks: [{ to_number: '+12137774445' }],
}) ;
console.log(batchCallResponse.batch_call_id) ;
The documentation confirms that trigger_timestamp is used to trigger the entire batch call at a specific time [(2) ]() .
**Recommended approach**: Always convert user's local datetime to UTC, then to Unix milliseconds before sending to the API.AI Evy
10/08/2025, 7:20 PMAI Evy
10/08/2025, 7:20 PM