List Durable Object Namespaces

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

Returns the Durable Object namespaces owned by an account.

Security

<details>

<summary>API Token</summary>

The preferred authorization scheme for interacting with the Cloudflare API. <a href="https://developers.cloudflare.com/fundamentals/api/get-started/create-token/">Create a token</a>.

Example:<code>Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY</code>

</details>

<details>

<summary>API Email + API Key</summary>

The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

Example:<code>X-Auth-Email: user@example.com</code>

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

Example:<code>X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194</code>

</details>

Accepted Permissions (at least one required)

Workers Scripts Write``Workers Scripts Read``Workers Admin``Workers Editor``Workers Content Read-Only``Workers Metadata Read-Only``Individual Workers Admin``Individual Workers Editor``Individual Workers Content Read-Only``Individual Workers Metadata Read-Only

P ath ParametersExpand Collapse

account_id: string

Identifier.

maxLength32

Link to this property

Q uery ParametersExpand Collapse

page: optional number

Current page.

minimum1

Link to this property

per_page: optional number

Items per-page.

maximum1000

minimum1

Link to this property

ReturnsExpand Collapse

<details>

<summary>

errors: array of object {code, message, documentation_url, source }

</summary>

code: number

minimum1000

<a href="#(resource)%20durable_objects.namespaces%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

message: string

<a href="#(resource)%20durable_objects.namespaces%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

documentation_url: optional string

<a href="#(resource)%20durable_objects.namespaces%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: optional object {pointer }

</summary>

pointer: optional string

<a href="#(resource)%20durable_objects.namespaces%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20durable_objects.namespaces%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

Link to this property

<details>

<summary>

messages: array of object {code, message, documentation_url, source }

</summary>

code: number

minimum1000

<a href="#(resource)%20durable_objects.namespaces%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

message: string

<a href="#(resource)%20durable_objects.namespaces%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

documentation_url: optional string

<a href="#(resource)%20durable_objects.namespaces%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: optional object {pointer }

</summary>

pointer: optional string

<a href="#(resource)%20durable_objects.namespaces%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20durable_objects.namespaces%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

Link to this property

success: true

Whether the API call was successful.

Link to this property

<details>

<summary>

result: optional array of <a href="https://developers.cloudflare.com/api/resources/durable_objects#(resource)%20durable_objects.namespaces%20%3E%20(model)%20namespace%20%3E%20(schema)">Namespace</a> { id, class, name, 2 more }

</summary>

id: optional string

<a href="#(resource)%20durable_objects.namespaces%20%3E%20(model)%20namespace%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

class: optional string

<a href="#(resource)%20durable_objects.namespaces%20%3E%20(model)%20namespace%20%3E%20(schema)%20%3E%20(property)%20class">Link to this property</a>

name: optional string

<a href="#(resource)%20durable_objects.namespaces%20%3E%20(model)%20namespace%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

script: optional string

<a href="#(resource)%20durable_objects.namespaces%20%3E%20(model)%20namespace%20%3E%20(schema)%20%3E%20(property)%20script">Link to this property</a>

use_sqlite: optional boolean

<a href="#(resource)%20durable_objects.namespaces%20%3E%20(model)%20namespace%20%3E%20(schema)%20%3E%20(property)%20use_sqlite">Link to this property</a>

</details>

Link to this property

<details>

<summary>

result_info: optional object {count, page, per_page, 2 more }

</summary>

count: optional number

Total number of results for the requested service.

<a href="#(resource)%20durable_objects.namespaces%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20result_info%20%3E%20(property)%20count">Link to this property</a>

page: optional number

Current page within paginated list of results.

<a href="#(resource)%20durable_objects.namespaces%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20result_info%20%3E%20(property)%20page">Link to this property</a>

per_page: optional number

Number of results per page of results.

<a href="#(resource)%20durable_objects.namespaces%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20result_info%20%3E%20(property)%20per_page">Link to this property</a>

total_count: optional number

Total results available without any search parameters.

<a href="#(resource)%20durable_objects.namespaces%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20result_info%20%3E%20(property)%20total_count">Link to this property</a>

total_pages: optional number

The number of total pages in the entire result set.

<a href="#(resource)%20durable_objects.namespaces%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20result_info%20%3E%20(property)%20total_pages">Link to this property</a>

</details>

Link to this property

List Durable Object Namespaces

HTTP

HTTPTypeScriptPythonGoTerraform

curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/workers/durable_objects/namespaces \
    -H "Authorization: Bearer $CLOUDFLARE_API_TOKEN"

200 example

{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "success": true,
  "result": [
    {
      "id": "id",
      "class": "class",
      "name": "name",
      "script": "script",
      "use_sqlite": true
    }
  ],
  "result_info": {
    "count": 1,
    "page": 1,
    "per_page": 20,
    "total_count": 2000,
    "total_pages": 100
  }
}
Returns Examples

200 example

{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "success": true,
  "result": [
    {
      "id": "id",
      "class": "class",
      "name": "name",
      "script": "script",
      "use_sqlite": true
    }
  ],
  "result_info": {
    "count": 1,
    "page": 1,
    "per_page": 20,
    "total_count": 2000,
    "total_pages": 100
  }
}


description: View and edit SQLite-backed Durable Object storage data through the Cloudflare dashboard UI. title: Data Studio image: https://developers.cloudflare.com/durable-objects/observability/data-studio/og.png?v=1ec3708a97638eaa


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/durable-objects/llms.txt
Use this file to discover all available pages before exploring further.