---
title: "Get a message by ID"
method: GET
path: "/messages/{id}"
tags: ["Message"]
---

# Get a message by ID

`GET /messages/{id}`

Retrieves the message of the given ID.

## Path parameters

- `id` string, required

## Response `200`

The message details.

- MessageManagerMessage
  - `id` string, uuid — Unique identifier for the message.
  - `customer_id` string, uuid — Unique identifier for the customer. Returned from the `GET /customers` response.
  - `type` 'sms' — Type of the message.
  - `source` CommonAddress — Contains source or destination detail info.
    - `type` '' | 'agent' | 'conference' | 'email' | 'extension' | 'line' | 'sip' | 'tel' | 'web_session' — Type of address.
    - `target` string — The address endpoint. Format depends on type: phone number for tel (e.g. +14155551234), UUID for agent/conference/extension, email for email, SIP URI for sip.
    - `target_name` string — Address's name.
    - `name` string — Optional label for this address.
    - `detail` string — Additional notes about this address.
  - `targets` MessageManagerTarget[] — List of target addresses to which the message is sent.
    - `destination` CommonAddress — Contains source or destination detail info.
      - `type` '' | 'agent' | 'conference' | 'email' | 'extension' | 'line' | 'sip' | 'tel' | 'web_session' — Type of address.
      - `target` string — The address endpoint. Format depends on type: phone number for tel (e.g. +14155551234), UUID for agent/conference/extension, email for email, SIP URI for sip.
      - `target_name` string — Address's name.
      - `name` string — Optional label for this address.
      - `detail` string — Additional notes about this address.
    - `status` 'received' | 'queued' | 'gw_timeout' | 'sent' | 'dlr_timeout' | 'failed' | 'delivered' — The status of the message for the target.
    - `parts` integer — The number of message parts (if the message is split).
    - `tm_update` string, date-time — Timestamp when the target message was last updated.
  - `text` string — The text delivered in the body of the message.
  - `direction` 'outbound' | 'inbound' — Direction of the message.
  - `tm_create` string, date-time — Timestamp when the message was created.
  - `tm_update` string, date-time — Timestamp when the message was last updated.
  - `tm_delete` string, date-time — Timestamp when the message was deleted.

## Other responses

- `400` — Invalid request (INVALID_ARGUMENT).
- `401` — Authentication required (UNAUTHENTICATED).
- `403` — Insufficient permission (PERMISSION_DENIED).
- `404` — Resource not found (NOT_FOUND).
- `500` — Internal error (INTERNAL).

---

[API](https://skmtc.net/voipbin/apis/voipbin-api.md) · [All operations](https://skmtc.net/voipbin/apis/voipbin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/voipbin/voipbin-api/versions/79e779080bcc/schema)
