---
title: "Get message state"
method: GET
path: "/3rdparty/v1/messages/{id}"
tags: ["User", "Messages"]
---

# Get message state

`GET /3rdparty/v1/messages/{id}`

Returns message state by ID

## Path parameters

- `id` string, required

## Response `200`

Message state

- SmsgatewayGetMessageResponse
  - `dataMessage` SmsgatewayDataMessage
    - `data` string, byte, required — Data is the base64-encoded payload.
    - `port` integer, required — Port is the destination port.
  - `deviceId` string, required — Device ID
  - `hashedMessage` SmsgatewayHashedMessage
    - `hash` string, required
  - `id` string, required — Message ID
  - `isEncrypted` boolean — Encrypted
  - `isHashed` boolean — Hashed
  - `recipients` SmsgatewayRecipientState[], required — Recipients states
    - `error` string — Error (for `Failed` state)
    - `phoneNumber` string, required — Phone number or first 16 symbols of SHA256 hash
    - `state` 'Pending' | 'Cancelling' | 'Cancelled' | 'Processed' | 'Sent' | 'Delivered' | 'Failed', required
  - `state` 'Pending' | 'Cancelling' | 'Cancelled' | 'Processed' | 'Sent' | 'Delivered' | 'Failed', required
  - `states` object — History of states
  - `textMessage` SmsgatewayTextMessage
    - `text` string, required — Text is the message text.

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal server error

---

[API](https://skmtc.dev/sms-gate/apis/smsgate-api.md) · [All operations](https://skmtc.dev/sms-gate/apis/smsgate-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sms-gate/smsgate-api/revisions/56a6604029f1/schema)
