API Reference·续16

PUT/accounts/{account_id}/stream/webhook

Delete webhooks

DELETE/accounts/{account_id}/stream/webhook

StreamCaptions

List captions or subtitles

GET/accounts/{account_id}/stream/{identifier}/captions

StreamCaptionsLanguage

List captions or subtitles for a provided language

GET/accounts/{account_id}/stream/{identifier}/captions/{language}

Generate captions or subtitles for a provided language via AI

POST/accounts/{account_id}/stream/{identifier}/captions/{language}/generate

Upload captions or subtitles

PUT/accounts/{account_id}/stream/{identifier}/captions/{language}

Delete captions or subtitles

DELETE/accounts/{account_id}/stream/{identifier}/captions/{language}

StreamCaptionsLanguageVtt

Return WebVTT captions for a provided language

GET/accounts/{account_id}/stream/{identifier}/captions/{language}/vtt

StreamDownloads

List downloads

GET/accounts/{account_id}/stream/{identifier}/downloads

Create downloads

POST/accounts/{account_id}/stream/{identifier}/downloads

Delete downloads

DELETE/accounts/{account_id}/stream/{identifier}/downloads

StreamEmbed

Deprecated: Retrieve legacy embed code HTML

GET/accounts/{account_id}/stream/{identifier}/embed

StreamToken

Create signed URL tokens for videos

POST/accounts/{account_id}/stream/{identifier}/token

Alerting

AlertingAvailable Alerts

Get Alert Types

GET/accounts/{account_id}/alerting/v3/available_alerts

AlertingDestinations

AlertingDestinationsEligible

Get delivery mechanism eligibility

GET/accounts/{account_id}/alerting/v3/destinations/eligible

AlertingDestinationsPagerduty

List PagerDuty services

GET/accounts/{account_id}/alerting/v3/destinations/pagerduty

Create PagerDuty integration token

POST/accounts/{account_id}/alerting/v3/destinations/pagerduty/connect

Delete PagerDuty Services

DELETE/accounts/{account_id}/alerting/v3/destinations/pagerduty

Connect PagerDuty

GET/accounts/{account_id}/alerting/v3/destinations/pagerduty/connect/{token_id}

AlertingDestinationsWebhooks

List webhooks

GET/accounts/{account_id}/alerting/v3/destinations/webhooks

Get a webhook

GET/accounts/{account_id}/alerting/v3/destinations/webhooks/{webhook_id}

Create a webhook

POST/accounts/{account_id}/alerting/v3/destinations/webhooks

Update a webhook

PUT/accounts/{account_id}/alerting/v3/destinations/webhooks/{webhook_id}

Delete a webhook

DELETE/accounts/{account_id}/alerting/v3/destinations/webhooks/{webhook_id}

AlertingHistory

List History

GET/accounts/{account_id}/alerting/v3/history

AlertingPolicies

List Notification policies

GET/accounts/{account_id}/alerting/v3/policies

Get a Notification policy

GET/accounts/{account_id}/alerting/v3/policies/{policy_id}

Create a Notification policy

POST/accounts/{account_id}/alerting/v3/policies

Update a Notification policy

PUT/accounts/{account_id}/alerting/v3/policies/{policy_id}

Delete a Notification policy

DELETE/accounts/{account_id}/alerting/v3/policies/{policy_id}

AlertingSilences

List Silences

GET/accounts/{account_id}/alerting/v3/silences

Get Silence

GET/accounts/{account_id}/alerting/v3/silences/{silence_id}

Create Silences

POST/accounts/{account_id}/alerting/v3/silences

Update Silences

PUT/accounts/{account_id}/alerting/v3/silences

Delete Silence

DELETE/accounts/{account_id}/alerting/v3/silences/{silence_id}

D1

D1Database

List D1 Databases

GET/accounts/{account_id}/d1/database

Get D1 Database

GET/accounts/{account_id}/d1/database/{database_id}

Create D1 Database

POST/accounts/{account_id}/d1/database

Update D1 Database

PUT/accounts/{account_id}/d1/database/{database_id}

Update D1 Database partially

PATCH/accounts/{account_id}/d1/database/{database_id}

Delete D1 Database

DELETE/accounts/{account_id}/d1/database/{database_id}

Undelete D1 Database

POST/accounts/{account_id}/d1/database/{database_id}/undelete

Query D1 Database

POST/accounts/{account_id}/d1/database/{database_id}/query

Raw D1 Database query

POST/accounts/{account_id}/d1/database/{database_id}/raw

Export D1 Database as SQL

POST/accounts/{account_id}/d1/database/{database_id}/export

Import SQL into your D1 Database

POST/accounts/{account_id}/d1/database/{database_id}/import

D1DatabaseTime Travel

Get D1 database bookmark

GET/accounts/{account_id}/d1/database/{database_id}/time_travel/bookmark

Restore D1 Database to a bookmark or point in time

POST/accounts/{account_id}/d1/database/{database_id}/time_travel/restore

R2

R2Buckets

List Buckets

GET/accounts/{account_id}/r2/buckets

Get Bucket

GET/accounts/{account_id}/r2/buckets/{bucket_name}

Create Bucket

POST/accounts/{account_id}/r2/buckets

Patch Bucket

PATCH/accounts/{account_id}/r2/buckets/{bucket_name}

Delete Bucket

DELETE/accounts/{account_id}/r2/buckets/{bucket_name}

R2BucketsLifecycle

Get Object Lifecycle Rules

GET/accounts/{account_id}/r2/buckets/{bucket_name}/lifecycle

Set Object Lifecycle Rules

PUT/accounts/{account_id}/r2/buckets/{bucket_name}/lifecycle

R2BucketsCORS

Get Bucket CORS Policy

GET/accounts/{account_id}/r2/buckets/{bucket_name}/cors

Set Bucket CORS Policy

PUT/accounts/{account_id}/r2/buckets/{bucket_name}/cors

Delete Bucket CORS Policy

DELETE/accounts/{account_id}/r2/buckets/{bucket_name}/cors

R2BucketsDomains

R2BucketsDomainsCustom

List Custom Domains of Bucket

GET/accounts/{account_id}/r2/buckets/{bucket_name}/domains/custom

Get Custom Domain Settings

GET/accounts/{account_id}/r2/buckets/{bucket_name}/domains/custom/{domain}

Attach Custom Domain To Bucket

POST/accounts/{account_id}/r2/buckets/{bucket_name}/domains/custom

Configure Custom Domain Settings

PUT/accounts/{account_id}/r2/buckets/{bucket_name}/domains/custom/{domain}

Remove Custom Domain From Bucket

DELETE/accounts/{account_id}/r2/buckets/{bucket_name}/domains/custom/{domain}

R2BucketsDomainsManaged

Get r2.dev Domain of Bucket

GET/accounts/{account_id}/r2/buckets/{bucket_name}/domains/managed

Update r2.dev Domain of Bucket

PUT/accounts/{account_id}/r2/buckets/{bucket_name}/domains/managed

R2BucketsEvent Notifications

List Event Notification Rules

GET/accounts/{account_id}/event_notifications/r2/{bucket_name}/configuration

Get Event Notification Rules for a Queue

GET/accounts/{account_id}/event_notifications/r2/{bucket_name}/configuration/queues/{queue_id}

Create Event Notification Rules

PUT/accounts/{account_id}/event_notifications/r2/{bucket_name}/configuration/queues/{queue_id}

Delete Event Notification Rules

DELETE/accounts/{account_id}/event_notifications/r2/{bucket_name}/configuration/queues/{queue_id}

R2BucketsLocks

Get Bucket Lock Rules

GET/accounts/{account_id}/r2/buckets/{bucket_name}/lock

Set Bucket Lock Rules

PUT/accounts/{account_id}/r2/buckets/{bucket_name}/lock

R2BucketsMetrics

Get Account-Level Metrics

GET/accounts/{account_id}/r2/metrics

R2BucketsSippy

Get Sippy Configuration

GET/accounts/{account_id}/r2/buckets/{bucket_name}/sippy

Enable Sippy

PUT/accounts/{account_id}/r2/buckets/{bucket_name}/sippy

Disable Sippy

DELETE/accounts/{account_id}/r2/buckets/{bucket_name}/sippy

R2BucketsObjects

List Objects

GET/accounts/{account_id}/r2/buckets/{bucket_name}/objects

Get Object

GET/accounts/{account_id}/r2/buckets/{bucket_name}/objects/{object_key}

Upload Object

PUT/accounts/{account_id}/r2/buckets/{bucket_name}/objects/{object_key}

Delete Object

DELETE/accounts/{account_id}/r2/buckets/{bucket_name}/objects/{object_key}

R2BucketsJobs

List Bucket Jobs

GET/accounts/{account_id}/r2/buckets/{bucket_name}/jobs

Create Bucket Job

POST/accounts/{account_id}/r2/buckets/{bucket_name}/jobs

Get Bucket Job

GET/accounts/{account_id}/r2/buckets/{bucket_name}/jobs/{job_id}

R2Temporary Credentials

Create Temporary Access Credentials

POST/accounts/{account_id}/r2/temp-access-credentials

R2Super Slurper

R2Super SlurperJobs

List jobs

GET/accounts/{account_id}/slurper/jobs

Get job details