MySkoolDocs
Esc

Agents & tools

SDK

@skoolapi/sdk: isomorphic, zero-dependency, fetch-based client.

Coming soon

The SDK ships in Phase 3. Until then, call the REST API directly or use the CLI.

Usage#

@skoolapi/sdk is isomorphic, zero-dep and fetch-based. Typed errors mirror the envelope; iterate() auto-paginates.

TypeScript
import { SkoolClient } from "@skoolapi/sdk";
 
const skool = new SkoolClient({ apiKey: process.env.SKOOL_API_KEY });
 
const { data } = await skool.posts.list(groupId);
for await (const post of skool.posts.iterate(groupId)) {
  // typed errors mirror the envelope's error.code
}

MySkool is not affiliated with Skool. Skool™ is a trademark of Skool, Inc.