Skip to main content
Revoke a key. Subsequent requests that use the revoked key fail with AuthenticationError. Required scope: admin
result = await mesa.api_keys.revoke(key_id="key_123")
print(result.success)

Options

key_id
str
required
API key ID to revoke.
org
str | None
Organization override.

Response

success
bool
Whether the operation succeeded.