https://retellai.com/?utm_source=discord&utm_medium=seo logo
does retell ai provides and API so I can query all...
# ❓・ai-evy-support
h
@AI Evy does retell ai provides and API so I can query all call history and other information?
a
Thanks for tagging me @hergustone. I'll look through relevant sources and get back to you shortly.
### Answer Yes, Retell AI provides comprehensive APIs to query call history and other information [(1) ]() [(2) ]() . ## List Calls API You can retrieve multiple calls using the List Calls API [(1) ]() :
Copy 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) ;
## Get Individual Call For specific call details, use the Get Call API [(2) ]() :
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const callResponse = await client.call.retrieve('119c3f8e47135a29e65947eeb34cf12d') ;
console.log(callResponse) ;
## Available Data The APIs provide comprehensive call information including [(1) ]() [(2) ]() : - Call transcripts and recordings - Call duration and timestamps - Latency metrics (e2e, LLM, TTS, etc.) - Call analysis (sentiment, summary, success status) - Cost breakdown and token usage - Disconnection reasons - Dynamic variables and metadata ## Filtering Options The List Calls API supports extensive filtering by agent ID, call status, version, disconnection reason, phone numbers, and date ranges [(1) ]() . Session history and recordings are stored indefinitely [(3) ]() .
​ To learn more, see the sources I considered: [[1] List Calls](https://docs.retellai.com/api-references/list-calls) [[2] Get Call](https://docs.retellai.com/api-references/get-call) [[3] Monitor sessions via dashboard](https://docs.retellai.com/features/session-history) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
h
@AI Evy is it included in all plans like the on-deman one?