REST ClientLogsVoice Logs

get

View as MarkdownOpen in Claude

Retrieve a specific voice call log entry.

Path parameters

idstringRequiredformat: "uuid"
Unique ID of the log. This is the segment_id you can find in Relay call details in your Dashboard UI or in return objects when using the SDK.

Response

Call LogobjectRequired
OR
Video Room Audio Leg LogobjectRequired
OR
Dialogflow LogobjectRequired
OR
Fabric Device LogobjectRequired
OR
Deleted LogobjectRequired

Response Example

Response
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 "direction": "inbound",
11 "status": "completed",
12 "duration": 9,
13 "duration_ms": 9638,
14 "billing_ms": 60000
15}

Example

1from signalwire.rest import RestClient
2
3client = RestClient(
4 project="your-project-id",
5 token="your-api-token",
6 host="your-space.signalwire.com",
7)
8
9call = client.logs.voice.get("voice-log-id")
10print(call.get("from"), "->", call.get("to"), call.get("duration"))