TheDocumentation Index
Fetch the complete documentation index at: https://docs.vibefollow.com/llms.txt
Use this file to discover all available pages before exploring further.
VibeFollow class is the SDK’s single entry point. Construct it once per process with your API key; reuse it across requests.
Signature
VibeFollowOptions object. Only apiKey is required; the rest have sensible defaults.
Options
Your Vibefollow API key. Prefix
sk_live_ for production, sk_test_ for the sandbox (when available). Must be kept server-side — the browser is not a supported runtime.Override the API base URL. Useful for self-hosted deployments or pointing at a local mock during tests. Trailing slashes are stripped automatically.
Per-request timeout in milliseconds. Implemented with
AbortController — the SDK throws NetworkError when the timeout fires.Maximum number of retry attempts on transient failures (
NetworkError, ServerError, RateLimitError). The total request count is maxRetries + 1. Set to 0 to disable retries entirely.Inject a custom
fetch implementation. Useful in tests (pass a mock) or on edge runtimes that expose fetch under a different global.Resources
After construction the instance exposes three readonly resource APIs:vf.users
UsersAPI — identify users; emit lifecycle events.vf.events
EventsAPI — track custom events; create batches.vf.webhooks
Webhooks — verify signed webhook deliveries.users and events for the per-method reference.
Headers the SDK sets
Every outgoing request includes:| Header | Value |
|---|---|
Authorization | Bearer <apiKey> |
Content-Type | application/json |
User-Agent | vibefollow-sdk/<SDK_VERSION> |
Idempotency-Key | <auto-generated v4 UUID> |
The
User-Agent lets the backend identify and warn on outdated client versions. SDK_VERSION is exported from the package if you need it elsewhere.Lifecycle
The client is stateless — you can construct it on every request if you want, and there’s noclose() method. Keep one instance per process if you prefer the conventional pattern.
Deprecated alias
AIFollowups is exported as a deprecated alias for VibeFollow to ease the @ai-revenue-manager/sdk → @vibefollow/sdk rename. It will be removed in v2.0.0.