# Creates or updates an Anthropic integration API key

**PUT** `/v1/integrations/anthropic/{id}/api-key`

**Operation ID**: `upsertApiKey`
**Summary**: Creates or updates an Anthropic integration API key
Creates an API key for an Anthropic integration if it doesn't exist and updates it otherwise. If the key is updated while the integration is being used by a pipeline, the new key will be picked at pipeline restart, rescaling or an update.

## Tags
- Anthropic Integration
## Parameters

- **id** (required) - path
  - Type: string

## Request Body

**Content-Type**: `application/json`

**Schema**: `SecretApi`

## Responses

### 204

API key upserted successfully.

### 400

Invalid API key.

### 401

Unauthorized

### 404

Integration not found.

### 503

Anthropic API is rate-limiting or unavailable; retry later.
