---
title: "Enable KV service"
method: POST
path: "/kv/enable"
tags: ["KV Management"]
---

# Enable KV service

`POST /kv/enable`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/kv/enable`
- Auth: HTTP bearer

## Request body

- EnableKvRequest: Request to enable the KV service
  - `docker_image` string, nullable: Docker image to use (optional, uses default if not provided)
  - `max_memory` string, nullable: Maximum memory allocation (e.g., "256mb", "1gb")
  - `persistence` boolean: Enable data persistence

## Response `200`

KV service enabled

- EnableKvResponse: Response after enabling KV service
  - `message` string, required: Status message
  - `status` KvStatusResponse, required: Current service status
    - `docker_image` string, nullable: Docker image being used
    - `enabled` boolean, required: Whether the KV service is enabled
    - `healthy` boolean, required: Whether the underlying Redis service is healthy
    - `version` string, nullable: Service version
  - `success` boolean, required: Whether the service was successfully enabled

## Other responses

- `401`: Unauthorized
- `409`: The KV container name is already taken on this Docker host by something that is not this instance's KV service. Set a unique kv.container_name via PATCH /kv/settings
- `500`: Internal server error

## Changes

- **2026-11-09** `12896146b193`: 1 breaking
  - removed the required property `extensions` from the response with the `409` status
- **2026-10-13** `dd766bfd1f06`: 1 info
  - added the non-success response with the status `409`
- **2026-04-25** `774be20905f2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/kv/enable/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
