diff --git a/src/content/changelog/queues/2025-05-09-publish-to-queues-via-http.mdx b/src/content/changelog/queues/2025-05-09-publish-to-queues-via-http.mdx new file mode 100644 index 000000000000000..c7afb7767b23bb4 --- /dev/null +++ b/src/content/changelog/queues/2025-05-09-publish-to-queues-via-http.mdx @@ -0,0 +1,22 @@ +--- +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//queues//messages" \ + -X POST \ + -H 'Authorization: Bearer ' \ + --data '{ "body": { "greeting": "hello", "timestamp": "2025-07-24T12:00:00Z"} }' +``` + +You can also use our [SDKs](/fundamentals/api/reference/sdks/) for TypeScript, Python, and Go. + +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/). \ No newline at end of file