{"record":{"id":"fcd2c64fee7f7289","repo":"BerriAI/litellm","slug":"malformed-request-no-team-id-passed-in","errorCode":null,"errorMessage":"Malformed request. No team id passed in.","messagePattern":"Malformed request\\. No team id passed in\\.","errorType":"http","errorClass":"HTTPException","httpStatus":422,"severity":"error","filePath":"litellm/proxy/management_endpoints/team_endpoints.py","lineNumber":4132,"sourceCode":"\n    ```\n    curl --location 'http://localhost:4000/team/info?team_id=your_team_id_here' \\\n    --header 'Authorization: Bearer your_api_key_here'\n    ```\n    \"\"\"\n    from litellm.proxy._types import TeamInfoResponseObjectTeamTable\n    from litellm.proxy.proxy_server import prisma_client\n\n    try:\n        if prisma_client is None:\n            raise HTTPException(\n                status_code=status.HTTP_500_INTERNAL_SERVER_ERROR,\n                detail={\n                    \"error\": \"Database not connected. Connect a database to your proxy - https://docs.litellm.ai/docs/simple_proxy#managing-auth---virtual-keys\"\n                },\n            )\n        if team_id is None:\n            raise HTTPException(\n                status_code=status.HTTP_422_UNPROCESSABLE_ENTITY,\n                detail={\"message\": \"Malformed request. No team id passed in.\"},\n            )\n\n        try:\n            team_info: BaseModel | None = await _team_db(prisma_client).find_unique(\n                where={\"team_id\": team_id},\n                include={\"litellm_model_table\": True, \"object_permission\": True},\n            )\n            if team_info is None:\n                raise Exception\n        except Exception:\n            raise HTTPException(\n                status_code=status.HTTP_404_NOT_FOUND,\n                detail={\"message\": f\"Team not found, passed team id: {team_id}.\"},\n            )\n        await validate_membership(\n            user_api_key_dict=user_api_key_dict,","sourceCodeStart":4114,"sourceCodeEnd":4150,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/management_endpoints/team_endpoints.py#L4114-L4150","documentation":"Error \"Malformed request. No team id passed in.\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/proxy/management_endpoints/team_endpoints.py:4132 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Include the team id in the request (path or body) as required by the endpoint."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}