Vyyy
01/19/2026, 7:53 PMAI Evy
01/19/2026, 7:53 PMAI Evy
01/19/2026, 7:54 PMAI Evy
01/19/2026, 7:54 PMAI Evy
01/19/2026, 7:54 PMjavascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const callResponse = await client.call.retrieve('119c3f8e47135a29e65947eeb34cf12d') ;
console.log(callResponse) ;
The response includes:
- transcript - Full transcription of the call
- transcript_object - Transcript as a list of utterances with timestamps
- recording_url - Recording of the call
- latency - Latency tracking (e2e, asr, llm, tts, etc.)
- call_analysis - Post-call analysis including sentiment, summary, and custom data
## 2. Set Up Webhooks
Retell generates webhooks on each call: call_started, call_ended, and call_analyzed. [(2) ]()
To configure webhooks, go to webhook settings in your agent within the dashboard.
Subscribe to the call_analyzed webhook event type to receive post-call analysis data (including transcript, recording, sentiment, summary) once it's ready. [(3) ]()
The webhook URL you set will receive the call data automatically when each event occurs.Vyyy
01/19/2026, 8:30 PMAI Evy
01/19/2026, 8:30 PMAI Evy
01/19/2026, 8:30 PMbash
curl --location 'localhost:8080/webhook' \
--header 'Content-Type: application/json' \
--data '{
"event": "call_ended",
"call": {
"call_id": "test123"
}
}'
Your endpoint should return a 2xx status code with no body expected. [(1) ]()AI Evy
01/19/2026, 8:30 PMAI Evy
01/19/2026, 8:30 PM