NylorunDocsBeta
Management APIModels

List the model providers the Tenant has credentials for

GET
/v1/tenant/providers

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 providers

application/json
  1. response
providers*array<>
import { createAdmin } from "@nylorun/admin";const admin = createAdmin();const providers = await admin.models.providers();
{  "providers": [    {      "id": "string",      "name": "string",      "model": "string",      "authType": "api_key",      "baseUrl": "string",      "settings": {        "contextWindow": 1024,        "maxTokens": 1,        "reasoning": true,        "compat": {          "property1": null,          "property2": null        }      },      "lastUpdated": "string",      "active": true    }  ]}