---
# @generated by sylphx-gen 0.1.0 from contracts@e145cc7cf1bc9605f2b27439e5e17ed76a1a2fd7e7021906a013f7565e4a0cd5. Do not edit.
title: "KV namespaces"
description: "The `kv_namespaces` collection of Sylphx Data: A KvNamespace is one customer key-value store on its own Valkey: versioned bytes with compare-and-set, TTL, and prefix list, plus a closed Valkey command profile on the wire."
type: reference
product: kv
summary: "A KvNamespace is one customer key-value store on its own Valkey: versioned bytes with compare-and-set, TTL, and prefix list, plus a closed…"
updated: 2026-09-28
order: 900
---

A KvNamespace is one customer key-value store on its own Valkey: versioned bytes with compare-and-set, TTL, and prefix list, plus a closed Valkey command profile on the wire. Silo: each has its own engine, credentials, backup, region, and deletion.

**Service** Sylphx Data · **Resource type** `data.sylphx.com/KvNamespace` · **Name pattern** `orgs/{org}/projects/{project}/envs/{env}/kv_namespaces/{kv_namespace}` · **Shape** `spec_status`

## Fields

| Field | Type | What it is |
| --- | --- | --- |
| `name` | `string` | `orgs/{org}/projects/{project}/envs/{env}/kv_namespaces/{kv_namespace}`. |
| `uid` | `string` | `kv_<cell><ulid>`; never reused. Output only. |
| `meta` | `ResourceMeta` | Resource metadata. |
| `spec` | `KvNamespaceSpec` | Desired state. Required. |
| `status` | `KvNamespaceStatus` | Observed state. Output only. |

## Methods

Every method of the collection, in the registry's order, with the scope it
needs. The full request, response and examples are one link away.

| Method | Call | What it does |
| --- | --- | --- |
| `GET` | [`get`](/docs/api/kv_namespaces#get) | Gets a kv namespace. |
| `GET` | [`list`](/docs/api/kv_namespaces#list) | Lists kv namespaces in a environment. |
| `POST` | [`create`](/docs/api/kv_namespaces#create) | Creates a kv namespace. The Operation is done when the controller settles it. |
| `PATCH` | [`update`](/docs/api/kv_namespaces#update) | Updates a kv namespace. |
| `DELETE` | [`delete`](/docs/api/kv_namespaces#delete) | Deletes a kv namespace. Fails while `spec.deletion_protection` is set. |
| `POST` | [`connect`](/docs/api/kv_namespaces#connect) | Returns how to connect to the KV namespace: its endpoint and its own engine credentials. The credentials are not API keys and are returned only here. |
| `POST` | [`rotate_credentials`](/docs/api/kv_namespaces#rotate-credentials) | Replaces the KV namespace's engine credentials; the old ones stop working once the new ones are served. |

## get

Gets a kv namespace.

`GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/kv_namespaces/kv-namespace` · scope `data:read` · effect `read` · [Request, response and examples](/docs/api/kv_namespaces/get)

## list

Lists kv namespaces in a environment.

`GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/kv_namespaces` · scope `data:read` · effect `read` · paginated · [Request, response and examples](/docs/api/kv_namespaces/list)

## create

Creates a kv namespace. The Operation is done when the controller settles it.

`POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/kv_namespaces` · scope `data:write` · effect `write` · long-running · [Request, response and examples](/docs/api/kv_namespaces/create)

## update

Updates a kv namespace.

`PATCH https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/kv_namespaces/kv-namespace` · scope `data:write` · effect `write` · long-running · [Request, response and examples](/docs/api/kv_namespaces/update)

## delete

Deletes a kv namespace. Fails while `spec.deletion_protection` is set.

`DELETE https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/kv_namespaces/kv-namespace` · scope `data:write` · effect `destructive` · long-running · [Request, response and examples](/docs/api/kv_namespaces/delete)

## connect

Returns how to connect to the KV namespace: its endpoint and its own engine credentials. The credentials are not API keys and are returned only here.

`POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/kv_namespaces/kv-namespace:connect` · scope `data:write` · effect `read` · [Request, response and examples](/docs/api/kv_namespaces/connect)

## rotate_credentials

Replaces the KV namespace's engine credentials; the old ones stop working once the new ones are served.

`POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/kv_namespaces/kv-namespace:rotateCredentials` · scope `data:write` · effect `write` · validate_only · long-running · [Request, response and examples](/docs/api/kv_namespaces/rotate_credentials)
