NylorunDocsBeta
Management APIKeys

List the Tenant's keys

GET
/v1/tenant/keys

Every key of the Tenant by name, with its role (application, management or studio) and when it was issued. Keys themselves are never shown again.

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

Header Parameters

Nylorun-Protocol*string

The protocol version, 8

Response Body

The keys, by id

application/json
  1. response
keys*array<>
import { createAdmin } from "@nylorun/admin";const admin = createAdmin();const keys = await admin.keys.list(); // never the keys themselves
{  "keys": [    {      "id": "string",      "role": "string",      "createdAt": "string"    }  ]}