TypeScript SDK
Server-side Management API client for Node.js and TypeScript.
The @wocha/sdk package is the TypeScript client for the Wocha Customer (Management) API. Use it in backend services, scripts, and serverless functions.
Installation
pnpm add @wocha/sdkOr scaffold with the CLI
npx @wocha/cli init --framework nextjsQuick start
Configuration
Use tenant for Wocha Cloud — the SDK resolves the API base URL automatically:
Use baseUrl for self-hosted deployments:
Pass a management API key (wocha_mgmt_...) or an OAuth 2.0 access token with the required scopes.
Try it
Loading playground…
Resources
The client exposes typed resources including:
users— create, list, update, delete identitiesorganisations— org membership and hierarchyapplications— OAuth client managementwebhooks— register endpoints and event subscriptionsconnections— social and enterprise SSOpermissions— SpiceDB relationship checks
Learn more
- API reference — full OpenAPI explorer
- Webhooks overview