Skip to main content
POST
JavaScript

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

KV namespace creation request

name
string
required

Namespace name. May contain lowercase letters, numbers, and hyphens only.

Required string length: 1 - 255
Pattern: ^[a-z0-9-]+$
Example:

"my-cache"

Response

KV namespace created successfully

data
object