Skip to content
Start here

Durable Objects

Durable ObjectsNamespaces

List Namespaces
client.durableObjects.namespaces.list(NamespaceListParams { account_id, page, per_page } params, RequestOptionsoptions?): V4PagePaginationArray<Namespace { id, class, name, 2 more } >
GET/accounts/{account_id}/workers/durable_objects/namespaces
ModelsExpand Collapse
Namespace { id, class, name, 2 more }
id?: string
class?: string
name?: string
script?: string
use_sqlite?: boolean

Durable ObjectsNamespacesObjects

List Objects
client.durableObjects.namespaces.objects.list(stringid, ObjectListParams { account_id, cursor, limit } params, RequestOptionsoptions?): CursorPaginationAfter<DurableObject { id, hasStoredData } >
GET/accounts/{account_id}/workers/durable_objects/namespaces/{id}/objects
ModelsExpand Collapse
DurableObject { id, hasStoredData }
id?: string

ID of the Durable Object.

hasStoredData?: boolean

Whether the Durable Object has stored data.