NylorunDocsBeta
Management APIVaultsCredentials

List a vault's credentials

GET
/v1/tenant/vaults/{vaultId}/credentials

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

vaultId*string

Header Parameters

Nylorun-Protocol*string

The protocol version, 8

Response Body

The credentials, without their secrets

application/json
  1. response
credentials*array<>
import { createAdmin } from "@nylorun/admin";const admin = createAdmin();const credentials = await admin.vaults.credentials.list("vlt_123"); // metadata only
{  "credentials": [    {      "id": "string",      "vaultId": "string",      "name": "string",      "type": "bearer",      "binding": {        "url": "string"      },      "expiresAt": "string",      "createdAt": "string",      "rotatedAt": "string"    }  ]}