Update Provider Key
curl --request PUT \
--url https://api.app.shinzo.ai/auth/provider_keys/:keyUuid \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"provider_api_key": "<string>",
"provider_base_url": "<string>",
"label": "<string>",
"status": "<string>"
}
'Provider Keys
Update Provider Key
Update an existing AI provider API key.
PUT
/
auth
/
provider_keys
/
:keyUuid
Update Provider Key
curl --request PUT \
--url https://api.app.shinzo.ai/auth/provider_keys/:keyUuid \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"provider_api_key": "<string>",
"provider_base_url": "<string>",
"label": "<string>",
"status": "<string>"
}
'Update Provider Key
Update an existing AI provider API key’s credentials, base URL, label, or status.Authentication
Requires JWT token authentication.string
required
The UUID of the key to update
string
New API key value
string
New custom base URL
string
New label
string
New status (
active, inactive, revoked)Example Request
curl -X PUT https://api.app.shinzo.ai/auth/provider_keys/pk_abc123def456 \
-H "Authorization: Bearer <jwt_token>" \
-H "Content-Type: application/json" \
-d '{
"label": "Updated Production Key",
"status": "active"
}'
Response
{
"uuid": "pk_abc123def456",
"provider": "anthropic",
"label": "Updated Production Key",
"status": "active",
"updated_at": "2025-01-20T14:30:00Z"
}
Status Codes
| Code | Description |
|---|---|
200 | Key updated successfully |
400 | Invalid request |
401 | Invalid or missing JWT token |
404 | Key not found |
Notes
- Setting
statustorevokedwill prevent the key from being used - Updating the
provider_api_keyreplaces the stored key entirely - The original key value is never returned

