Event subscriptions (8)
Last updated Apr 21, 2026 allow you to receive messages when events occur across your Cloudflare account. Cloudflare products (e.g., KV, Workers AI, Workers) can publish structured events to a queue, which you can then consume with Workers or HTTP pull consumers to build custom workflows, integrations, or logic.
For more information on Event Subscriptions, refer to the management guide.
Available Workers AI events
batch.queued
Triggered when a batch request is queued.
Example:
{
"type": "cf.workersAi.model.batch.queued",
"source": {
"type": "workersAi.model",
"modelName": "@cf/baai/bge-base-en-v1.5"
},
"payload": {
"requestId": "req-12345678-90ab-cdef-1234-567890abcdef"
},
"metadata": {
"accountId": "f9f79265f388666de8122cfb508d7776",
"eventSubscriptionId": "1830c4bb612e43c3af7f4cada31fbf3f",
"eventSchemaVersion": 1,
"eventTimestamp": "2025-05-01T02:48:57.132Z"
}
}
batch.succeeded
Triggered when a batch request has completed.
Example:
{
"type": "cf.workersAi.model.batch.succeeded",
"source": {
"type": "workersAi.model",
"modelName": "@cf/baai/bge-base-en-v1.5"
},
"payload": {
"requestId": "req-12345678-90ab-cdef-1234-567890abcdef"
},
"metadata": {
"accountId": "f9f79265f388666de8122cfb508d7776",
"eventSubscriptionId": "1830c4bb612e43c3af7f4cada31fbf3f",
"eventSchemaVersion": 1,
"eventTimestamp": "2025-05-01T02:48:57.132Z"
}
}
batch.failed
Triggered when a batch request has failed.
Example:
{
"type": "cf.workersAi.model.batch.failed",
"source": {
"type": "workersAi.model",
"modelName": "@cf/baai/bge-base-en-v1.5"
},
"payload": {
"requestId": "req-12345678-90ab-cdef-1234-567890abcdef",
"message": "Model execution failed",
"internalCode": 5001,
"httpCode": 500
},
"metadata": {
"accountId": "f9f79265f388666de8122cfb508d7776",
"eventSubscriptionId": "1830c4bb612e43c3af7f4cada31fbf3f",
"eventSchemaVersion": 1,
"eventTimestamp": "2025-05-01T02:48:57.132Z"
}
}
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/workers-ai/platform/event-subscriptions/#page","headline":"Event subscriptions","description":"Subscribe to Workers AI events using Cloudflare Queues for asynchronous processing.","url":"https://developers.cloudflare.com/workers-ai/platform/event-subscriptions/","inLanguage":"en","image":"https://developers.cloudflare.com/workers-ai/platform/event-subscriptions/og.png?v=4fd1e3d1c5dd0b60","dateModified":"2026-04-21","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: Definitions of key terms used in the Workers AI documentation. title: Glossary image: https://developers.cloudflare.com/workers-ai/platform/glossary/og.png?v=2fe508f8c458e5dc
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/workers-ai/llms.txt
Use this file to discover all available pages before exploring further.
Docs