where('workspace_id', $workspaceId) ->find($keyId); if (! $key) { throw new \InvalidArgumentException('API key not found'); } app(AgentApiKeyService::class)->revoke($key); return true; } }