Update an API key’s name, scopes, expiry, or metadata
Rotate API Key to issue new credentials. Metadata uses merge semantics (null values remove keys). Scope changes are subject to escalation prevention: you cannot grant scopes that the calling key does not already hold. System keys cannot be modified.
Requires the api-keys:manage scope.
key_...).null to clear. Must be in the future.null.Get API Key.
| Status | Type | Description |
|---|---|---|
| 400 | validation_error | Empty name, invalid scope, expires_at not in the future |
| 401 | unauthorized | Missing or invalid API key |
| 403 | forbidden | API key lacks api-keys:manage, target key is a system key, or scope escalation attempted |
| 404 | not_found | API key does not exist or belongs to another org |