---
title: "Rotate project secret key (admin)"
method: PUT
path: "/admin/v1/project/{project_id}/secret_key"
tags: ["admin"]
---

# Rotate project secret key (admin)

`PUT /admin/v1/project/{project_id}/secret_key`

Generate a new secret key for a non-encrypted project. Blocked for encrypted projects.

## Path parameters

- `project_id` string, uuid, required

## Response `200`

OK

- object
  - `code` integer
  - `error` string
  - `msg` string
  - `data` ServiceUpdateSecretKeyOutput
    - `secret_key` string

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

## Changes

- **2026-07-17** `c8775333b1ed` — 1 info
  - endpoint added
- **2025-11-12** `a1c1bcb0e2ee` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/memodb-io/apis/acontext-api/changes/admin/v1/project/:project_id/secret_key/put.md)

---

[API](https://skmtc.dev/memodb-io/apis/acontext-api.md) · [All operations](https://skmtc.dev/memodb-io/apis/acontext-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/memodb-io/acontext-api/revisions/c8775333b1ed/schema)
