LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangSmith
  • Client
  • Run Trees
  • Traceable
  • Evaluation
  • Schemas
  • Langchain
  • Jest
  • Vitest
  • Wrappers
  • Anonymizer
  • Jestlike
  • Vercel
  • Anthropic
  • Sandbox
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

LangSmith
ClientRun TreesTraceableEvaluationSchemasLangchainJestVitestWrappersAnonymizerJestlikeVercelAnthropicSandbox
Language
Theme
JavaScriptlangsmith_openapi_clientresourcesrunsRunsgetURL
Method●Since v0.10

getURL

Copy
getURL(
  runID: string,
  query: RunGetURLParams,
  options: RequestOptions
): APIPromise<RunGetURLResponse
View source on GitHub
>

Parameters

NameTypeDescription
runID*string
query*RunGetURLParams
optionsRequestOptions

Example

Returns the URL to view a specific run in the LangSmith UI. The caller must supply the run's project_id and trace_id as query parameters; start_time is optional.

Self-hosted deployments require LangSmith v0.16 or later.

Copy
const response = await client.runs.getURL(
  '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
  { project_id: 'project_id', trace_id: 'trace_id' },
);