Skip to main content
Once your data plane is active, all API traffic for its workspaces goes to the data plane endpoint rather than to the LangSmith Cloud backend. This page explains how to route requests to the right service. The LangSmith UI handles this automatically: it routes to the correct data plane based on the workspace you have selected. The guidance below applies to your own client applications and direct API calls.

Organizations, data planes, and workspaces

A BYOC deployment has three levels:
  • Organization: The top level. Users, roles, billing, SSO configuration, and API keys belong to the organization and live in the control plane.
  • Data plane: Belongs to an organization and represents physical separation of data. An organization can have several data planes, each in its own AWS account and region.
  • Workspace: Belongs to exactly one data plane, which you select when you create the workspace. Traces, datasets, experiments, and other application data live in a workspace, the same as on Cloud or self-hosted.
Nesting diagram of a BYOC deployment. An organization contains two data planes, each labeled as physical separation. The first is in us-east-1 and holds three workspaces named Production, Staging, and Dev. The second is in eu-west-1 and holds two workspaces named Production and Dev. Every workspace is labeled as logical separation within its data plane. Use data planes for physical separation of data, and workspaces for logical separation within a data plane. Common combinations are:

Find your data plane endpoint

Each data plane has a base URL. Navigate to Settings > Data Planes to see each of your data planes, its state, and its API URL.
Data planes are provisioned with a private endpoint by default, so you need private connectivity to reach the base URL, such as Tailscale, AWS PrivateLink, or VPC peering.

Trace to a data plane

To send traces to a workspace that lives in your data plane, point the LangSmith SDK at the data plane endpoint and authenticate with an API key scoped to a workspace in that data plane:
Create LANGSMITH_API_KEY from a workspace inside the target data plane. Traces are tenant-scoped, so an API key from a workspace on a different data plane, including a Cloud workspace, is rejected.
For a complete, runnable example, follow the Observability quickstart and substitute the environment variables above.

Route API requests

The base URL routes to different services depending on the path prefix:

Trace to multiple endpoints

Use these patterns to trace to both Cloud and a data plane, or to multiple data planes.

Dual write to two endpoints

Set LANGSMITH_RUNS_ENDPOINTS to write to multiple endpoints:

Choose the destination in application logic

To decide where to trace at runtime, create a client per endpoint and select between them:

See also