Voice Calls

AI voice bot interactions including IVR and outbound campaigns.

Endpoints

MethodEndpointScopeDescription
GET/api/v1/voice-callsvoice:readList voice calls with filters
GET/api/v1/voice-calls/{id}voice:readGet a voice call with full transcript
GET/api/v1/voice-calls/{id}/recording-urlaudio:downloadGenerate recording SAS URL (15 min expiry)
GET/api/v1/voice-calls/{id}/epa-resultsvoice:readGet post-call survey results

Query Parameters (List Endpoint)

ParameterTypeDescription
campaignIdstringFilter by campaign ID
statestringFilter by call state (e.g., Completed, Busy, NoAnswer)
directionstringFilter by direction (Inbound or Outbound)
dateFromdatetimeStart of date range
dateTodatetimeEnd of date range
pageintPage number for pagination
pageSizeintNumber of results per page

Voice Call Object

{
  "id": "vc_abc123",
  "campaignId": "camp_456",
  "direction": "Outbound",
  "state": "Completed",
  "startTime": "2024-01-15T10:30:00Z",
  "endTime": "2024-01-15T10:35:12Z",
  "durationSeconds": 312,
  "talkTimeSeconds": 287,
  "outcome": "Successful",
  "transcript": [
    { "role": "agent", "text": "Hello, this is...", "timestamp": "00:00:01" },
    { "role": "customer", "text": "Hi, yes...", "timestamp": "00:00:04" }
  ],
  "epaResults": {
    "state": "Completed",
    "completionReason": "AllAnswered",
    "totalQuestions": 3,
    "questionsAnswered": 3,
    "calculatedScore": 85.5,
    "responses": [
      { "question": "How satisfied are you?", "answer": "Very satisfied", "score": 5 }
    ]
  },
  "createdAt": "2024-01-15T10:30:00Z"
}

EPA Results (Post-Call Survey)

EPA (Encuesta Post-Atención) results are available when a post-call survey is configured for the campaign. Use the /epa-results endpoint or access them inline via the voice call object.

FieldTypeDescription
statestringSurvey state (e.g., Completed, Partial, NotStarted)
completionReasonstringWhy the survey ended (e.g., AllAnswered, HangUp, Timeout)
totalQuestionsintTotal number of survey questions
questionsAnsweredintNumber of questions the caller answered
calculatedScorenumberAggregated satisfaction score
responsesarrayIndividual question/answer/score entries

Recording Download Flow

Audio recordings are accessed via temporary signed URLs. Follow this three-step process:

# 1. Get voice call list
GET /api/v1/voice-calls?state=Completed&direction=Outbound
Authorization: Bearer <token>

# 2. Request a recording SAS URL (valid for 15 minutes)
GET /api/v1/voice-calls/vc_abc123/recording-url
Authorization: Bearer <token>

Response:
{
  "recordingUrl": "https://storage.blob.core.windows.net/recordings/vc_abc123.wav?sv=...&se=...",
  "expiresAt": "2024-01-15T10:45:00Z"
}

# 3. Download the recording (no auth required, URL is pre-signed)
GET https://storage.blob.core.windows.net/recordings/vc_abc123.wav?sv=...&se=...

Full voice call docs coming soon

Detailed transcript schemas, webhook events for call state changes, and batch export capabilities are being documented.

Request API Access