Sonny Labs Docs
SDK ReferenceTypeScript

SonnyLabsClientOptions

Constructor options bag for SonnyLabsClient — apiKey, baseUrl, apiVersion, timeoutMs, maxRetries, and the fetch / userAgent overrides.

SonnyLabsClientOptions is the constructor argument for SonnyLabsClient. Only apiKey is required; everything else has a sensible default chosen for the SaaS endpoint.

import { SonnyLabsClient } from "@sonnylabs/sdk";

const client = new SonnyLabsClient({
  apiKey: process.env.SONNY_API_KEY!,
  baseUrl: "https://sonny.internal.example.com", // self-hosted
  maxRetries: 5,
  timeoutMs: 30_000,
});

Fields

Prop

Type

On this page