https://retellai.com/?utm_source=discord&utm_medium=seo logo
<@1145576664366055464> whats is the correct endpoi...
# ❓・ai-evy-support
u
@AI Evy whats is the correct endpoint to pull data into a custom dashbaord?
a
Thanks for tagging me @66tech. I'll look through relevant sources and get back to you shortly.
### Answer For pulling data into a custom dashboard, you'll want to use these key Retell AI endpoints: For call data: - Use
GET /v2/get-call/{call_id}
to retrieve details of a specific call [(1) ]() - The endpoint returns comprehensive call information including transcript, recording URL, call analysis, latency metrics, and cost data For agent data: - Use
GET /list-agents
to retrieve all agents [(2) ]() - This returns agent configurations, settings, and metadata For phone number data: - Use
GET /list-phone-numbers
to get all phone numbers [(3) ]() - This provides phone number details, associated agents, and configuration For conversation flow data: - Use
GET /get-conversation-flow/{conversation_flow_id}
to retrieve conversation flow details [(4) ]() Here's an example of retrieving call data:
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) ;
[(1) ]() The call response includes detailed metrics like latency data, call analysis, transcript, recording URLs, and cost information that would be valuable for dashboard analytics .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.