esther_12813
08/27/2025, 1:54 AMAI Evy
08/27/2025, 1:54 AMAI Evy
08/27/2025, 1:55 AMAI Evy
08/27/2025, 1:55 AMAI Evy
08/27/2025, 1:55 AMesther_12813
08/27/2025, 1:56 AMesther_12813
08/27/2025, 1:56 AMAI Evy
08/27/2025, 1:56 AMAI Evy
08/27/2025, 1:57 AMjavascript
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 call response will include several transcript-related fields :
- `transcript`: Contains the full conversation as a string
- `transcript_object`: Provides detailed formatting with word-level timestamps
- `transcript_with_tool_calls`: Includes transcript with any tool calls made during the conversation
The transcript field shows the conversation in this format :
"Agent: hi how are you doing?\nUser: Doing pretty well. How are you?\nAgent: That's great to hear! I'm doing well too, thanks! What's up?\nUser: I don't have anything in particular.\nAgent: Got it, just checking in!\nUser: Alright. See you.\nAgent: have a nice day"
Note that transcripts are only available after the call has ended . If you're experiencing issues where transcripts show "This data has been deleted," this may be a temporary display issue that typically resolves itself [(2) ]() .AI Evy
08/27/2025, 1:57 AMAI Evy
08/27/2025, 1:57 AMesther_12813
08/27/2025, 2:33 AMAI Evy
08/27/2025, 2:33 AMAI Evy
08/27/2025, 2:33 AMjavascript
{
"call_type": "web_call",
"access_token": "eyJhbGciOiJIUzI1NiJ9.eyJ2aWRlbyI6eyJyb29tSm9p",
"call_id": "Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6",
// ... other fields
}
To get transcripts, use the Get Call endpoint with the call_id:
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 transcript data will be in these fields :
- `transcript`: The full conversation as a string
- `transcript_object`: Detailed formatting with timestamps
- `transcript_with_tool_calls`: Transcript including any tool calls
Important note: Transcripts are only available after the call has ended [(1) ]() [(3) ]() . If the call is still ongoing, the transcript_object won't be present in the response [(3) ]() .
Make sure you're using the correct call_id from your completed call, not the access_token from the call creation response.AI Evy
08/27/2025, 2:33 AMAI Evy
08/27/2025, 2:33 AMesther_12813
08/27/2025, 2:37 AMAI Evy
08/27/2025, 2:37 AMAI Evy
08/27/2025, 2:38 AMjavascript
const callResponse = await client.call.retrieve('call_a4441234567890777c4a4a123e6') ;
console.log(callResponse.agent_id) ;
2. Make sure the call has ended - transcripts are only available after the call ends . The response will include:
- `transcript`: Full conversation as a string
- `transcript_object`: Detailed formatting with timestamps
- `transcript_with_tool_calls`: Transcript with tool call details
3. Check you're using the correct call_id - not the access_token from the web call creation response [(2) ]() .
Key difference:
- Create Web Call returns access_token for joining the call
- Get Call returns transcript data after the call ends [(1) ]()
Make sure you're calling the Get Call endpoint with your completed call's ID, and the call status should be "ended" before transcript data becomes available .AI Evy
08/27/2025, 2:38 AMAI Evy
08/27/2025, 2:38 AM