Skip to main content
GET
Get an SMS log

Authorizations

Authorization
string
header
required

API key obtained from the OpenMic dashboard.

Path Parameters

sms_log_id
integer
required

SMS log entry ID from the list endpoint.

Response

SMS log entry with message details.

id
integer
required

Unique SMS log entry identifier.

Example:

42

direction
enum<string>
required

Message direction relative to your organization.

Available options:
inbound,
outbound
to_number
string
required

The phone number the message was sent to.

Example:

"+17189153182"

created_at
string<date-time>
required

When the message was logged.

status
enum<string>
required

Delivery status reported by the SMS provider. unknown when provider details are unavailable.

Available options:
delivered,
failed,
sent,
queued,
unknown
from_number
string | null

The phone number the message was sent from.

Example:

"+16625658792"

session_id
string | null

ID of the linked session when the message was part of an SMS conversation.

message
string | null

The message body, fetched from the SMS provider.

Example:

"Hello from OpenMic!"

sent_at
string<date-time> | null

When the message was sent by the provider.

delivered_at
string<date-time> | null

When the message was delivered.

failure_reason
string | null

Reason the message failed, if delivery failed.