Save Provider Key
Provider Keys
Save Provider Key
Store an encrypted AI provider API key.
POST
Save Provider Key
Save Provider Key
Securely store an AI provider API key in the Shinzo Platform. Keys are encrypted at rest and can be used with the Spotlight model proxy.Authentication
Requires JWT token authentication.Provider name (
anthropic)The API key to store
Custom base URL (for proxies or self-hosted)
Optional label to identify this key
Example Request
Response
Response Fields
| 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) |
Status Codes
| Code | Description |
|---|---|
201 | Key saved successfully |
400 | Invalid request (missing fields, unsupported provider) |
401 | Invalid or missing JWT token |
Security Notes
- API keys are encrypted before storage using industry-standard encryption
- Original key values cannot be retrieved after storage
- Keys can be updated or deleted but not viewed

