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
JavaScriptlangsmithsandboxServiceUrl
Class●Since v0.14

ServiceUrl

Service URL carrying a short-lived token, refreshed as it nears expiry.

Accessors are async because a refresh is a network call.

Copy
class ServiceUrl

Constructors

constructor
constructor→ ServiceUrl

Methods

method
browserUrl→ Promise<string>

The browser URL that authenticates then redirects, refreshed if near expiry.

method
expiresAt→ Promise<string>

ISO 8601 expiry of the current token, refreshed if near expiry.

method
fetch→ Promise<Response>

Fetch a path on the service with the token header injected.

method
serviceUrl→ Promise<string>

The service base URL, refreshed if near expiry.

method
token→ Promise<string>

The signed token, refreshed if near expiry.

View source on GitHub