Skip to content
Cloudflare Docs

Event subscriptions

Event subscriptions 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 Vectorize events

index.created

Triggered when an index is created.

Example:

{
"type": "cf.vectorize.index.created",
"source": {
"type": "vectorize"
},
"payload": {
"name": "my-vector-index",
"description": "Index for embeddings",
"createdAt": "2025-05-01T02:48:57.132Z",
"modifiedAt": "2025-05-01T02:48:57.132Z",
"dimensions": 1536,
"metric": "cosine"
},
"metadata": {
"accountId": "f9f79265f388666de8122cfb508d7776",
"eventSubscriptionId": "1830c4bb612e43c3af7f4cada31fbf3f",
"eventSchemaVersion": 1,
"eventTimestamp": "2025-05-01T02:48:57.132Z"
}
}

index.deleted

Triggered when an index is deleted.

Example:

{
"type": "cf.vectorize.index.deleted",
"source": {
"type": "vectorize"
},
"payload": {
"name": "my-vector-index"
},
"metadata": {
"accountId": "f9f79265f388666de8122cfb508d7776",
"eventSubscriptionId": "1830c4bb612e43c3af7f4cada31fbf3f",
"eventSchemaVersion": 1,
"eventTimestamp": "2025-05-01T02:48:57.132Z"
}
}