{"record":{"id":"d209a4602da7843e","repo":"langflow-ai/langflow","slug":"the-task-endpoint-is-deprecated-and-will-be-remov","errorCode":null,"errorMessage":"The /task endpoint is deprecated and will be removed in a future version. Please use /run instead.","messagePattern":"The /task endpoint is deprecated and will be removed in a future version\\. Please use /run instead\\.","errorType":"http","errorClass":"HTTPException","httpStatus":400,"severity":"error","filePath":"src/backend/base/langflow/api/v1/endpoints.py","lineNumber":1266,"sourceCode":"async def process(_flow_id) -> None:\n    \"\"\"Endpoint to process an input with a given flow_id.\"\"\"\n    # Raise a depreciation warning\n    await logger.awarning(\n        \"The /process endpoint is deprecated and will be removed in a future version. Please use /run instead.\"\n    )\n    raise HTTPException(\n        status_code=status.HTTP_400_BAD_REQUEST,\n        detail=\"The /process endpoint is deprecated and will be removed in a future version. Please use /run instead.\",\n    )\n\n\n@router.get(\"/task/{_task_id}\", deprecated=True, include_in_schema=False)\nasync def get_task_status(_task_id: str) -> TaskStatusResponse:\n    \"\"\"Get the status of a task by ID (Deprecated).\n\n    This endpoint is deprecated and will be removed in a future version.\n    \"\"\"\n    raise HTTPException(\n        status_code=status.HTTP_400_BAD_REQUEST,\n        detail=\"The /task endpoint is deprecated and will be removed in a future version. Please use /run instead.\",\n    )\n\n\n@router.post(\n    \"/upload/{flow_id}\",\n    status_code=HTTPStatus.CREATED,\n    deprecated=True,\n    include_in_schema=False,\n)\nasync def create_upload_file(\n    file: UploadFile,\n    flow: Annotated[Flow, Depends(get_flow)],\n    current_user: CurrentActiveUser,\n    settings_service: Annotated[SettingsService, Depends(get_settings_service)],\n) -> UploadFileResponse:\n    \"\"\"Upload a file for a specific flow (Deprecated).","sourceCodeStart":1248,"sourceCodeEnd":1284,"githubUrl":"https://github.com/langflow-ai/langflow/blob/976ec789d2886a86de109c044d089d68e96c9a35/src/backend/base/langflow/api/v1/endpoints.py#L1248-L1284","documentation":"Error \"The /task endpoint is deprecated and will be removed in a future version. Please use /run instead.\" thrown in langflow-ai/langflow.","triggerScenarios":"Occurs when a client calls the deprecated /task endpoint instead of /run; returned as a deprecation warning/error.","commonSituations":"See trigger scenarios.","solutions":["Migrate the client to call /run instead of /task."],"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"}