Skip to navigation
REST ClientLogsVoice Logs

list

View as MarkdownOpen in Claude

List voice call log entries.

Query parameters

include_deletedbooleanOptionalDefaults to false
Include logs for deleted activity.
created_beforestringOptional
Return logs for activity prior to this date.
created_onstringOptional
Return logs for activity on this date.
created_afterstringOptional
Return logs for activity after this date.
page_numberintegerOptional>=0Defaults to 0
Page number to return. Requires `page_token` for values greater than 0.
page_sizeintegerOptional1-1000Defaults to 50
Specify the number of results to return on a single page. The default page size is `50` and the maximum is `1000`.
page_tokenstringOptional
Token for cursor-based pagination. Required when `page_number` is greater than 0.

Response

datalist of objectsRequired
Array of voice log entries

Response Example

Response
{
"links": {
"self": "https://example.signalwire.com/api/voice/logs?page_number=0&page_size=50",
"first": "https://example.signalwire.com/api/voice/logs?page_size=50"
},
"data": [
{
"audio_in_dtmf_packet_count": 0,
"audio_in_flush_packet_count": 2,
"audio_in_jitter_max": 8.5,
"audio_in_jitter_min": 0.25,
"audio_in_largest_jb_size": 0,
"audio_in_mean_interval": 20.03,
"audio_in_media_packet_count": 1842,
"audio_in_mos": "4.5",
"audio_in_skip_packet_count": 1,
"audio_out_dtmf_packet_count": 0,
"audio_out_jitter_avg": 0.56,
"audio_out_jitter_max": 2.5,
"audio_out_jitter_min": 0,
"audio_out_lost": 1,
"audio_out_media_packet_count": 1840,
"audio_out_packet_count": null,
"audio_rtt_avg": 40,
"audio_rtt_max": 50,
"audio_rtt_min": 30,
"billing_ms": 60000,
"charge": 0.01,
"charge_details": [],
"created_at": "2024-05-06T12:20:00Z",
"direction": "inbound",
"duration": 37,
"duration_ms": 37000,
"from": "+12065551212",
"id": "3f9a2c41-8d7e-4b6a-9c15-0e2d4f6a8b70",
"parent_id": null,
"source": "laml",
"status": "completed",
"to": "+12065553434",
"type": "laml_call",
"url": "https://example.signalwire.com/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472af/Calls/3f9a2c41-8d7e-4b6a-9c15-0e2d4f6a8b70"
}
]
}

Example

from signalwire.rest import RestClient
client = RestClient(
project="your-project-id",
token="your-api-token",
host="your-space.signalwire.com",
)
calls = client.logs.voice.list(page_size=20)
for call in calls.get("data", []):
print(call.get("from"), "->", call.get("to"), call.get("duration"))