---
title: "Consume Message"
method: POST
path: "/queues/{vhost}/{queue}/get"
tags: ["Pub/Sub", "Queues"]
---

# Consume Message

`POST /queues/{vhost}/{queue}/get`

## Request body

- ConsumeRequest
  - `count` integer, required
  - `ackmode` string, required
  - `encoding` string, required
  - `truncate` integer, required

## Response `200`

OK

- ConsumeResponse[]
  - `exchange` string
  - `message_count` integer
  - `payload` string
  - `payload_bytes` integer
  - `payload_encoding` string
  - `properties` MessageProperties
    - `app_id` string
    - `correlation_id` string
    - `message_id` string
    - `user_id` string
    - `timestamp` integer
    - `content_type` string
    - `delivery_mode` integer — 1 = Non Persistent, 2 = Persistent
    - `priority` integer
    - `cluster_id` string
  - `redelivered` boolean
  - `routing_key` string

## Other responses

- `401` — Unauthorized
- `404` — Not Found

---

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