Skip to Content
Secrets

Archive a secret

Permissionsecrets:deleteAuthentication
DELETE
/secrets/{id}

Idempotently soft-archives a secret. Returns 409 secret_in_use while an active HTTP tool template or MCP authentication configuration references its stable name.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Use a Voice API key or connected-app OAuth access token. Authentication.

Path Parameters

id*string
Formatuuid

Header Parameters

If-Match?string

Optional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.

Response Body

Archived, or already archived. No response body is returned.

Example Request
curl -X DELETE 'https://api.kejue.co/v1/secrets/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
Empty