Phones - Calls
Upload call recording file with metadata
Upload a call recording file along with linked metadata for storage and processing. The system will store the recording, generate transcriptions, and create AI analysis.
Required Fields:
- recording: Audio file (multipart/form-data, supported formats: WAV, MP3, OGG)
- callStart: Call start timestamp (ISO 8601 format)
- companyPhoneNumber: Your company's phone number
- contactPhoneNumber: Customer/contact phone number
- callDirection: "inbound" or "outbound"
Optional Fields:
- callId: Link to existing call record
- agentId: Contact with specific agent
- duration: Call duration in seconds
- notes: Additional notes about the call
- companyEmailAddress: Company email
- contactEmailAddress: Contact email
- companyTimezone: Timezone for timestamps
Processing:
- Recording is stored securely in cloud storage
- Automatic transcription is generated
- AI analysis creates call summary and insights
- Metadata is indexed for search and reporting
Use Cases:
- Import recordings from external phone systems
- Backup call recordings for compliance
- Add historical calls to Voice Logica for analysis
- Integrate third-party telephony systems
post/api/v1/phones/calls/upload-recording
Request
- Base URL: https://api.voicelogica.ai
- URL: https://api.voicelogica.ai/api/v1/phones/calls/upload-recording
- Auth: API key in header x-api-key
Headers
x-api-keystring required
Your API key for authentication. Required for all endpoints.
x-company-idstring
Optional company ID for resellers. When provided, the API request will operate on behalf of the specified subsidiary company. The API key must have access to the specified company.
Response
Call recording uploaded successfully
Example response
{
"id": "507f1f77bcf86cd799439011",
"createdAt": "2024-01-15T10:30:00.000Z",
"active": true,
"createdBy": "John Doe",
"createdById": "123",
"modifiedAt": "2024-01-15T10:30:00.000Z",
"modifiedBy": "Jane Doe",
"modifiedById": "456",
"companyId": "507f1f77bcf86cd799439012",
"callId": "call_123456789",
"callerId": "caller_987654321",
"contactId": "contact_456789",
"userId": "user_101112",
"voipPhoneId": "voip_131415",
"agentId": "agent_161718",
"phoneNumber": "+1234567890",
"status": "in_call",
"messages": [],
"recordingFileId": "recording_192021",
"humanRecordingFileId": "human_recording_232425",
"transcriptionFileId": "transcription_222324",
"humanTranscriptionFileId": "human_transcription_262728",
"endCallReason": "caller_hungup",
"duration": 180,
"hertz": 8000,
"humanInCall": true,
"summary": "Customer called about billing issue",
"callDirection": "inbound",
"transcriptionCost": 0.03,
"totalCost": 0.2,
"consumerCost": 0.1,
"dynamicVariables": {
"customer_name": "John Doe",
"order_id": "ORD123"
},
"metadata": {
"priority": "high",
"category": "support",
"appointmentReminder": "true",
"reminderMinutes": "30",
"eventId": "event_123",
"calendarId": "calendar_456",
"callBack": "false",
"viewUrl": "https://example.com/call/123",
"viewHumanRecordingUrl": "https://example.com/call/123/human",
"source": "inbound",
"campaign_type": "follow_up"
},
"superVariables": {
"customer_name": {
"placeholder": "{{customer_name}}",
"value": "John Doe",
"type": "text"
},
"appointment_date": {
"placeholder": "{{appointment_date}}",
"value": "2024-01-15",
"type": "date"
},
"is_vip": {
"placeholder": "{{is_vip}}",
"value": "true",
"type": "boolean"
}
},
"contextForAi": "Customer is calling about a billing issue from last month",
"postAnalysisResults": {
"sentiment": "positive",
"intent": "support"
},
"campaignId": "campaign_252627",
"campaignLeadId": "lead_282930",
"rtpPort": 10000,
"rtpIp": "192.168.1.100",
"startAt": "2024-01-15T10:30:00.000Z",
"endAt": "2024-01-15T10:33:00.000Z",
"scheduledAt": "2024-01-15T10:30:00.000Z",
"retries": 0,
"maxRetries": 3,
"retryDelayMinutes": 10,
"callInformation": {
"priority": "high",
"category": "support"
},
"transferringStatus": "transferring",
"postCallAnalysis": "completed",
"postCallAnalysisStages": [
{
"action": "summary",
"status": "completed",
"retryCount": 0,
"lastAttemptAt": "2026-10-20T12:52:40.161Z"
}
]
}