SDK
SDK: organizations
startupCore.organizations module.
Installation
pnpm add @startupcore/api-client @startupcore/contracts
Module: startupCore.organizations
.listMembers, .updateMemberRole, .listInvitations, .createInvitation, .revokeInvitation, .getInvitationByToken, .acceptInvitation
Browser (BFF)
import startupCore from '@startupcore/api-client' — requests go to same-origin /api BFF.
Server-side
import startupCore from '@startupcore/api-client'; const token = await getServerToken(); await startupCore.*(tenantId, ..., token);
Error handling
import { ApiError } from '@startupcore/api-client'; if (e.code === 'FEATURE_NOT_ENTITLED') { ... }