# Message statuses

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

`POST /v1/messages/statuses`

Read-only batch. Unique UUID ids,1..100. Input order is preserved. Missing and foreign IDs each return found:false; authorized items remain available. No sends or debits.

Required permission: messages.read

## Parameters

- `X-Dry-Run` (header, optional): Optional. true — a trial request: every check of the real request is made (key, IP allowlist, permission, account, fields, sender, template, parts, price, funds), but nothing is executed — no message, no reservation, no queue, no data change, the Idempotency-Key is not taken. The answer has the real status and structure plus dryRun: true; identifiers in it are conditional (zero UUID). Refusals are the real ones. Any other value — 400 invalid_dry_run. Trial requests have their own, lower rate limit.

## Request body

| Field | Type | Description |
| --- | --- | --- |
| `ids` | array<string> | required.  |

## Request example

```bash
curl --max-time 30 --request POST \
  --url 'https://api.sendsms.to/v1/messages/statuses' \
  --header "X-API-Key: $SENDSMS_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "ids": [
    "MESSAGE_ID"
  ]
}'
```

## Responses

### HTTP 200 — Successful result

```json
{
  "results": [
    {
      "id": "00000000-0000-0000-0000-000000000002",
      "found": true,
      "message": {
        "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
        }
      }
    },
    {
      "id": "00000000-0000-4000-8000-000000000003",
      "found": false,
      "error": "message_not_found"
    }
  ]
}
```

| Field | Type | Description |
| --- | --- | --- |
| `results` | array<object> | required. One result per requested ID, constructed by SendSMS in the original request order. This read creates no messages. |
| `results[].id` | string · uuid | required. The requested UUID copied by SendSMS and normalized to lowercase. Its presence does not prove the message exists or belongs to the caller. |
| `results[].found` | boolean | required. SendSMS lookup result: true = message belongs to this account; false = missing or belongs to another account. The two false cases are intentionally indistinguishable. |
| `results[].message` | object | required. MessageSnapshot generated by SendSMS only when found=true. Absent, not null, when found=false. |
| `results[].message.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. |
| `results[].message.channel` | string | required. Transport channel stored by SendSMS at admission. SMS uses sms. |
| `results[].message.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. |
| `results[].message.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. |
| `results[].message.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. |
| `results[].message.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. |
| `results[].message.status_info` | object | required. Customer-facing interpretation calculated by SendSMS from the current status. Does not perform a provider lookup. |
| `results[].message.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. |
| `results[].message.status_info.outcome` | string | required. SendSMS summary: pending = processing continues; uncertain = no safe final conclusion; delivered = delivery confirmed; not_delivered = recorded negative outcome. |
| `results[].message.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. |
| `results[].message.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. |
| `results[].message.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. |
| `results[].message.transport.attempt` | integer | required. Per-message attempt number assigned by SendSMS. Identifies an attempt, not another message; do not use it as messageId. |
| `results[].message.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. |
| `results[].message.transport.started_at` | string | null · date-time | required. Attempt start recorded by SendSMS. ISO 8601 UTC or null when not recorded/scheduled. |
| `results[].message.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. |
| `results[].message.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. |
| `results[].message.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. |
| `results[].message.transport.total_segments` | integer | null | required. Total expected SMS segments recorded for this attempt by SendSMS. null means unavailable, not zero. |
| `results[].id` | string · uuid | required. The requested UUID copied by SendSMS and normalized to lowercase. Its presence does not prove the message exists or belongs to the caller. |
| `results[].found` | boolean | required. SendSMS lookup result: true = message belongs to this account; false = missing or belongs to another account. The two false cases are intentionally indistinguishable. |
| `results[].error` | string | required. SendSMS returns message_not_found only in the found=false branch. Not a delivery failure status. |
| `dryRun` | boolean | optional. Present only in the answer to a trial request (X-Dry-Run: true): nothing was executed; identifiers in this answer are conditional. |

### 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 413 — Body exceeds 8192 bytes

```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. |
