Skip to main content

Install the SDK

Prerequisites

  • Node.js 18+
  • TypeScript 5+ (recommended)

Installation

npm install @tokenive/sdk

Initialize the Client

import { Tokenive } from '@tokenive/sdk';

const client = new Tokenive({
baseUrl: 'https://your-project.supabase.co/functions/v1',
apiKey: process.env.TOKENIVE_API_KEY, // tok_live_...
});

Configuration Options

OptionTypeRequiredDescription
apiKeystringOne of apiKey or tokenInstitution API key (tok_live_...)
tokenstringOne of apiKey or tokenSupabase JWT for admin UI auth
baseUrlstringNoOverride the API base URL

Verify It Works

const providers = await client.providers.list();
console.log('Available providers:', providers);

If this returns a list of providers, your SDK is configured correctly.

Next Steps