Teams & Organizations

Companies Block

Build B2B applications with multi-tenant architecture, team management, role-based permissions, and organization-level features. Complete teams infrastructure via REST API.

Unlimited
Organizations
Custom
Roles & Permissions
Full
Data Isolation
SSO
Ready

Complete B2B Infrastructure

Everything you need to build enterprise-ready SaaS applications with team collaboration and organization management.

Organization Management

Create and manage organizations with custom profiles, branding, and settings. Support unlimited companies per application.

Team Memberships

Add members to organizations with flexible team structures. Support for departments, groups, and hierarchies.

Role-Based Permissions

Define custom roles with granular permissions. Control access at organization, team, and resource levels.

Invitations & Onboarding

Invite users via email with customizable invitation flows. Support for domain-based auto-join and SSO.

Multi-Tenancy

Complete data isolation between organizations. Shared infrastructure with tenant-aware queries and APIs.

Billing & Subscriptions

Per-organization billing and subscription management. Usage tracking, invoicing, and payment integration.

Simple, Powerful API

Build complete B2B features with just a few API calls. Create organizations, invite members, manage permissions, and handle multi-tenancy.

Tenant-Aware Queries

Automatic data scoping to current organization

Flexible Hierarchies

Support for nested teams and departments

Enterprise SSO

SAML and OIDC integration per organization

api-example.ts
// Create an organization
const org = await client.companies.create({
  name: 'Acme Corporation',
  slug: 'acme',
  ownerId: user.id,
  settings: {
    allowDomainJoin: true,
    verifiedDomains: ['acme.com']
  }
});

// Invite team members
await client.companies.inviteMembers(org.id, {
  emails: ['alice@acme.com', 'bob@acme.com'],
  role: 'member',
  teamId: 'engineering'
});

// Create custom role
await client.companies.createRole(org.id, {
  name: 'Project Manager',
  permissions: [
    'projects:read',
    'projects:write',
    'members:invite'
  ]
});

Built for B2B Applications

From SaaS platforms to marketplaces, the Companies Block powers enterprise-grade team features at scale.

B2B SaaS Platforms

Build enterprise software with workspace isolation, team collaboration, and organization-level administration.

SaaSEnterpriseProductivity

Marketplace Platforms

Create multi-vendor marketplaces with seller accounts, storefronts, and team-based management.

E-CommerceMarketplacesPlatforms

Agency & Client Management

Manage multiple client accounts with separate access, branding, and team structures.

AgenciesConsultingServices

How It Works

Add B2B features to your app in three simple steps

1

Create Organizations

Set up organization accounts with custom branding, settings, and verified domains.

2

Invite Members

Add team members via email invitations, SSO, or domain-based auto-join.

3

Manage Access

Define roles and permissions to control what each member can see and do.

Ready to Build B2B Features?

Start building your enterprise application today with the Companies Block. Free tier available.

Stay in the loop

Get product updates, engineering posts, and new block announcements delivered to your inbox.

No spam. Unsubscribe anytime. Privacy policy.