Key-value databases
A key-value database stores keys and values and lives under /database/v1/kv; keys and commands have their own pages, and the Upstash-compatible API connects existing Redis clients. A table database’s id on these paths returns 404 DATABASE_NOT_FOUND. The create body has no kind. Creating a key-value database needs the capability to be available for your organization; otherwise creation returns 400 INVALID_PARAMS: kind kv is not available.
Create key-value database
POST /database/v1/kv
Request body
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Display name for the database: 1–64 visible characters after trimming; control characters are rejected. It is not an identifier, so later calls still use the returned id. |
| labels | object | no | Optional string tags to attach, at most 64. Each key starts with a lowercase letter and may use up to 63 characters of a-z 0-9 _ -; each value is up to 63 characters of a-z 0-9 _ -. List calls filter on exact key and value pairs. |
Returns: Database.
Response
HTTP 201
Success
application/json
| Name | Type | Description |
|---|---|---|
| id | string | Database identifier, prefixed db_. Pass it as database_id in every database, table, field, rows and events path. |
| name | string | Display name given at creation or by the last update; it is not an identifier. |
| labels | object | String tags attached to the database, as key and value pairs; empty object when none. |
| kind | string | Which store the database is, fixed at creation by the path it was created under: table (/database/v1/table, tables and rows) or kv (/database/v1/kv, keys and values); informational and read only. |
| status | string | Lifecycle state of the database. Table, field and row calls work only while it is active. |
| table_count | integer | Number of tables currently in the database, at most 50; refreshed when the schema changes. |
| size_bytes | integer | Storage size; row writes and GET refresh usage at most once per five seconds, schema changes refresh immediately. |
| created_at | string | Time the database was created, as an RFC 3339 UTC timestamp. |
| updated_at | string | Time of the last change to the name, labels, status or usage snapshot, as an RFC 3339 UTC timestamp. |
| deleted_at | string | null | Time the database entered the deleting state, as an RFC 3339 UTC timestamp; null while it is active and again after a restore. |
| purge_at | string | null | Permanent deletion deadline for deleting databases; null otherwise. |
curl -X POST "https://api.deepraxis.com/database/v1/kv" \ -H "Authorization: Bearer $PRAXIS_API_KEY" \ -H "Content-Type: application/json" \ -d '{"name":"docs-database-kv","labels":{"purpose":"docs","sample":"docs-database-"}}'Response example — HTTP 201
{ "id": "db_581e6ba51c0b40be", "kind": "kv", "name": "docs-database-kv", "labels": { "purpose": "docs", "sample": "docs-database-" }, "status": "active", "table_count": 0, "size_bytes": 86016, "created_at": "2026-11-27T03:16:53.654Z", "updated_at": "2026-11-27T03:16:54.392Z", "deleted_at": null, "purge_at": null}List key-value databases
GET /database/v1/kv
| Parameter | Location | Description |
|---|---|---|
| cursor | query | Opaque next_cursor from the previous page. |
| limit | query | Page size. (default: 20) (1–100) |
| labels | query | Exact label match, encoded as labels[purpose]=docs. |
| status | query | Filter by lifecycle state. active (the default when omitted) lists usable databases; deleting lists databases that were deleted and are still inside the seven-day restore window. Any other value returns 400 INVALID_PARAMS. |
Returns: Page + object.
Response
HTTP 200
Success
application/json
| Name | Type | Description |
|---|---|---|
| data | array<object> | Databases on this page, newest first (created_at descending, ties by id). Deleting databases are excluded unless status=deleting. |
| data[].id | string | Database identifier, prefixed db_. Pass it as database_id in every database, table, field, rows and events path. |
| data[].name | string | Display name given at creation or by the last update; it is not an identifier. |
| data[].labels | object | String tags attached to the database, as key and value pairs; empty object when none. |
| data[].kind | string | Which store the database is, fixed at creation by the path it was created under: table (/database/v1/table, tables and rows) or kv (/database/v1/kv, keys and values); informational and read only. |
| data[].status | string | Lifecycle state of the database. Table, field and row calls work only while it is active. |
| data[].table_count | integer | Number of tables currently in the database, at most 50; refreshed when the schema changes. |
| data[].size_bytes | integer | Storage size; row writes and GET refresh usage at most once per five seconds, schema changes refresh immediately. |
| data[].created_at | string | Time the database was created, as an RFC 3339 UTC timestamp. |
| data[].updated_at | string | Time of the last change to the name, labels, status or usage snapshot, as an RFC 3339 UTC timestamp. |
| data[].deleted_at | string | null | Time the database entered the deleting state, as an RFC 3339 UTC timestamp; null while it is active and again after a restore. |
| data[].purge_at | string | null | Permanent deletion deadline for deleting databases; null otherwise. |
| next_cursor | string | null | Opaque cursor for the next page, or null when there are no more items. Databases list: pass it as cursor. Events list: pass it as after_seq (order asc) or before_seq (order desc). |
curl -g -X GET "https://api.deepraxis.com/database/v1/kv?limit=10&labels[purpose]=docs&labels[sample]=docs-database-" \ -H "Authorization: Bearer $PRAXIS_API_KEY"Response example — HTTP 200
{ "data": [ { "id": "db_581e6ba51c0b40be", "kind": "kv", "name": "docs-database-kv", "labels": { "purpose": "docs", "sample": "docs-database-" }, "status": "active", "table_count": 0, "size_bytes": 86016, "created_at": "2026-11-27T03:16:53.654Z", "updated_at": "2026-11-27T03:16:54.392Z", "deleted_at": null, "purge_at": null } ], "next_cursor": null}Get key-value database
GET /database/v1/kv/{database_id}
| Parameter | Location | Description |
|---|---|---|
| database_id | path | Identifier of the key-value database to act on: the id (db_…) returned by databaseCreateKvDatabase or databaseListKvDatabases. A display name is not accepted; the id of a table database returns 404 DATABASE_NOT_FOUND. |
Returns: Database.
Response
HTTP 200
Success
application/json
| Name | Type | Description |
|---|---|---|
| id | string | Database identifier, prefixed db_. Pass it as database_id in every database, table, field, rows and events path. |
| name | string | Display name given at creation or by the last update; it is not an identifier. |
| labels | object | String tags attached to the database, as key and value pairs; empty object when none. |
| kind | string | Which store the database is, fixed at creation by the path it was created under: table (/database/v1/table, tables and rows) or kv (/database/v1/kv, keys and values); informational and read only. |
| status | string | Lifecycle state of the database. Table, field and row calls work only while it is active. |
| table_count | integer | Number of tables currently in the database, at most 50; refreshed when the schema changes. |
| size_bytes | integer | Storage size; row writes and GET refresh usage at most once per five seconds, schema changes refresh immediately. |
| created_at | string | Time the database was created, as an RFC 3339 UTC timestamp. |
| updated_at | string | Time of the last change to the name, labels, status or usage snapshot, as an RFC 3339 UTC timestamp. |
| deleted_at | string | null | Time the database entered the deleting state, as an RFC 3339 UTC timestamp; null while it is active and again after a restore. |
| purge_at | string | null | Permanent deletion deadline for deleting databases; null otherwise. |
curl -X GET "https://api.deepraxis.com/database/v1/kv/${DATABASE_ID}" \ -H "Authorization: Bearer $PRAXIS_API_KEY"Response example — HTTP 200
{ "id": "db_581e6ba51c0b40be", "kind": "kv", "name": "docs-database-kv", "labels": { "purpose": "docs", "sample": "docs-database-" }, "status": "active", "table_count": 0, "size_bytes": 86016, "created_at": "2026-11-27T03:16:53.654Z", "updated_at": "2026-11-27T03:16:54.392Z", "deleted_at": null, "purge_at": null}Update key-value database
PATCH /database/v1/kv/{database_id}
| Parameter | Location | Description |
|---|---|---|
| database_id | path | Identifier of the key-value database to act on: the id (db_…) returned by databaseCreateKvDatabase or databaseListKvDatabases. A display name is not accepted; the id of a table database returns 404 DATABASE_NOT_FOUND. |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | no | New display name, 1–64 visible characters after trimming. Omit it to keep the current name. |
| labels | object | no | Complete replacement label set, not a merge: labels not listed here are removed. Same limits as at creation (at most 64; keys a-z 0-9 _ - starting with a letter; values up to 63 characters of a-z 0-9 _ -). Omit it to keep the current labels. |
Returns: Database.
Response
HTTP 200
Success
application/json
| Name | Type | Description |
|---|---|---|
| id | string | Database identifier, prefixed db_. Pass it as database_id in every database, table, field, rows and events path. |
| name | string | Display name given at creation or by the last update; it is not an identifier. |
| labels | object | String tags attached to the database, as key and value pairs; empty object when none. |
| kind | string | Which store the database is, fixed at creation by the path it was created under: table (/database/v1/table, tables and rows) or kv (/database/v1/kv, keys and values); informational and read only. |
| status | string | Lifecycle state of the database. Table, field and row calls work only while it is active. |
| table_count | integer | Number of tables currently in the database, at most 50; refreshed when the schema changes. |
| size_bytes | integer | Storage size; row writes and GET refresh usage at most once per five seconds, schema changes refresh immediately. |
| created_at | string | Time the database was created, as an RFC 3339 UTC timestamp. |
| updated_at | string | Time of the last change to the name, labels, status or usage snapshot, as an RFC 3339 UTC timestamp. |
| deleted_at | string | null | Time the database entered the deleting state, as an RFC 3339 UTC timestamp; null while it is active and again after a restore. |
| purge_at | string | null | Permanent deletion deadline for deleting databases; null otherwise. |
curl -X PATCH "https://api.deepraxis.com/database/v1/kv/${DATABASE_ID}" \ -H "Authorization: Bearer $PRAXIS_API_KEY" \ -H "Content-Type: application/json" \ -d '{"name":"docs-database-cache"}'Response example — HTTP 200
{ "id": "db_581e6ba51c0b40be", "kind": "kv", "name": "docs-database-cache", "labels": { "purpose": "docs", "sample": "docs-database-" }, "status": "active", "table_count": 0, "size_bytes": 86016, "created_at": "2026-11-27T03:16:53.654Z", "updated_at": "2026-11-27T03:16:56.399Z", "deleted_at": null, "purge_at": null}Delete key-value database
DELETE /database/v1/kv/{database_id}
| Parameter | Location | Description |
|---|---|---|
| database_id | path | Identifier of the key-value database to act on: the id (db_…) returned by databaseCreateKvDatabase or databaseListKvDatabases. A display name is not accepted; the id of a table database returns 404 DATABASE_NOT_FOUND. |
Returns: Database.
Response
HTTP 200
Success
application/json
| Name | Type | Description |
|---|---|---|
| id | string | Database identifier, prefixed db_. Pass it as database_id in every database, table, field, rows and events path. |
| name | string | Display name given at creation or by the last update; it is not an identifier. |
| labels | object | String tags attached to the database, as key and value pairs; empty object when none. |
| kind | string | Which store the database is, fixed at creation by the path it was created under: table (/database/v1/table, tables and rows) or kv (/database/v1/kv, keys and values); informational and read only. |
| status | string | Lifecycle state of the database. Table, field and row calls work only while it is active. |
| table_count | integer | Number of tables currently in the database, at most 50; refreshed when the schema changes. |
| size_bytes | integer | Storage size; row writes and GET refresh usage at most once per five seconds, schema changes refresh immediately. |
| created_at | string | Time the database was created, as an RFC 3339 UTC timestamp. |
| updated_at | string | Time of the last change to the name, labels, status or usage snapshot, as an RFC 3339 UTC timestamp. |
| deleted_at | string | null | Time the database entered the deleting state, as an RFC 3339 UTC timestamp; null while it is active and again after a restore. |
| purge_at | string | null | Permanent deletion deadline for deleting databases; null otherwise. |
curl -X DELETE "https://api.deepraxis.com/database/v1/kv/${DATABASE_ID}" \ -H "Authorization: Bearer $PRAXIS_API_KEY"Response example — HTTP 200
{ "id": "db_581e6ba51c0b40be", "kind": "kv", "name": "docs-database-cache", "labels": { "purpose": "docs", "sample": "docs-database-" }, "status": "deleting", "table_count": 0, "size_bytes": 90112, "created_at": "2026-11-27T03:16:53.654Z", "updated_at": "2026-11-27T03:17:03.630Z", "deleted_at": "2026-11-27T03:17:03.630Z", "purge_at": "2026-12-04T03:17:03.630Z"}Restore key-value database
POST /database/v1/kv/{database_id}/restore
| Parameter | Location | Description |
|---|---|---|
| database_id | path | Identifier of the key-value database to act on: the id (db_…) returned by databaseCreateKvDatabase or databaseListKvDatabases. A display name is not accepted; the id of a table database returns 404 DATABASE_NOT_FOUND. |
Returns: Database.
Response
HTTP 200
Success
application/json
| Name | Type | Description |
|---|---|---|
| id | string | Database identifier, prefixed db_. Pass it as database_id in every database, table, field, rows and events path. |
| name | string | Display name given at creation or by the last update; it is not an identifier. |
| labels | object | String tags attached to the database, as key and value pairs; empty object when none. |
| kind | string | Which store the database is, fixed at creation by the path it was created under: table (/database/v1/table, tables and rows) or kv (/database/v1/kv, keys and values); informational and read only. |
| status | string | Lifecycle state of the database. Table, field and row calls work only while it is active. |
| table_count | integer | Number of tables currently in the database, at most 50; refreshed when the schema changes. |
| size_bytes | integer | Storage size; row writes and GET refresh usage at most once per five seconds, schema changes refresh immediately. |
| created_at | string | Time the database was created, as an RFC 3339 UTC timestamp. |
| updated_at | string | Time of the last change to the name, labels, status or usage snapshot, as an RFC 3339 UTC timestamp. |
| deleted_at | string | null | Time the database entered the deleting state, as an RFC 3339 UTC timestamp; null while it is active and again after a restore. |
| purge_at | string | null | Permanent deletion deadline for deleting databases; null otherwise. |
curl -X POST "https://api.deepraxis.com/database/v1/kv/${DATABASE_ID}/restore" \ -H "Authorization: Bearer $PRAXIS_API_KEY"Response example — HTTP 200
{ "id": "db_581e6ba51c0b40be", "kind": "kv", "name": "docs-database-cache", "labels": { "purpose": "docs", "sample": "docs-database-" }, "status": "active", "table_count": 0, "size_bytes": 90112, "created_at": "2026-11-27T03:16:53.654Z", "updated_at": "2026-11-27T03:17:02.780Z", "deleted_at": null, "purge_at": null}Purge key-value database
POST /database/v1/kv/{database_id}/purge
| Parameter | Location | Description |
|---|---|---|
| database_id | path | Identifier of the key-value database to act on: the id (db_…) returned by databaseCreateKvDatabase or databaseListKvDatabases. A display name is not accepted; the id of a table database returns 404 DATABASE_NOT_FOUND. |
Returns: object.
Response
HTTP 200
Permanently purged
application/json
| Name | Type | Description |
|---|---|---|
| id | string | Id (db_…) of the database that was permanently purged; it no longer resolves. |
| object | string | Resource type of the purged object; always database. |
| purged | boolean | Always true: the database and all of its data were permanently removed and cannot be recovered. |
curl -X POST "https://api.deepraxis.com/database/v1/kv/${DATABASE_ID}/purge" \ -H "Authorization: Bearer $PRAXIS_API_KEY"Response example — HTTP 200
{ "id": "db_581e6ba51c0b40be", "object": "database", "purged": true}Database
| Field | Type | Required | Description |
|---|---|---|---|
| id | string | yes | Database identifier, prefixed db_. Pass it as database_id in every database, table, field, rows and events path.; ^db_ |
| name | string | yes | Display name given at creation or by the last update; it is not an identifier. |
| labels | object | yes | String tags attached to the database, as key and value pairs; empty object when none. |
| kind | "table" / "kv" | yes | Which store the database is, fixed at creation by the path it was created under: table (/database/v1/table, tables and rows) or kv (/database/v1/kv, keys and values); informational and read only. |
| status | "provisioning" / "active" / "deleting" / "deleted" / "failed" | yes | Lifecycle state of the database. Table, field and row calls work only while it is active. |
| table_count | integer | yes | Number of tables currently in the database, at most 50; refreshed when the schema changes. |
| size_bytes | integer | yes | Storage size; row writes and GET refresh usage at most once per five seconds, schema changes refresh immediately. |
| created_at | date-time | yes | Time the database was created, as an RFC 3339 UTC timestamp. |
| updated_at | date-time | yes | Time of the last change to the name, labels, status or usage snapshot, as an RFC 3339 UTC timestamp. |
| deleted_at | date-time / null | yes | Time the database entered the deleting state, as an RFC 3339 UTC timestamp; null while it is active and again after a restore. |
| purge_at | date-time / null | yes | Permanent deletion deadline for deleting databases; null otherwise. |
Page
| Field | Type | Required | Description |
|---|---|---|---|
| data | JSON[] | yes | Items of this page; the item type depends on the operation. |
| next_cursor | string / null | yes | Opaque cursor for the next page, or null when there are no more items. Databases list: pass it as cursor. Events list: pass it as after_seq (order asc) or before_seq (order desc). |