Search + K

Command Palette

Search for a command to run...

Sign In

Get a Namespace

GET /accounts/{account_id}/storage/kv/namespaces/{namespace_id}
Copy endpoint
https://api.cloudflare.com/client/v4

Get the namespace corresponding to the given ID.

Parameters

path Path Parameters

Name Type
namespace_id required
type WorkersKvNamespaceIdentifier = string
account_id required
type WorkersKvIdentifier = string

Responses

200 application/json

Get a Namespace response.

interface WorkersKvApiResponseCommon {
errors: WorkersKvMessages
type WorkersKvMessages = { code: number;message: string; }[]
;
messages: WorkersKvMessages
type WorkersKvMessages = { code: number;message: string; }[]
;
success: true;
}
& { result?: WorkersKvNamespace
interface WorkersKvNamespace {
id: WorkersKvNamespaceIdentifier;
supports_url_encoding?: boolean;
title: WorkersKvNamespaceTitle;
}
; }

Client Errors

4XX application/json

Get a Namespace response failure.

interface WorkersKvApiResponseCommonFailure {
errors: WorkersKvMessages
type WorkersKvMessages = { code: number;message: string; }[]
;
messages: WorkersKvMessages
type WorkersKvMessages = { code: number;message: string; }[]
;
result: {} | null;
success: false;
}