Skip to navigation

List message logs

View as MarkdownOpen in Claude

Lists historical messaging activity in the project for delivery review, auditing, and troubleshooting. This collection is read-only; send or redact messages through the Messages API instead.

Results are sorted newest first. Each links.next URL carries your filters along with the page_token for the next page, so follow it as given.

Lists return at most one year of history. Logs created before the start of the UTC day one year ago are never returned. A created_before, created_on, or created_after value earlier than that returns 422 with the code exceeds_history_logs_limit.

Permissions

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

Learn more about API scopes.

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

created_beforestringOptional

Return logs created at or before this time. Accepts a date (YYYY-MM-DD), an ISO 8601 timestamp, or Unix time in seconds. A date is read as midnight UTC at the start of that day, so logs from that day are left out. A timestamp without Z or a UTC offset is read as UTC.

created_onstringOptional

Return logs created during this UTC day. Accepts the same formats as created_before. A timestamp selects the whole UTC day that contains it.

created_afterstringOptional

Return logs created at or after this time. Accepts the same formats as created_before. A date is read as midnight UTC at the start of that day, so logs from that day are included.

page_numberintegerOptional>=0Defaults to 0

The page index, starting at 0. Any value above 0 also requires page_token.

page_sizeintegerOptional1-1000Defaults to 50

The number of results per page. The default is 50 and the maximum is 1000.

page_tokenstringOptional

The cursor for any page after the first. Take it from the links.next or links.prev URL of the previous response.

Response

The request has succeeded.
datalist of objects
Array of message log entries

Errors

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