trx598
02/27/2026, 6:59 PMAI Evy
02/27/2026, 6:59 PMAI Evy
02/27/2026, 6:59 PMfilter_criteria parameter. [(1) ]()
Here's the code:
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const callResponses = await client.call.list() ;
console.log(callResponses) ;
To filter by a specific time period, use the start_timestamp filter with upper_threshold and lower_threshold (in milliseconds) :
json
{
"filter_criteria": {
"start_timestamp": {
"upper_threshold": 1738475421000,
"lower_threshold": 1738475411000
}
}
}
Key parameters you can use:
- **limit**: Default 50, max 1000 per request
- **pagination_key**: Use the last call_id from results to fetch the next page if you need more than 1000 calls
- **sort_order**: ascending or descending (default) by start_timestamp
If you don't specify an agent_id in the filter criteria, the API returns calls across all agents.AI Evy
02/27/2026, 6:59 PMAI Evy
02/27/2026, 6:59 PMtrx598
02/27/2026, 7:00 PMtrx598
02/27/2026, 7:00 PMAI Evy
02/27/2026, 7:00 PMAI Evy
02/27/2026, 7:00 PMstart_timestamp and end_timestamp data for each call. [(1) ]()AI Evy
02/27/2026, 7:00 PMAI Evy
02/27/2026, 7:00 PMtrx598
02/27/2026, 7:03 PMtrx598
02/27/2026, 7:08 PMAI Evy
02/27/2026, 7:08 PMAI Evy
02/27/2026, 7:08 PMuser_no_answer — This maps to the disconnection reason dial_no_answer, meaning the number dialed did not answer. [(1) ]() [(2) ]()
- SIP status code: undefined — When the SIP error code is unavailable or unknown, this typically falls under dial_failed. [(2) ]()
- twirp error unknown: canceled — This suggests the connection attempt was terminated before establishing. [(3) ]()
Common Causes:
- The destination number didn't pick up
- The call timed out waiting for an answer
- There may be telephony provider issues
Troubleshooting Steps:
1. Check the call history and detailed log in the Retell Dashboard—it contains the disconnection reason, SIP error code, and error message. [(2) ]()
2. Verify the destination number is valid and can accept calls.
3. If using custom telephony:
- Double-check your SIP trunk configuration and ensure you imported the correct information.
- Ensure phone numbers are in E.164 format (e.g., +14157774444) . [(3) ]()
- Check with your telephony provider to see what error occurred on their side. [(2) ]()
4. Check if the number is marked as spam — numbers with high outbound volume spikes or low pickup rates may get blocked by carriers.
You can view the full disconnection reason deAI Evy
02/27/2026, 7:08 PMAI Evy
02/27/2026, 7:08 PMAI Evy
02/27/2026, 7:08 PM