---
title: "Get an LLM profile"
method: GET
path: "/v1/llm-profiles/{profile_id}"
tags: ["LLM profiles"]
---

# Get an LLM profile

`GET /v1/llm-profiles/{profile_id}`

## Request

- Base URL: `https://api.lmnr.ai`
- URL: `https://api.lmnr.ai/v1/llm-profiles/{profile_id}`
- Auth: HTTP bearer

Returns an LLM profile from the authenticated project's workspace. Secret values are masked.

## Response `200`

LLM profile details.

- LlmProfile
  - `id` string, uuid, required
  - `workspaceId` string, uuid, required
  - `name` string, required
  - `provider` 'openai_completions' | 'openai_responses' | 'anthropic' | 'gemini' | 'groq' | 'mistral' | 'bedrock' | 'azure_chat_completions' | 'azure_responses' | 'azure_anthropic' | 'custom' | 'custom_responses', required
  - `config` LlmProfileConfig, required: Provider-specific non-secret configuration. Azure requires exactly one of `resourceId` or `baseUrl`; Bedrock requires `region`; custom providers require `baseUrl`.
    - `auth` union
      - object
        - `type` 'api_key', required
      - object
        - `type` 'aws_keys', required
        - `accessKeyId` string, required
      - object
        - `type` 'bearer_token', required
    - `region` string
    - `resourceId` string
    - `baseUrl` string, uri
    - `apiVersion` string
    - `headerNames` string[]
  - `models` string[], required
  - `secrets` LlmProfileSecrets, required
    - `apiKey` string, nullable, required: Masked API key.
    - `secretAccessKey` string, nullable, required: Masked AWS secret access key.
    - `token` string, nullable, required: Masked bearer token.
    - `headers` string[], required: Names of stored custom headers; values are never returned.
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Other responses

- `401`: Missing or invalid API key.
- `404`: The requested resource was not found in this project.

---

[API](https://skmtc.dev/laminar-sh/apis/laminar-api.md) - [All operations](https://skmtc.dev/laminar-sh/apis/laminar-api/llms.txt) - [OpenAPI document](https://skmtc.dev/laminar-sh/apis/laminar-api/revisions/8a7a08163846?raw)
