PHP Client for Cloudflare API
R2

Event Notifications

Event Notifications endpoint reference.

List

Read the event notification configuration for a bucket, listing rules for all configured queues.

ParamTypeRequiredDefaultDescription
accountIdstringYesAccount Identifier.
bucketNamestringYesBucket Name.
jurisdictionstring|nullNoJurisdiction where objects in this bucket are guaranteed to be stored.
php
$response = $client->r2()->eventNotifications()->list('ACCOUNT_ID', 'BUCKET_NAME', 'JURISDICTION');
View this operation on the Cloudflare API Reference

Get

Get the event notification configuration for a bucket and a specific queue.

ParamTypeRequiredDefaultDescription
accountIdstringYesAccount Identifier.
bucketNamestringYesBucket Name.
queueIdstringYesQueue Identifier.
jurisdictionstring|nullNoJurisdiction where objects in this bucket are guaranteed to be stored.
php
$response = $client->r2()->eventNotifications()->get('ACCOUNT_ID', 'BUCKET_NAME', 'QUEUE_ID', 'JURISDICTION');
View this operation on the Cloudflare API Reference

Update

Create or update the event notification configuration for a bucket and a specific queue.

ParamTypeRequiredDefaultDescription
accountIdstringYesAccount Identifier.
bucketNamestringYesBucket Name.
queueIdstringYesQueue Identifier.
valuesarrayYesValues to set, e.g. `rules`.
jurisdictionstring|nullNoJurisdiction where objects in this bucket are guaranteed to be stored.
php
$response = $client->r2()->eventNotifications()->update('ACCOUNT_ID', 'BUCKET_NAME', 'QUEUE_ID', [], 'JURISDICTION');
View this operation on the Cloudflare API Reference

Delete

Delete the event notification configuration for a bucket and a specific queue.

ParamTypeRequiredDefaultDescription
accountIdstringYesAccount Identifier.
bucketNamestringYesBucket Name.
queueIdstringYesQueue Identifier.
jurisdictionstring|nullNoJurisdiction where objects in this bucket are guaranteed to be stored.
php
$response = $client->r2()->eventNotifications()->delete('ACCOUNT_ID', 'BUCKET_NAME', 'QUEUE_ID', 'JURISDICTION');
View this operation on the Cloudflare API Reference
Copyright © 2026