Cloudflare Queues is a global message queuing service. Use the API to create queues, send messages, and manage consumers.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/cloudflare/cloudflare-typescript/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Access the Queues API:Queues
Manage queue creation and configuration.Create a queue
Create a new queue.Your Cloudflare account ID
Name for the queue
The unique identifier for the queue
The queue name
ISO 8601 timestamp when the queue was created
ISO 8601 timestamp when the queue was last modified
List queues
Retrieve all queues in your account.Your Cloudflare account ID
Get a queue
Retrieve details about a specific queue.The queue ID
Your Cloudflare account ID
Update a queue
Update queue configuration.The queue ID to update
Your Cloudflare account ID
The new queue name
Queue settings object
Number of seconds to delay delivery of all messages (0-43200)
Number of seconds to retain unconsumed messages (60-1209600, default: 345600)
Whether message delivery to consumers is paused
Delete a queue
Delete a queue.The queue ID to delete
Your Cloudflare account ID
Messages
Send and receive messages from queues.Send a message
Send a single message to a queue.The queue ID or name
Your Cloudflare account ID
The message body (up to 128 KB)
Content type (default: ‘text/plain’)
Send multiple messages
Send multiple messages in a single request.The queue ID or name
Your Cloudflare account ID
Array of message objects (up to 100 messages)
Pull messages
Pull messages from a queue (HTTP pull).The queue ID or name
Your Cloudflare account ID
Number of messages to pull (1-100, default: 10)
Time in milliseconds to hide messages from other consumers (default: 30000)
Acknowledge messages
Acknowledge messages after processing.The queue ID or name
Your Cloudflare account ID
Array of acknowledgment objects with lease IDs
Consumers
Manage queue consumers (Workers that process messages).Create a consumer
Create a Worker consumer for a queue.The queue ID or name
Your Cloudflare account ID
Name of the Worker script to process messages
Consumer settings
Number of messages per batch (1-100, default: 10)
Maximum retry attempts (0-100, default: 3)
Maximum time to wait for messages in milliseconds (default: 5000)