Quickstart
1. Create credentials
In the app, open Settings -> Integrations -> API and create a tenant API key with the smallest scope set your integration needs.
Store the full secret immediately. It is shown once and should live only in your server-side secret manager or deployment environment.
2. Call the API
curl https://api.fabhub.app/v1 \
-H "X-API-Key: $FABHUB_API_KEY"
Use GET /v1/auth/context to confirm which scopes, plan gates, and rate-limit tier the credential has.
3. Use the SDK
Install the official TypeScript SDK:
npm install @fabhub/sdk
import { FabHubClient } from '@fabhub/sdk';
const fabhub = new FabHubClient({
apiKey: process.env.FABHUB_API_KEY,
});
const capabilities = await fabhub.getCapabilities();
const { data: organization } = await fabhub.getOrganization();
4. Add webhooks or MCP
Use webhooks for outbound events and MCP for AI-agent workflows that need a curated, scoped tool surface.