API key for authentication. Empty, together with tokenProvider, is the advanced opt-out of API key authentication.
OptionalbaseExplicit base URL override for the management API, or undefined to use the default.
OptionalfetchCustom fetch implementation. Defaults to globalThis.fetch.
Optionalinit: RequestInitOptionalinit: RequestInitOptionalheadersAdditional headers to send on every request.
OptionalnodeWhether to send requests on Node through the optional undici package.
With undici, requests use HTTP/2 with flow control windows sized for large downloads. Without it, they use Node's own fetch: HTTP/1.1 before Node 26, and from Node 26 on, HTTP/2 with small windows that slow large downloads. Supported undici versions are 7.19.0 and newer 7.x, plus 8.x on Node 26 and newer. Other versions count as not installed.
When unset, undici is used if a supported version is installed and the
app has not set its own global dispatcher, such as a proxy. A plain undici
Agent set as the global dispatcher cannot be told apart from the one
undici installs itself, so an app that customizes one should pass false
or its own fetch to keep it in charge. The app's own fetch is left
unchanged. true requires undici and fails requests with an
error saying why it cannot be used. false never loads it. Has no effect
outside Node, or when fetch is supplied.
OptionalretriesRetry budgets for transient failures.
OptionalteamTeam to act in. Unset uses the caller's only team, and is an error for callers in more than one team.
OptionaltokenReturns the bearer token for each request, instead of one derived from the API key, which must then be empty.
Options for SandboxClient.