For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Log inSign up
Support
  • Core
    • Overview
    • Authorization
    • Base URL
    • Data formats
    • Paging
    • Error codes
    • Permissions
  • Calling
  • Datasphere
  • Logs
      • GETGet voice log
      • GETList voice log events
      • GETList voice logs
  • Messaging
  • Phone Number Management
  • Platform
  • Resource Management
LogoLogoSignalWire Docs
Log inSign up
Support
LogsVoice Logs

List voice logs

|View as Markdown|Open in Claude|
GET
https://{your_space_name}.signalwire.com/api/voice/logs
GET
/api/voice/logs
$curl https://{your_space_name}.signalwire.com/api/voice/logs \
> -u "<project_id>:<api_token>"
1{
2 "links": {
3 "self": "https://example.signalwire.com/api/voice/logs?page_number=0&page_size=50",
4 "first": "https://example.signalwire.com/api/voice/logs?page_size=50",
5 "next": "https://example.signalwire.com/api/voice/logs?page_number=1&page_size=50&page_token=PA2fa20774-64a1-41d3-a88a-1c61f563d0e7",
6 "prev": "https://example.signalwire.com/api/voice/logs?page_number=0&page_size=50&page_token=PA2fa20774-64a1-41d3-a88a-1c61f563d0e7"
7 },
8 "data": [
9 {
10 "id": "b7182dc2-00f3-40e4-a5ce-20f164b329df",
11 "from": "+12065551212",
12 "to": "+12065553434",
13 "source": "realtime_api",
14 "charge": 0.01,
15 "charge_details": [],
16 "created_at": "2024-05-06T12:20:00Z",
17 "type": "relay_sip_call",
18 "url": null,
19 "direction": "inbound",
20 "status": "completed",
21 "duration": 9,
22 "duration_ms": 9638,
23 "billing_ms": 60000,
24 "parent_id": null
25 }
26 ]
27}

List the available logs.

Permissions

The API token used to authenticate must have the following scope(s) enabled to make a successful request: Voice.

Learn more about API scopes.

Was this page helpful?
Previous

Message status callback

Next
Built with

Authentication

AuthorizationBasic
SignalWire Basic Authentication using Project ID and API Token. The client sends HTTP requests with the Authorization header containing the word Basic followed by a space and a base64-encoded string of project_id:token. The project ID will be used as the username and the API token as the password. Example: ``` Authorization: Basic base64(project_id:token) ```

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

The request has succeeded.
linksobject
Pagination links
datalist of objects
Array of voice log entries

Errors

400
Bad Request Error
401
Unauthorized Error
422
Unprocessable Entity Error
500
Internal Server Error

SignalWire Basic Authentication using Project ID and API Token.

The client sends HTTP requests with the Authorization header containing the word Basic followed by a space and a base64-encoded string of project_id:token. The project ID will be used as the username and the API token as the password.

Example:

Authorization: Basic base64(project_id:token)