Get message log
Retrieves one historical messaging record by log ID. Use it to inspect delivery details for a known message segment; this read-only endpoint does not send, retry, or redact the message. Use List message logs to discover log IDs or Send a message for live messaging.
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.
Path parameters
Universal Unique Identifier.
Unique ID of the log.
Response
The request has succeeded.
Example response
{
"from": "+12077447397",
"to": "+12029921413",
"status": "failed",
"direction": "inbound",
"kind": "sms",
"source": "laml",
"type": "relay_message",
"url": "https://example.signalwire.com/api/laml/2010-04-01/Accounts/c38dacad-2f6c-4de1-93d6-cc732e0c70c5/Messages/9ee38635-899a-490a-bfd1-9e72f5eea53c",
"number_of_segments": 1,
"charge_details": [
{
"description": "Inbound SMS",
"charge": 0.00415
}
],
"created_at": "2024-05-06T12:20:00Z",
"error_message": "From number is not a SMS-capable phone number.",
"error_code": "21601"
}Changes
Changed in 1 of the 137 revisions of this API.2
- ○
added the required property
error_codeto the response with the200statusresponse-required-property-added
- ○
added the required property
error_messageto the response with the200statusresponse-required-property-added
- ○
Of the 137 revisions, 3 have a changelog that could not be searched.