Skip to main content
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.
keyUuid
string
required
The UUID of the key to update
provider_api_key
string
New API key value
provider_base_url
string
New custom base URL
label
string
New label
status
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

CodeDescription
200Key updated successfully
400Invalid request
401Invalid or missing JWT token
404Key not found

Notes

  • Setting status to revoked will prevent the key from being used
  • Updating the provider_api_key replaces the stored key entirely
  • The original key value is never returned