{"record":{"id":"64bac449449021fe","repo":"langflow-ai/langflow","slug":"authentication-required-to-run-flows","errorCode":null,"errorMessage":"Authentication required to run flows.","messagePattern":"Authentication required to run flows\\.","errorType":"http","errorClass":"HTTPException","httpStatus":401,"severity":"error","filePath":"src/backend/base/langflow/api/v1/endpoints.py","lineNumber":295,"sourceCode":"                    type=input_request.input_type,\n                )\n            ]\n        if input_request.output_component:\n            outputs = [input_request.output_component]\n        else:\n            outputs = [\n                vertex.id\n                for vertex in graph.vertices\n                if input_request.output_type == \"debug\"\n                or (\n                    vertex.is_output\n                    and (input_request.output_type == \"any\" or input_request.output_type in vertex.id.lower())  # type: ignore[operator]\n                )\n            ]\n\n        # Create a WORKFLOW job record so memory-base on_flow_output can track this run.\n        if user_id is None:\n            raise HTTPException(\n                status_code=status.HTTP_401_UNAUTHORIZED,\n                detail=\"Authentication required to run flows.\",\n            )\n\n        try:\n            _job_svc = get_job_service()\n            await _job_svc.create_job(\n                job_id=run_id_uuid,\n                flow_id=flow.id,\n                user_id=user_id,\n                job_type=JobType.WORKFLOW,\n            )\n            task_result, session_id = await _job_svc.execute_with_status(\n                run_id_uuid,\n                run_graph_internal,\n                graph=graph,\n                flow_id=flow_id_str,\n                session_id=input_request.session_id,","sourceCodeStart":277,"sourceCodeEnd":313,"githubUrl":"https://github.com/langflow-ai/langflow/blob/976ec789d2886a86de109c044d089d68e96c9a35/src/backend/base/langflow/api/v1/endpoints.py#L277-L313","documentation":"Error \"Authentication required to run flows.\" thrown in langflow-ai/langflow.","triggerScenarios":"Occurs when an unauthenticated request attempts to run a flow while auto-login is disabled and no API key or valid session is provided.","commonSituations":"See trigger scenarios.","solutions":["Log in and include a valid session cookie or x-api-key header with the request.","If auto-login is expected, enable it in the auth settings."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"976ec789d2886a86de109c044d089d68e96c9a35","analyzedAt":"2026-08-14T18:23:12.227Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}