---
title: "Get LLM Provider's ApiKey by id"
method: GET
path: "/v1/private/llm-provider-key/{id}"
tags: ["LlmProviderKey"]
---

# Get LLM Provider's ApiKey by id

`GET /v1/private/llm-provider-key/{id}`

Get LLM Provider's ApiKey by id

## Path parameters

- `id` string, uuid, required

## Response `200`

LLMProviderApiKey resource

- ProviderApiKeyPublic
  - `id` string, uuid
  - `provider` 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'vertex-ai' | 'bedrock' | 'ollama' | 'custom-llm' | 'opik-free', required
  - `api_key` string
  - `name` string
  - `provider_name` string — Provider name - required for custom LLM and Bedrock providers to uniquely identify them (e.g., 'ollama', 'vllm', 'Bedrock us-east-1'). Must not be blank for custom and Bedrock providers. Should not be set for standard providers (OpenAI, Anthropic, etc.). This requirement is conditional and validation is enforced programmatically.
  - `headers` object
  - `configuration` object
  - `base_url` string
  - `created_at` string, date-time
  - `created_by` string
  - `last_updated_at` string, date-time
  - `last_updated_by` string
  - `read_only` boolean — If true, this provider is system-managed and cannot be edited or deleted

## Other responses

- `404` — Not found

---

[API](https://skmtc.net/comet-ml/apis/opik-rest-api.md) · [All operations](https://skmtc.net/comet-ml/apis/opik-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/comet-ml/opik-rest-api/revisions/4ed2fbc97cc3/schema)
