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.

Domain types

Namespace = { id, class, name, 3 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.

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

id: string

ID of the namespace.

cursor: string
Optional

Opaque token indicating the position from which to continue when requesting the next set of records. A valid value for the cursor can be obtained from the cursors object in the result_info structure.

limit: number
Optional
(maximum: 10000, minimum: 10)

The number of objects to return. The cursor attribute may be used to iterate over the next batch of objects if there are more than the limit.

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

Whether the API call was successful

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

Domain types

DurableObject = { id, hasStoredData }