---
title: "Publish messages to the network"
method: POST
path: "/message/v1/publish"
tags: ["MessageApi"]
---

# Publish messages to the network

`POST /message/v1/publish`

## Request body

- V1PublishRequest
  - `envelopes` V1Envelope[]
    - `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

## Response `200`

A successful response.

- V1PublishResponse

## 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)
