{"record":{"id":"6c2969dde1d49980","repo":"langchain-ai/langgraph","slug":"langsmith-deployment-is-not-enabled-for-this-organ","errorCode":null,"errorMessage":"LangSmith Deployment is not enabled for this organization. Enable it at {smith_base}/host/deployments (ensure this matches the organization for your API key).","messagePattern":"LangSmith Deployment is not enabled for this organization\\. Enable it at (.+?)/host/deployments \\(ensure this matches the organization for your API key\\)\\.","errorType":"http","errorClass":"HostBackendError","httpStatus":403,"severity":"error","filePath":"libs/cli/langgraph_cli/deploy.py","lineNumber":1308,"sourceCode":"                    raise click.ClickException(\n                        \"API key is org-scoped and requires a workspace ID. \"\n                        \"Set LANGSMITH_TENANT_ID in your .env file or \"\n                        \"use a workspace-scoped API key.\"\n                    ) from None\n                click.secho(\n                    \"Your API key is org-scoped and requires a workspace ID.\",\n                    fg=\"yellow\",\n                )\n                click.secho(\n                    \"Find your workspace ID in LangSmith under Settings > Workspaces.\",\n                    fg=\"yellow\",\n                )\n                client._client.headers[\"X-Tenant-ID\"] = click.prompt(\"Workspace ID\")\n                prompted_for_tenant = True\n                continue\n            if err.status_code == 403 and \"not enabled\" in err.message.lower():\n                smith_base = _smith_dashboard_base_url(client._base_url)\n                raise HostBackendError(\n                    \"LangSmith Deployment is not enabled for this organization. \"\n                    f\"Enable it at {smith_base}/host/deployments\"\n                    \" (ensure this matches the organization for your API key).\",\n                    status_code=403,\n                ) from None\n            raise\n\n\n# ---------------------------------------------------------------------------\n# Click options shared by deploy commands\n# ---------------------------------------------------------------------------\n\nOPT_HOST_API_KEY = click.option(\n    \"--api-key\",\n    envvar=\"LANGGRAPH_HOST_API_KEY\",\n    help=(\n        \"API key. Can also be set via LANGGRAPH_HOST_API_KEY, \"\n        \"LANGSMITH_API_KEY, or LANGCHAIN_API_KEY environment variable or .env file.\"","sourceCodeStart":1290,"sourceCodeEnd":1326,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/cli/langgraph_cli/deploy.py#L1290-L1326","documentation":"Error \"LangSmith Deployment is not enabled for this organization. Enable it at {smith_base}/host/deployments (ensure this matches the organization for your API key).\" thrown in langchain-ai/langgraph.","triggerScenarios":"Thrown at libs/cli/langgraph_cli/deploy.py:1308 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"38031739e551638e373fb553453256c23feeb41f","analyzedAt":"2026-08-26T18:02:49.312Z","schemaVersion":2},"datasetVersion":"2026-08-26T21:11:00.512Z"}