---
title: "Get an SMS log"
method: GET
path: "/v2/sms-logs/{sms_log_id}"
tags: ["SMS"]
---

# Get an SMS log

`GET /v2/sms-logs/{sms_log_id}`

Returns a single SMS log entry enriched with message details fetched live from the SMS provider: message body, delivery status, sent/delivered timestamps, and failure reason. If provider details are unavailable, the entry is returned with `status: "unknown"` and null detail fields.

## Path parameters

- `sms_log_id` integer, required

## Response `200`

SMS log entry with message details.

- SmsLogDetailResponse
  - `id` integer, required — Unique SMS log entry identifier.
  - `direction` 'inbound' | 'outbound', required — Message direction relative to your organization.
  - `from_number` string, nullable — The phone number the message was sent from.
  - `to_number` string, required — The phone number the message was sent to.
  - `session_id` string, nullable — ID of the linked session when the message was part of an SMS conversation.
  - `created_at` string, date-time, required — When the message was logged.
  - `status` 'delivered' | 'failed' | 'sent' | 'queued' | 'unknown', required — Delivery status reported by the SMS provider. `unknown` when provider details are unavailable.
  - `message` string, nullable — The message body, fetched from the SMS provider.
  - `sent_at` string, date-time, nullable — When the message was sent by the provider.
  - `delivered_at` string, date-time, nullable — When the message was delivered.
  - `failure_reason` string, nullable — Reason the message failed, if delivery failed.

## Other responses

- `401` — Missing or invalid API key.
- `404` — The requested resource does not exist.
- `429` — Rate limit exceeded.
- `500` — Unexpected server error.

---

[API](https://skmtc.net/openmicai/apis/openmic-v1-external-api.md) · [All operations](https://skmtc.net/openmicai/apis/openmic-v1-external-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openmicai/openmic-v1-external-api/revisions/58dc5cff0ca7/schema)
