For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Copy to LLMGithubGo to App
DocumentationIntegrationsBuilding Self-Improving AgentsSelf-hosting OpikSDK & API reference
DocumentationIntegrationsBuilding Self-Improving AgentsSelf-hosting OpikSDK & API reference
    • Overview
  • Python SDK
    • Reference
    • REST API Client
  • Typescript SDK
    • Overview
    • Opik TS
    • Prompts
    • Opik Query Language (OQL)
  • Rest API
    • Overview
        • POSTDelete LLM Provider's ApiKeys
        • GETFind LLM Provider's ApiKeys
        • POSTStore LLM Provider's ApiKey
        • GETGet LLM Provider's ApiKey by id
        • PATCHUpdate LLM Provider's ApiKey
LogoLogo
Copy to LLMGithubGo to App
Rest APIAPI ReferenceLlm Provider Key

Update LLM Provider's ApiKey

PATCH
/v1/private/llm-provider-key/:id
PATCH
/api/v1/private/llm-provider-key/:id
$curl -X PATCH http://localhost:5173/api/v1/private/llm-provider-key/id \
> -H "Content-Type: application/json" \
> -d '{}'
Update LLM Provider's ApiKey
Was this page helpful?
Previous

Get local runner job logs

Next
Built with

Path parameters

idstringRequiredformat: "uuid"

Request

This endpoint expects an object.
api_keystringOptional
namestringOptional0-150 characters
provider_namestringOptional0-150 characters

Provider name - can be set to migrate legacy custom LLM or Bedrock providers to the new multi-provider format. Once set, it cannot be changed. Should only be set for custom LLM and Bedrock providers.

headersmap from strings to stringsOptional
configurationmap from strings to stringsOptional
base_urlstringOptional

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error