Skip to content

TeachableClient

Defined in: index.ts:20

The root client for interacting with the Teachable API. Instantiating this class automatically sets up all versioned sub-clients.

import { TeachableClient } from './src';
const client = new TeachableClient('your-api-key');
const users = await client.v1.users.getList();

new TeachableClient(apiKey): TeachableClient

Defined in: index.ts:32

Creates a new TeachableClient instance and initialises the v1 sub-client.

string

Your Teachable API key, used to authenticate all requests.

TeachableClient

v1: TeachableV1

Defined in: index.ts:26

Provides access to all Teachable v1 API resources, including users, transactions, and courses.