https://retellai.com/?utm_source=discord&utm_medium=seo logo
can i send call transcripts out to a db
# ❓・ai-evy-support
v
@AI Evy can i send call transcripts out to a db?
a
Thanks for tagging me @Vyyy. I'll look through relevant sources and get back to you shortly.
### Answer Yes, you can retrieve call transcripts via the API and send them to your database. Here are your options: 1. Get a Single Call's Transcript Use the Get Call endpoint to retrieve transcript data for a specific call: [(1) ]()
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) ;
2. List Multiple Calls Use the List Calls endpoint to retrieve transcripts for multiple calls at once: [(2) ]()
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) ;
Available Transcript Fields The response includes several transcript formats you can store in your DB: [(2) ]() [(1) ]() - **`transcript`**: Plain text transcription of the call [(2) ]() - **`transcript_object`**: Structured list of utterances with timestamps and word-level timing - **`transcript_with_tool_calls`**: Transcript including tool call invocations and results These fields are available after the call ends. [(2) ]() [(1) ]()
​ To learn more, see the sources I considered: [[1] Get Call](https://docs.retellai.com/api-references/get-call) [[2] List Calls](https://docs.retellai.com/api-references/list-calls) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.