---
title: "Publish Message"
method: POST
path: "/exchanges/{vhost}/{exchange}/publish"
tags: ["Pub/Sub", "Exchanges"]
---

# Publish Message

`POST /exchanges/{vhost}/{exchange}/publish`

## Request body

- PublishRequest
  - `routing_key` string, required
  - `payload` string, required
  - `payload_encoding` 'string' | 'base64', required
  - `properties` PublishProperties
    - `app_id` string
    - `correlation_id` string
    - `message_id` string
    - `user_id` string
    - `delivery_mode` integer — 1 = Non Persistent, 2 = Persistent

## Response `200`

OK

- PublishResponse
  - `routed` boolean

---

[API](https://skmtc.dev/zcaudate-xyz/apis/rabbitmq-http-api.md) · [All operations](https://skmtc.dev/zcaudate-xyz/apis/rabbitmq-http-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/zcaudate-xyz/rabbitmq-http-api/revisions/65c16d7e1482/schema)
