curl https://api.voicy.co/v1/get-call/550e8400-e29b-41d4-a716-446655440000 \ -H "Authorization: Bearer voicy_sk_live_xxx"
{ "call_id": "550e8400-e29b-41d4-a716-446655440000", "call_type": "phone_call", "call_status": "ended", "agent_id": "550e8400-e29b-41d4-a716-446655440001", "from_number": "+15551234567", "to_number": "+15559876543", "direction": "outbound", "start_timestamp": 1704067200000, "end_timestamp": 1704067320000, "duration_ms": 120000, "transcript": "Agent: Hello, this is...\nUser: Hi, I'm calling about...", "transcript_object": [ {"role": "agent", "content": "Hello, this is..."}, {"role": "user", "content": "Hi, I'm calling about..."} ], "recording_url": "https://storage.voicy.co/recordings/...", "summary": "Customer inquiry about order status.", "disconnection_reason": "user_hangup", "metadata": {}, "call_cost": { "combined_cost": 0.056, "currency": "usd" } }
Retrieve details for a specific call
phone_call
initiated
ringing
in_progress
ended
error
inbound
outbound
[ {"role": "agent", "content": "Hello, how can I help you?"}, {"role": "user", "content": "I have a question about my order."} ]
user_hangup
agent_hangup
{ "combined_cost": 0.056, "currency": "usd" }