API Reference·续8

Attach Worker Domain

PUT/accounts/{account_id}/workers/domains

Detach Worker Domain

DELETE/accounts/{account_id}/workers/domains/{domain_id}

WorkersSubdomains

Get a Workers Subdomain

GET/accounts/{account_id}/workers/subdomain

Create a Workers Subdomain

PUT/accounts/{account_id}/workers/subdomain

Delete Workers Subdomain

DELETE/accounts/{account_id}/workers/subdomain

WorkersObservability

WorkersObservabilityTelemetry

List keys

POST/accounts/{account_id}/workers/observability/telemetry/keys

Run a query

POST/accounts/{account_id}/workers/observability/telemetry/query

List values

POST/accounts/{account_id}/workers/observability/telemetry/values

Prepare live tail

POST/accounts/{account_id}/workers/observability/telemetry/live-tail

Live tail heartbeat

POST/accounts/{account_id}/workers/observability/telemetry/live-tail/heartbeat

WorkersObservabilityDestinations

Get Destinations

GET/accounts/{account_id}/workers/observability/destinations

Create Destination

POST/accounts/{account_id}/workers/observability/destinations

Update Destination

PATCH/accounts/{account_id}/workers/observability/destinations/{slug}

Delete Destination

DELETE/accounts/{account_id}/workers/observability/destinations/{slug}

WorkersObservabilityQueries

Save query

POST/accounts/{account_id}/workers/observability/queries

List queries

GET/accounts/{account_id}/workers/observability/queries

WorkersObservabilityShared Queries

POST/accounts/{account_id}/workers/observability/shared/query

View a query that has been shared

GET/accounts/{account_id}/workers/observability/shared/query/{id}

KV

KVNamespaces

List namespaces

GET/accounts/{account_id}/storage/kv/namespaces

Get a namespace

GET/accounts/{account_id}/storage/kv/namespaces/{namespace_id}

Create a namespace

POST/accounts/{account_id}/storage/kv/namespaces

Rename a namespace

PUT/accounts/{account_id}/storage/kv/namespaces/{namespace_id}

Delete a namespace

DELETE/accounts/{account_id}/storage/kv/namespaces/{namespace_id}

Write multiple key-value pairs

PUT/accounts/{account_id}/storage/kv/namespaces/{namespace_id}/bulk

Delete multiple key-value pairs

POST/accounts/{account_id}/storage/kv/namespaces/{namespace_id}/bulk/delete

Get multiple key-value pairs

POST/accounts/{account_id}/storage/kv/namespaces/{namespace_id}/bulk/get

KVNamespacesKeys

List keys in a namespace

GET/accounts/{account_id}/storage/kv/namespaces/{namespace_id}/keys

Write multiple key-value pairs

Deprecated

PUT/accounts/{account_id}/storage/kv/namespaces/{namespace_id}/bulk

Delete multiple key-value pairs

Deprecated

POST/accounts/{account_id}/storage/kv/namespaces/{namespace_id}/bulk/delete

Get multiple key-value pairs

Deprecated

POST/accounts/{account_id}/storage/kv/namespaces/{namespace_id}/bulk/get

KVNamespacesMetadata

Get a key's metadata

GET/accounts/{account_id}/storage/kv/namespaces/{namespace_id}/metadata/{key_name}

KVNamespacesValues

Get a key's value

GET/accounts/{account_id}/storage/kv/namespaces/{namespace_id}/values/{key_name}

Write a key-value pair with optional metadata

PUT/accounts/{account_id}/storage/kv/namespaces/{namespace_id}/values/{key_name}

Delete a key-value pair

DELETE/accounts/{account_id}/storage/kv/namespaces/{namespace_id}/values/{key_name}

Durable Objects

Durable ObjectsNamespaces

List Durable Object Namespaces

GET/accounts/{account_id}/workers/durable_objects/namespaces

Durable ObjectsNamespacesObjects

List Objects in a Durable Object namespace

GET/accounts/{account_id}/workers/durable_objects/namespaces/{id}/objects

Containers

ContainersApplications

List Applications associated with your account

GET/accounts/{account_id}/containers/applications

Create a new application

POST/accounts/{account_id}/containers/applications

Get a single application by id

GET/accounts/{account_id}/containers/applications/{application_id}

Modify an application

PATCH/accounts/{account_id}/containers/applications/{application_id}

Delete a single application by id

DELETE/accounts/{account_id}/containers/applications/{application_id}

ContainersApplicationsInstances

List container instances (deprecated)

Deprecated

GET/accounts/{account_id}/containers/applications/{application_id}/instances

List container instances

GET/accounts/{account_id}/containers/applications/{application_id}/instances-v2

Get a container instance

GET/accounts/{account_id}/containers/applications/{application_id}/instances/{instance_id}

ContainersApplicationsRollouts

Create a new rollout for an application

POST/accounts/{account_id}/containers/applications/{application_id}/rollouts

ContainersApplicationsVersions

List all application versions

GET/accounts/{account_id}/containers/applications/{application_id}/versions

ContainersImages

Prepare a container image

POST/accounts/{account_id}/containers/image-preparations

ContainersRegistries

Get the list of configured registries in the account

GET/accounts/{account_id}/containers/registries

Configure a private external image registry

POST/accounts/{account_id}/containers/registries

Delete a registry from the account

DELETE/accounts/{account_id}/containers/registries/{domain}

ContainersRegistriesCredentials

Generate a JWT to interact with the specified image registry.

POST/accounts/{account_id}/containers/registries/{domain}/credentials

Queues

List Queues

GET/accounts/{account_id}/queues

Get Queue

GET/accounts/{account_id}/queues/{queue_id}

Get Queue Metrics

GET/accounts/{account_id}/queues/{queue_id}/metrics

Create Queue

POST/accounts/{account_id}/queues

Update Queue

PUT/accounts/{account_id}/queues/{queue_id}

Update Queue

PATCH/accounts/{account_id}/queues/{queue_id}

Delete Queue

DELETE/accounts/{account_id}/queues/{queue_id}

QueuesMessages

Push Message

POST/accounts/{account_id}/queues/{queue_id}/messages

Acknowledge + Retry Queue Messages

POST/accounts/{account_id}/queues/{queue_id}/messages/ack

Pull Queue Messages

POST/accounts/{account_id}/queues/{queue_id}/messages/pull

Push Message Batch

POST/accounts/{account_id}/queues/{queue_id}/messages/batch

Peek Queue Messages

POST/accounts/{account_id}/queues/{queue_id}/messages/peek

Purge Peeked Queue Messages

POST/accounts/{account_id}/queues/{queue_id}/messages/purge

QueuesPurge

Get Queue Purge Status

GET/accounts/{account_id}/queues/{queue_id}/purge

Purge Queue

POST/accounts/{account_id}/queues/{queue_id}/purge

QueuesConsumers

List Queue Consumers

GET/accounts/{account_id}/queues/{queue_id}/consumers

Get Queue Consumer

GET/accounts/{account_id}/queues/{queue_id}/consumers/{consumer_id}

Create a Queue Consumer

POST/accounts/{account_id}/queues/{queue_id}/consumers

Update Queue Consumer

PUT/accounts/{account_id}/queues/{queue_id}/consumers/{consumer_id}

Delete Queue Consumer

DELETE/accounts/{account_id}/queues/{queue_id}/consumers/{consumer_id}

QueuesSubscriptions

List Event Subscriptions

GET/accounts/{account_id}/event_subscriptions/subscriptions

Get Event Subscription

GET/accounts/{account_id}/event_subscriptions/subscriptions/{subscription_id}

Create Event Subscription

POST/accounts/{account_id}/event_subscriptions/subscriptions

Update Event Subscription

PATCH/accounts/{account_id}/event_subscriptions/subscriptions/{subscription_id}

Delete Event Subscription

DELETE/accounts/{account_id}/event_subscriptions/subscriptions/{subscription_id}

API Gateway

API GatewayConfigurations

Get session identifier settings

GET/zones/{zone_id}/api_gateway/configuration

Update session identifier settings

PUT/zones/{zone_id}/api_gateway/configuration

API GatewayDiscovery

Export discovered API operations as OpenAPI schemas

GET/zones/{zone_id}/api_gateway/discovery

API GatewayDiscoveryOperations

List discovered web and API operations

GET/zones/{zone_id}/api_gateway/discovery/operations

Edit a discovered web or API operation

PATCH/zones/{zone_id}/api_gateway/discovery/operations/{discovery_id}

Edit discovered web and API operations

PATCH/zones/{zone_id}/api_gateway/discovery/operations

API GatewayLabels

List operation labels