Skip to content

TypeScript SDK

Install the @formbricks/hub client with npm:

Terminal window
npm install @formbricks/hub

The client supports Node.js 22 or later and browser runtimes. Set baseUrl to the origin of your Hub deployment and pass an API key:

import { createHubClient, listFeedbackRecords } from "@formbricks/hub";
const client = createHubClient({
apiKey: process.env.HUB_API_KEY!,
baseUrl: "https://your-hub.example.com",
});
const { data, error } = await listFeedbackRecords({
client,
query: { tenant_id: "your-tenant-id", limit: 50 },
});

See the SDK README for retries, timeouts, and response handling. The API reference describes the available operations.