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 message log
      • GETList message logs
  • Messaging
  • Phone Number Management
  • Platform
  • Resource Management
LogoLogoSignalWire Docs
Log inSign up
Support
LogsMessage Logs

List message logs

|View as Markdown|Open in Claude|
GET
https://{your_space_name}.signalwire.com/api/messaging/logs
GET
/api/messaging/logs
$curl https://{your_space_name}.signalwire.com/api/messaging/logs \
> -u "<project_id>:<api_token>"
1{
2 "links": {
3 "self": "https://example.signalwire.com/api/messaging/logs?page_number=0&page_size=50",
4 "first": "https://example.signalwire.com/api/messaging/logs?page_size=50",
5 "next": "https://example.signalwire.com/api/messaging/logs?page_number=1&page_size=50&page_token=PA6ad4c839-9329-43fe-83c6-fbe7c38583ff",
6 "prev": "https://example.signalwire.com/api/messaging/logs?page_number=0&page_size=50&page_token=PA6ad4c839-9329-43fe-83c6-fbe7c38583ff"
7 },
8 "data": [
9 {
10 "id": "string",
11 "from": "+12077447397",
12 "to": "+12029921413",
13 "status": "failed",
14 "direction": "inbound",
15 "kind": "sms",
16 "source": "laml",
17 "type": "relay_message",
18 "url": "https://example.signalwire.com/api/laml/2010-04-01/Accounts/c38dacad-2f6c-4de1-93d6-cc732e0c70c5/Messages/9ee38635-899a-490a-bfd1-9e72f5eea53c",
19 "number_of_segments": 1,
20 "charge": 0,
21 "charge_details": [
22 {
23 "description": "Inbound SMS",
24 "charge": 0.00415
25 }
26 ],
27 "created_at": "2024-05-06T12:20:00Z",
28 "error_message": "From number is not a SMS-capable phone number.",
29 "error_code": "21601"
30 }
31 ]
32}

List the available logs.

Permissions

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

Learn more about API scopes.

Was this page helpful?
Previous

Get video log

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_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_numberintegerOptional>=0Defaults to 0

Page number to retrieve. Requires page_token when greater than 0.

page_tokenstringOptional

Token for cursor-based pagination. Required when page_number is greater than 0. The token is returned in pagination links.

Response

The request has succeeded.
linksobject
Object containing pagination links
datalist of objects
Array of message 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)