Durable Objects

durable_objects

Durable Objects

Namespaces

durable_objects.namespaces

Methods

List Namespaces -> SinglePage<>
get/accounts/{account_id}/workers/durable_objects/namespaces

Returns the Durable Object namespaces owned by an account.

Security

The preferred authorization scheme for interacting with the Cloudflare API. Create a token.

Example: Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY

Accepted Permissions (at least one required)

Workers Scripts Write Workers Scripts Read

Parameters
account_id: string
(maxLength: 32)

Identifier

Response fields
errors: Array<>
messages: Array<>
success: true

Whether the API call was successful

result: Array<>
Optional
result_info: { count, page, per_page, 1 more... }
Optional
Request example
200Example

Domain types

Namespace = { id, class, name, 2 more... }

durable_objects.namespaces.objects

Methods

List Objects -> CursorLimitPagination<>
get/accounts/{account_id}/workers/durable_objects/namespaces/{id}/objects

Returns the Durable Objects in a given namespace.

Domain types

DurableObject = { id, hasStoredData }