---
title: "get message by ID"
method: POST
path: "/instances/{id}/client/action/get-message-by-id"
tags: ["message"]
---

# get message by ID

`POST /instances/{id}/client/action/get-message-by-id`

Retrieve a specific message using its unique identifier. Optionally includes the media content if requested.

## Path parameters

- `id` integer, required

## Request body

- object
  - `messageId` string, required — Serialized message ID in format: <fromMe>_<chatId>_<messageHash>
  - `includeMedia` boolean — When true, includes base64 encoded media content in the response

## Response `200`

Message details retrieved successfully

- object
  - `status` 'success' | 'error'
  - `instanceId` string
  - `data` object
    - `message` object
      - `id` object
        - `fromMe` boolean
        - `remote` string
        - `id` string
        - `_serialized` string
      - `ack` integer
      - `hasMedia` boolean
      - `body` string
      - `type` string
      - `timestamp` integer
      - `from` string
      - `to` string
      - `deviceType` string
      - `isForwarded` boolean
      - `forwardingScore` integer
      - `isStatus` boolean
      - `isStarred` boolean
      - `broadcast` boolean
      - `fromMe` boolean
      - `hasQuotedMsg` boolean
      - `hasReaction` boolean
      - `vCards` string[]
      - `mentionedIds` string[]
      - `groupMentions` string[]
      - `isGif` boolean
      - `isViewOnce` boolean — Whether the message is a view-once message
      - `links` string[]
    - `media` string, nullable — Base64 encoded media content if includeMedia=true

## Other responses

- `401` — Unauthorized — invalid or missing bearer token
- `403` — Forbidden — insufficient permissions or account blocked
- `404` — Not found — instance does not exist or does not belong to you
- `409` — Conflict — instance is not ready
- `422` — Validation error — invalid or missing request parameters
- `429` — Too many requests — rate limit exceeded

---

[API](https://skmtc.net/waapi/apis/waapi-api.md) · [All operations](https://skmtc.net/waapi/apis/waapi-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/waapi/waapi-api/revisions/1e2cc7c12090/schema)
