api.apiKeys.revoke
Revoke an API key. Effective immediately: in-flight requests using the key get 401 ApiKeyRevoked on the next hit.
await ..();| Argument | Type |
|---|---|
id | string |
Returns: Promise<void>.
Throws: ApiError 404 ApiKeyNotFound, 403 ApiKeyRevokeForbidden (caller is neither owner/admin nor the key's creator), 409 AlreadyRevoked.
REST endpoint: DELETE /auth/api-keys/{id}.
