Export Conversation
Export
Export Conversation
Export complete conversation data including transcript, post-call analysis, and recording URL. Returns a downloadable JSON file.
POST
Export Conversation
Overview
Exports a single conversation’s complete data as a downloadable JSON file. Includes billing session details, agent configuration, transcript, post-call analysis, and recording URL (if available). Authentication: API Key or Internal Token Response: JSON file downloadRequest
Endpoint 1: Form Data
Endpoint 2: JSON Body
Headers
For API Key Authentication:Response
Status:200 OK
Content-Type: application/json
Content-Disposition: attachment; filename="conversation-{id}-{date}.json"
Response Structure
Response Fields
Export Metadata
Conversation Object
Summary Object
Authentication
API Key Authentication
Header:- Active API keys from database
- Test keys:
test-api-key-123,demo-api-key-456
Internal Token Authentication
Headers:Error Responses
401 Unauthorized
400 Bad Request
404 Not Found
500 Server Error
Examples
cURL (Form Data)
cURL (JSON)
JavaScript (Fetch)
Python (Requests)
Next.js (Download)
Recording Signed URLs
How it works:- Recording URLs are Google Cloud Storage signed URLs
- Expiry: 1 day from export time
- Requires
GCS_BUCKETenvironment variable - Requires
credentials.jsonfor GCP authentication
includeRecording: false- GCS bucket not configured
- Recording file not found
- Storage client initialization failed
Data Included in Export
Always Included
- ✅ Billing session details
- ✅ Agent configuration
- ✅ Call metadata (duration, cost, timestamps)
- ✅ User information (if available)
Conditionally Included
- ✅ Transcript (if
includeTranscript: trueand exists) - ✅ Post-call analysis (if
includeAnalysis: trueand exists) - ✅ Recording URL (if
includeRecording: trueand GCS configured)
Function Calls
Extracted from transcript JSON:Use Cases
Export for Compliance
Backup Conversation Data
Share Conversation with Customer
Related Endpoints
- List Call Logs — List all conversations
- Get Transcript — Get transcript only
- Get Recording — Get recording URL
- Get Analysis — Get analysis results
Environment Variables
Required for Full Functionality:
Recording Storage:
- Recordings stored in:
gs://{GCS_BUCKET}/recordings/{date}/{filename}.webm - Signed URLs expire after 1 day
- Requires GCP credentials for authentication
Authorizations
Your TalkifAI API key. Get it from Studio → Settings → API Keys.
Body
application/json