Store an encrypted AI provider API key.
| Field | Type | Required | Description |
|---|---|---|---|
provider | string | Yes | Provider name (anthropic) |
provider_api_key | string | Yes | The API key to store |
provider_base_url | string | No | Custom base URL (for proxies or self-hosted) |
label | string | No | Optional label to identify this key |
| Field | Type | Description |
|---|---|---|
uuid | string | Unique identifier for the stored key |
provider | string | Provider name |
label | string | User-provided label (if set) |
status | string | Key status (active) |
created_at | string | Creation timestamp (ISO 8601) |
| Code | Description |
|---|---|
201 | Key saved successfully |
400 | Invalid request (missing fields, unsupported provider) |
401 | Invalid or missing JWT token |