---
title: "Subscribe to a stream of all messages"
method: POST
path: "/message/v1/subscribe-all"
tags: ["MessageApi"]
---

# Subscribe to a stream of all messages

`POST /message/v1/subscribe-all`

## Request body

- V1SubscribeAllRequest

## Response `200`

A successful response.(streaming responses)

- object
  - `result` V1Envelope — Envelope encapsulates a message while in transit.
    - `contentTopic` string — The topic the message belongs to, If the message includes the topic as well it MUST be the same as the topic in the envelope.
    - `timestampNs` string, uint64 — Message creation timestamp If the message includes the timestamp as well it MUST be equivalent to the timestamp in the envelope.
    - `message` string, byte
  - `error` RpcStatus
    - `code` integer
    - `message` string
    - `details` ProtobufAny[]
      - `@type` string

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/xmtp/apis/messageapi.md) · [All operations](https://skmtc.net/xmtp/apis/messageapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/xmtp/messageapi/revisions/6c9485070908/schema)
