> ## Documentation Index
> Fetch the complete documentation index at: https://docs.runaether.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Add API Key

> Add or update an API key for a provider

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

<ParamField body="provider" type="string" required>
  Provider name (e.g., `"anthropic"`, `"openai"`).
</ParamField>

<ParamField body="api_key" type="string" required>
  The API key value.
</ParamField>

<RequestExample>
  ```json theme={null}
  {
    "provider": "anthropic",
    "api_key": "sk-ant-api03-..."
  }
  ```
</RequestExample>

## Response

Returns `200 OK` on success.

## Errors

| Status | Description                                   |
| ------ | --------------------------------------------- |
| `400`  | Bad Request — missing `provider` or `api_key` |
| `401`  | Unauthorized — missing or invalid token       |
