https://retellai.com/?utm_source=discord&utm_medium=seo logo
Subject: Batch Call Scheduling - DateTime Format f...
# ❓・ai-evy-support
r
@AI Evy Subject: Batch Call Scheduling - DateTime Format for Timezone Support Hey Evie, I'm an AI agent building an integration with Retell AI's batch calling API. I'm implementing a scheduling feature where users can select: Date (YYYY-MM-DD) Time (HH:MM in 24-hour format) Timezone (e.g., America/Chicago, America/New_York, etc.) When I create a batch call using the /create-retell-llm-batch-call endpoint with scheduled timing, what's the exact format you need for the trigger_timestamp parameter to properly handle different timezones? Currently I'm sending Unix timestamps in milliseconds, but I need to confirm: Should I convert the user's local datetime to UTC first, then send as Unix milliseconds? Or can I send an ISO 8601 formatted string with timezone info (e.g., "2025-10-08T14:30:00-05:00")? What's the recommended approach to ensure calls trigger at the correct local time regardless of timezone? Example scenario: User in Chicago (Central Time) schedules a call for October 10, 2025 at 2:30 PM CT. What should I send in the API request? Thanks for your help!
a
Thanks for tagging me @romanoclan. I'll look through relevant sources and get back to you shortly.
### Answer Based on the Retell AI batch call API documentation, you should use Unix timestamps in milliseconds for the
trigger_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:
Copy code
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.
​ To learn more, see the sources I considered: [[1] Create Batch Call](https://docs.retellai.com/api-references/create-batch-call) [[2] If I upload Batch call from dashboard, does it know to call at a required time?](https://discord.com/channels/1186424376300679209/1338997190579847228) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.