# Message status

https://docs.sendsms.to/en/api/message-status/

`GET /v1/messages/{id}`

Read a tenant-owned message and last transport attempt in one bounded read-only transaction. Same404 for absent and foreign IDs. No provider calls. failed may still enter fallback; poll uncertain states without automatic resubmission. No delivery timestamp is invented from updated_at.

Required permission: messages.read

## Parameters

- `id` (path, required): 

## Request example

```bash
curl --max-time 30 --request GET \
  --url 'https://api.sendsms.to/v1/messages/MESSAGE_ID' \
  --header "X-API-Key: $SENDSMS_API_KEY"
```

## Responses

### HTTP 200 — Successful result

```json
{
  "id": "00000000-0000-0000-0000-000000000002",
  "channel": "sms",
  "destination": "+994000000000",
  "status": "sent",
  "created_at": "2026-10-28T10:00:00Z",
  "updated_at": "2026-10-28T10:00:01Z",
  "status_info": {
    "known": true,
    "outcome": "pending",
    "poll_after_seconds": 5,
    "resubmit_safe": false
  },
  "transport": {
    "attempt": 1,
    "status": "submitted",
    "started_at": "2026-10-28T10:00:00Z",
    "resolved_at": "2026-10-28T10:00:01Z",
    "next_attempt_at": null,
    "submitted_segments": 1,
    "total_segments": 1
  }
}
```

| Field | Type | Description |
| --- | --- | --- |
| `id` | string · uuid | required. Message UUID created by SendSMS before durable admission. With an Idempotency-Key, a postpaid account (and a prepaid account in budget-enabled admission) gets the same ID for the same key within the authenticated account; without a key SendSMS generates a random UUID. Save it for status reads. It is not the operator’s message ID. |
| `channel` | string | required. Transport channel stored by SendSMS at admission. SMS uses sms. |
| `destination` | string | required. Recipient destination stored by SendSMS from the accepted request. Use your retained message ID for correlation, not assumptions about plus-sign formatting. |
| `status` | string | required. Current lifecycle state maintained by SendSMS from admission, routing and transport/delivery evidence. Known values and meanings are listed below; preserve unknown future values. It is not a raw SMPP status code. |
| `created_at` | string · date-time | required. Database timestamp set when SendSMS creates the message record; ISO 8601 UTC. PostgreSQL now() is transaction-start time, not proof of commit, send or handset delivery time. |
| `updated_at` | string · date-time | required. Last message-row update timestamp recorded by SendSMS; ISO 8601 UTC. May reflect a status or other row change. Not a dedicated delivery timestamp. |
| `status_info` | object | required. Customer-facing interpretation calculated by SendSMS from the current status. Does not perform a provider lookup. |
| `status_info.known` | boolean | required. SendSMS sets true if status is recognized by this API version. false means a future/unknown value; keep it and treat the outcome as uncertain. |
| `status_info.outcome` | string | required. SendSMS summary: pending = processing continues; uncertain = no safe final conclusion; delivered = delivery confirmed; not_delivered = recorded negative outcome. |
| `status_info.poll_after_seconds` | integer | null | required. Polling delay suggested by SendSMS, in seconds: 5 for pending/uncertain, null for delivered/not_delivered. Not a delivery deadline or a Unix timestamp. |
| `status_info.resubmit_safe` | boolean | required. Always false in this version: SendSMS never authorizes a new send from a status read. Retry an original send only using its original idempotency contract. |
| `transport` | object | null | required. Last transport attempt stored by SendSMS. null if no attempt record exists. This is not a handset delivery receipt and contains no operator credentials or upstream costs. |
| `transport.attempt` | integer | required. Per-message attempt number assigned by SendSMS. Identifies an attempt, not another message; do not use it as messageId. |
| `transport.status` | string | required. Attempt state recorded by SendSMS from transport results. submitted/reconciled_accepted mean transport acceptance, not handset delivery; ambiguous is uncertain. See value descriptions below. |
| `transport.started_at` | string | null · date-time | required. Attempt start recorded by SendSMS. ISO 8601 UTC or null when not recorded/scheduled. |
| `transport.resolved_at` | string | null · date-time | required. Attempt result resolution recorded by SendSMS, not handset delivery. ISO 8601 UTC or null when not recorded/scheduled. |
| `transport.next_attempt_at` | string | null · date-time | required. Next retry time scheduled by SendSMS; not a promised delivery time. ISO 8601 UTC or null when not recorded/scheduled. |
| `transport.submitted_segments` | integer | required. Count of SMS segments recorded by SendSMS as submitted in this attempt from transport acknowledgements. Not a count of delivered logical messages. |
| `transport.total_segments` | integer | null | required. Total expected SMS segments recorded for this attempt by SendSMS. null means unavailable, not zero. |

### HTTP 400 — Invalid input

```json
{
  "error": "string"
}
```

| Field | Type | Description |
| --- | --- | --- |
| `error` | string | required. Error identifier or legacy human-readable text returned by SendSMS. Not every handler exposes a stable machine code here. Check HTTP status and documented identifiers; never parse translated prose as a permanent code. |
| `message` | string | optional. Optional explanation generated by SendSMS. Intended for people; wording/language may change. Absence means the handler supplied no separate explanation. |
| `code` | string | optional. Optional machine-readable code generated by SendSMS or its HTTP framework. Meaning depends on the operation; not a universal numeric provider code. |
| `statusCode` | integer | optional. Optional HTTP status number generated by the server framework for a framework-level error. The actual HTTP response status is authoritative. |

### HTTP 401 — Invalid or revoked API key

```json
{
  "error": "string"
}
```

| Field | Type | Description |
| --- | --- | --- |
| `error` | string | required. Error identifier or legacy human-readable text returned by SendSMS. Not every handler exposes a stable machine code here. Check HTTP status and documented identifiers; never parse translated prose as a permanent code. |
| `message` | string | optional. Optional explanation generated by SendSMS. Intended for people; wording/language may change. Absence means the handler supplied no separate explanation. |
| `code` | string | optional. Optional machine-readable code generated by SendSMS or its HTTP framework. Meaning depends on the operation; not a universal numeric provider code. |
| `statusCode` | integer | optional. Optional HTTP status number generated by the server framework for a framework-level error. The actual HTTP response status is authoritative. |

### HTTP 403 — Insufficient key permissions or account/channel policy; or the request came from an IP address not allowed for this key (ip_not_allowed)

```json
{
  "error": "string"
}
```

| Field | Type | Description |
| --- | --- | --- |
| `error` | string | required. Error identifier or legacy human-readable text returned by SendSMS. Not every handler exposes a stable machine code here. Check HTTP status and documented identifiers; never parse translated prose as a permanent code. |
| `message` | string | optional. Optional explanation generated by SendSMS. Intended for people; wording/language may change. Absence means the handler supplied no separate explanation. |
| `code` | string | optional. Optional machine-readable code generated by SendSMS or its HTTP framework. Meaning depends on the operation; not a universal numeric provider code. |
| `statusCode` | integer | optional. Optional HTTP status number generated by the server framework for a framework-level error. The actual HTTP response status is authoritative. |

### HTTP 404 — Resource unavailable to this account

```json
{
  "error": "string"
}
```

| Field | Type | Description |
| --- | --- | --- |
| `error` | string | required. Error identifier or legacy human-readable text returned by SendSMS. Not every handler exposes a stable machine code here. Check HTTP status and documented identifiers; never parse translated prose as a permanent code. |
| `message` | string | optional. Optional explanation generated by SendSMS. Intended for people; wording/language may change. Absence means the handler supplied no separate explanation. |
| `code` | string | optional. Optional machine-readable code generated by SendSMS or its HTTP framework. Meaning depends on the operation; not a universal numeric provider code. |
| `statusCode` | integer | optional. Optional HTTP status number generated by the server framework for a framework-level error. The actual HTTP response status is authoritative. |

### HTTP 429 — Rate limit

```json
{
  "error": "string"
}
```

| Field | Type | Description |
| --- | --- | --- |
| `error` | string | required. Error identifier or legacy human-readable text returned by SendSMS. Not every handler exposes a stable machine code here. Check HTTP status and documented identifiers; never parse translated prose as a permanent code. |
| `message` | string | optional. Optional explanation generated by SendSMS. Intended for people; wording/language may change. Absence means the handler supplied no separate explanation. |
| `code` | string | optional. Optional machine-readable code generated by SendSMS or its HTTP framework. Meaning depends on the operation; not a universal numeric provider code. |
| `statusCode` | integer | optional. Optional HTTP status number generated by the server framework for a framework-level error. The actual HTTP response status is authoritative. |

### HTTP 503 — Temporarily unavailable

```json
{
  "error": "string"
}
```

| Field | Type | Description |
| --- | --- | --- |
| `error` | string | required. Error identifier or legacy human-readable text returned by SendSMS. Not every handler exposes a stable machine code here. Check HTTP status and documented identifiers; never parse translated prose as a permanent code. |
| `message` | string | optional. Optional explanation generated by SendSMS. Intended for people; wording/language may change. Absence means the handler supplied no separate explanation. |
| `code` | string | optional. Optional machine-readable code generated by SendSMS or its HTTP framework. Meaning depends on the operation; not a universal numeric provider code. |
| `statusCode` | integer | optional. Optional HTTP status number generated by the server framework for a framework-level error. The actual HTTP response status is authoritative. |
