papakojo_12
08/18/2025, 1:28 PMAI Evy
08/18/2025, 1:28 PMAI Evy
08/18/2025, 1:28 PMfilter_criteria.start_timestamp parameter in the List Calls API, it's an object that allows you to filter calls based on their start timestamp range [(1) ]() .
The start_timestamp filter criteria requires an object with specific properties :
json
{
"start_timestamp": {
"upper_threshold": 1738475421000,
"lower_threshold": 1738475411000
}
}
The object contains:
- `upper_threshold`: The maximum timestamp value (in milliseconds since epoch)
- `lower_threshold`: The minimum timestamp value (in milliseconds since epoch)
This means you need to provide both lower_threshold and upper_threshold properties within the start_timestamp object to define the time range for filtering calls . The timestamps should be in milliseconds since epoch format .
Note that there was a discussion in the Discord community where someone initially tried passing integers directly instead of the required object format, which resulted in a 400 error [(2) ]() . The correct approach is to use the object structure with lower_threshold and upper_threshold properties as shown in the official documentation [(1) ]() .AI Evy
08/18/2025, 1:28 PMAI Evy
08/18/2025, 1:28 PMpapakojo_12
08/18/2025, 6:38 PMAI Evy
08/18/2025, 6:38 PMAI Evy
08/18/2025, 6:38 PMfilter_criteria with timestamp filtering [(1) ]() , but the specific details about the upper_threshold and lower_threshold structure for start_timestamp aren't explicitly documented in the sources I have access to.
However, I can provide a general example of how date-to-milliseconds conversion typically works:
Example conversion process:
- Start date: January 1, 2024, 00:00:00 UTC → 1704067200000 milliseconds
- End date: January 31, 2024, 23:59:59 UTC → 1706745599000 milliseconds
The structure would typically look like:
json
{
"filter_criteria": {
"start_timestamp": {
"lower_threshold": 1704067200000,
"upper_threshold": 1706745599000
}
}
}
From the Discord discussion mentioned in your thread history, there was someone who had issues with timestamp filtering and received a 400 error when not using the correct object format [(2) ]() .
For the most accurate and up-to-date information about the exact upper_threshold and lower_threshold implementation, I'd recommend checking the complete API documentation or contacting support, as the specific timestamp filtering structure details aren't fully outlined in my current sources.AI Evy
08/18/2025, 6:38 PMAI Evy
08/18/2025, 6:38 PM