Store LLM Provider's ApiKey
Store LLM Provider's ApiKey
Request
This endpoint expects an object.
provider
api_key
name
provider_name
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
configuration
base_url
auth_config
Dynamic token auth recipe. When set, Opik fetches a short-lived bearer from the configured auth service instead of using a static api_key. Only supported for custom providers. Secret credential values read back masked.
Response headers
Location
Response
Created
Errors
401
Unauthorized Error
403
Forbidden Error