---
title: "Llm Credential By Workspace"
method: GET
path: "/internal/workspaces/{workspace_id}/llm-credential"
tags: ["tenant-llm"]
---

# Llm Credential By Workspace

`GET /internal/workspaces/{workspace_id}/llm-credential`

## Request

- Base URL: `https://api.b2metric.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.b2metric.com/internal/workspaces/{workspace_id}/llm-credential`
- Auth: none declared

Same read for a caller that only knows `Tenant.workspace_id` (asky). The client
allow-list is a dependency, so it runs before this body: a client that may not read
keys gets the same 403 for a real and an unknown workspace.

## Path parameters

- `workspace_id` string, uuid, required

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- LlmCredentialOut: Service-only: what asky needs to call LiteLLM as this tenant.
  - `key_alias` string, required
  - `virtual_key` string, required
  - `mode` string, required
  - `models` string[], required
  - `chat_model` string, nullable, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/b2metric/apis/b2metric-license-api.md) - [All operations](https://skmtc.dev/b2metric/apis/b2metric-license-api/llms.txt) - [OpenAPI document](https://skmtc.dev/b2metric/apis/b2metric-license-api/revisions/5ae75adf784e?raw)
