Skip to main content
Internal documentation for developers. This page covers the Memberships API: team member management, access group assignment, and invitation lifecycle. Not intended for end users.

Route Map


Auth Pattern


Membership Object Schema


Invitation Lifecycle


Access Group Assignment

When updating a member (PATCH /api/memberships/[id]):

Self-Remove Prevention

Members cannot remove themselves. The server checks:

Known Issues / Gotchas

  • Last admin protection: Orgs must always have at least one admin. Attempting to remove the last admin returns 403.
  • Suspended status: Not fully implemented in all flows — treated as active in some legacy code paths. Verify before using suspended status in new features.
  • Permission cache: Permissions are cached in the session. After changing a member’s access group, they must log out and back in for changes to take effect in existing sessions.