'database_unavailable'], 503); } $apiKeyRow = ApiKey::verify(ApiKey::fromRequest(), $db); if (!$apiKeyRow) { api_json(['error' => 'unauthorized', 'message' => 'Gültiger API-Schlüssel erforderlich (Authorization: Bearer …)'], 401); }