NylorunDocsBeta
Management APIKeys

Delete an application key

DELETE
/v1/tenant/keys/{keyId}

The key stops authenticating at once. A management key, studio and bootstrap are refused.

Authorization

managementKey
headerAuthorizationBearer <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).

Path Parameters

keyId*string

The key's name: ^[a-z][a-z0-9-]{0,31}$, never studio or bootstrap

Header Parameters

Nylorun-Protocol*string

The protocol version, 8

Response Body

The key is deleted

application/json
  1. response
id*string
Length1 <= length
deleted*true
Value intrue
import { createAdmin } from "@nylorun/admin";const admin = createAdmin();await admin.keys.delete("backend");
{  "id": "string",  "deleted": true}