FeaturesPricingAboutArticlesDocumentation
    Developers

    API, SDK, MCP, and webhooks.

    Developer PlatformQuickstartAuthenticationAPI ReferenceSDKMCPWebhooksErrorsPaginationRate LimitsIdempotencyChangelogMigration and Versioning Policy
    Raw API docsOpenAPI YAMLAsyncAPI YAML
    1. Home
    2. /
    3. Developers
    4. /
    5. SDK

    SDK

    The official TypeScript SDK is generated and tested against the public OpenAPI contract.

    Install

    npm install @fabhub/sdk
    

    Authentication

    Pass an API key or OAuth access-token provider when constructing the client.

    import { FabHubClient } from '@fabhub/sdk';
    
    export const fabhub = new FabHubClient({
      apiKey: process.env.FABHUB_API_KEY,
    });
    

    Built-in behavior

    • Typed request and response models from the public contract.
    • Typed FabHubApiError for non-2xx responses.
    • Pagination helpers and examples for list endpoints.
    • Idempotency-key support on write calls.
    • Webhook signature verification helper.

    Drift protection

    The SDK operation mapping is checked against OpenAPI so public SDK methods cannot silently drift from public routes or point at internal surfaces.

    HomeFeaturesPricingAboutArticlesDocumentationDevelopers
    © FabHubPrivacyTerms