Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
title: Publish messages to Queues directly via HTTP
description: You can now publish messages to Cloudflare Queues from any HTTP client.
products:
- queues
date: 2025-05-09 12:00:00 UTC
---

You can now publish messages to [Cloudflare Queues](/queues/) directly via HTTP from any service or programming language that supports sending HTTP requests. Previously, publishing to queues was only possible from within [Cloudflare Workers](/workers/). You can already consume from queues via Workers or [HTTP pull consumers](/queues/configuration/pull-consumers/), and now publishing is just as flexible.

Publishing via HTTP requires a [Cloudflare API token](/fundamentals/api/get-started/create-token/) with `Queues Edit` permissions for authentication. Here's a simple example:

```bash
curl "https://api.cloudflare.com/client/v4/accounts/<account_id>/queues/<queue_id>/messages" \
-X POST \
-H 'Authorization: Bearer <api_token>' \
--data '{ "body": { "greeting": "hello", "timestamp": "2025-07-24T12:00:00Z"} }'
```

To get started with HTTP publishing, check out our [step-by-step example](/queues/examples/publish-to-a-queue-via-http/) and the full API documentation in our [API reference](/api/resources/queues/subresources/messages/methods/push/).