Typed client for the Passband /api/v1 REST API.
/api/v1
const pb = new Passband({ token: 'sf_...' })const { drafts } = await pb.drafts.list({ status: 'pending_review' }) Copy
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).
PASSBAND_TOKEN
PASSBAND_BASE_URL
https://passband.ai
Constructing without a token is allowed, but the first request throws a PassbandAuthError.
Readonly
Underlying HTTP client (config, transport, retry).
Resolved base URL (without trailing slash).
Typed client for the Passband
/api/v1REST API.Configuration is resolved from constructor args, then environment variables:
PASSBAND_TOKENandPASSBAND_BASE_URL(defaulthttps://passband.ai).Constructing without a token is allowed, but the first request throws a PassbandAuthError.