Keys
Delete an application key
DELETE
The key stops authenticating at once. A management key, studio and bootstrap are refused.
managementKeyheader
AuthorizationBearer <token>A management key of the Tenant (role management): it reaches the Management API (/v1/tenant/*) and /v1/me, as itself, never for a subject. Issued only on the Tenant's machine (nylorun-operate keys put <id> --role management) or from NYLORUN_MANAGEMENT_KEY_FILE. Never accepted from a browser (Origin).
keyId*stringThe key's name: ^[a-z][a-z0-9-]{0,31}$, never studio or bootstrap
Nylorun-Protocol*stringThe protocol version, 8
The key is deleted
application/json- response
id*stringLength
1 <= lengthdeleted*trueValue in
trueimport { createAdmin } from "@nylorun/admin";const admin = createAdmin();await admin.keys.delete("backend");{ "id": "string", "deleted": true}