---
title: "POST /projects/{project_id}/workflow-keys/{key_id}/shred"
method: POST
path: "/projects/{project_id}/workflow-keys/{key_id}/shred"
tags: ["Workflows"]
---

# POST /projects/{project_id}/workflow-keys/{key_id}/shred

`POST /projects/{project_id}/workflow-keys/{key_id}/shred`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/workflow-keys/{key_id}/shred`
- Auth: HTTP bearer

## Path parameters

- `project_id` integer, required
- `key_id` string, uuid, required

## Request body

- ShredWorkflowKeyRequest
  - `confirm_key_id` string, uuid, required: Exact key UUID, confirming that its retained payloads become unreadable.

## Response `204`

Wrapped key erased; new payloads get a new key. Backups may retain the old key.

## Other responses

- `400`: Confirmation mismatch
- `401`: Unauthorized
- `403`: Insufficient permissions
- `410`: Key unavailable
- `500`: Database failure

## Changes

- **2026-11-15** `188ea295ffc6`: 1 info
  - endpoint added
- **2026-11-15** `72c32d8dee65`: 1 breaking
  - api path removed without deprecation
- **2026-11-14** `101ef74660bc`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/workflow-keys/:key_id/shred/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)
