title: Get messages by property or header in RabbitMQ
body: <p>I'm new in to RabbitMQ and I've faced a problem. I'm trying to get messages from queue by API method. I've made that by now I want to get messages from queue by header or property if it is possible. I read the documentation about HTTP API. I have not found such an API for filtering messages by some headers or properties.</p>
  
  <p>I use that kind of API to get messages from queue: </p>
  
  <pre><code>/api/queues/vhost/name/get
  </code></pre>
  
  <p>and in the body: </p>
  
  <pre><code>{"count":20,"ackmode":"ack_requeue_true","encoding":"auto"}
  </code></pre>
  
  <p>I was thinking, maybe it is possible to somehow  pass some filter in the body so it could filter and return the message what I want.</p>
  
  <p>This is how my message looks like : 
  <a href="https://i.stack.imgur.com/8H2Hd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8H2Hd.png" alt="enter image description here"></a></p>
  
  <p>I have tried to pass in the body <code>type = "myType"</code> or <code>header = "myHeader"</code></p>