@passband/sdk - v0.0.0
    Preparing search index...

    Class Passband

    Typed client for the Passband /api/v1 REST API.

    const pb = new Passband({ token: 'sf_...' })
    const { drafts } = await pb.drafts.list({ status: 'pending_review' })

    Configuration is resolved from constructor args, then environment variables: PASSBAND_TOKEN and PASSBAND_BASE_URL (default https://passband.ai).

    Constructing without a token is allowed, but the first request throws a PassbandAuthError.

    Index

    Constructors

    Properties

    engagement: EngagementResource
    experiments: ExperimentsResource
    http: HttpClient

    Underlying HTTP client (config, transport, retry).

    Accessors

    • get baseUrl(): string

      Resolved base URL (without trailing slash).

      Returns string