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
JavaScriptlangsmithsandboxSandboxClientserviceUrl
Method●Since v0.14

serviceUrl

Generate an authenticated URL for an HTTP service running in a sandbox.

Without access, mints a short-lived token and returns a ServiceUrl that refreshes it as it nears expiry. With access set to "restricted" or "workspace" the URL is gated by LangSmith login instead and a ServiceLoginUrl is returned: no token, no expiry, browser only.

A login grant is durable, so token mode is refused with 409 while one is in place, and expiresInSeconds does not apply to the login modes.

Copy
serviceUrl(name: string, options: __type): Promise<ServiceUrl | ServiceLoginUrl>

Parameters

NameTypeDescription
name*string
options*__type
View source on GitHub