| [ Web Proxy ] |
| Viewing: https://developers.cloudflare.com/api/resources/queues/subresources/messages/methods/bulk_push | [Back] [Original] |
Push a batch of message to a Queue
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYYThe previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
X-Auth-Email: user@example.comThe previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194Queues WriteWorkers Scripts WriteThe number of seconds to wait for attempting to deliver this batch to consumers
curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/queues/$QUEUE_ID/messages/batch \
-X POST \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN"{
"errors": [
{
"code": 7003,
"message": "No route for the URI",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
"string"
],
"result": {
"metadata": {
"metrics": {
"backlog_bytes": 1024,
"backlog_count": 5,
"oldest_message_timestamp_ms": 1710950954154
}
}
},
"success": true
}{
"errors": [
{
"code": 7003,
"message": "No route for the URI",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
"string"
],
"result": {
"metadata": {
"metrics": {
"backlog_bytes": 1024,
"backlog_count": 5,
"oldest_message_timestamp_ms": 1710950954154
}
}
},
"success": true
}| Web Proxy Viewer | New URL | Original Page |