Skip to main content

Requirements

  • Node.js 18+ (uses global fetch)
  • A personal API key (sl_api_…) or OAuth access token (sl_oat_…) from Settings → API

Install

The package lives in the Sayless monorepo at app-mlp/packages/sdk and is generated from the gateway OpenAPI contract.

Authenticate

Never commit keys. Prefer environment variables in CI and local .env files that stay gitignored. The key does not include a workspace id. Read the caller, then reuse workspaceId on later calls:

Next