Server SDKs
Build AI agents, control calls, send messages, and more
Retrieve a specific voice call log entry.
format: "uuid"
1{2 "id": "b7182dc2-00f3-40e4-a5ce-20f164b329df",3 "from": "+12065551212",4 "to": "+12065553434",5 "source": "realtime_api",6 "charge": 0.01,7 "charge_details": [],8 "created_at": "2024-05-06T12:20:00Z",9 "type": "relay_sip_call",10 "url": null,11 "direction": "inbound",12 "status": "completed",13 "duration": 9,14 "duration_ms": 9638,15 "billing_ms": 60000,16 "parent_id": null17}
1import { RestClient } from "@signalwire/sdk";23const client = new RestClient({4 project: "your-project-id",5 token: "your-api-token",6 host: "your-space.signalwire.com"7});89const call = await client.logs.voice.get("voice-log-id");10console.log(call.from, "->", call.to, call.duration);