Skip to main content
Adds an API key for a specific provider. If a key already exists for the provider, it is replaced.

Authentication

Requires a valid Bearer token.

Request Body

provider
string
required
Provider name (e.g., "anthropic", "openai").
api_key
string
required
The API key value.
{
  "provider": "anthropic",
  "api_key": "sk-ant-api03-..."
}

Response

Returns 200 OK on success.

Errors

StatusDescription
400Bad Request — missing provider or api_key
401Unauthorized — missing or invalid token