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

Get voice log

|View as Markdown|Open in Claude|
GET
https://{your_space_name}.signalwire.com/api/voice/logs/:id
GET
/api/voice/logs/:id
$curl https://{your_space_name}.signalwire.com/api/voice/logs/id \
> -u "<project_id>:<api_token>"
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": null
17}

Find a log by ID.

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

List voice log events

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) ```

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

Response model for voice log retrieve endpoint
Call Logobject

Voice log for Compatibility and Relay call types. Returned when type is laml_call, relay_pstn_call, relay_sip_call, or relay_webrtc_call.

OR
Video Room Audio Leg Logobject

Voice log for audio legs in a Video Room. Returned when type is video_room_pstn_leg or video_room_sip_leg.

OR
Dialogflow Logobject

Voice log for Dialogflow call types. Returned when type is dialogflow_call.

OR
Fabric Device Logobject

Voice log for Fabric Subscriber Device call types. Returned when type is fabric_subscriber_device_leg.

OR
Deleted Logobject

A discarded/deleted voice log entry. Returned when the log has been deleted. Only present when include_deleted is true.

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found 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)