Organizations

Create a pending invitation and send email. Counts accepted invitations per user (INVITE_RATE_LIMIT_MAX, default 10/hour). Authorization, invalid or duplicate requests, and rejected inserts do not consume quota. Requires org_admin or org_owner. Only org_owner can invite org_admin. Requires an interactive browser session. Project-scoped CLI tokens receive 403.

post/api/organizations/members/invite

Request

  • Base URL
    https://demo.supercheck.dev
  • Auth
    API key in cookie better-auth.session_token

Request body

emailstring email required
role'org_owner' | 'org_admin' | 'project_admin' | 'project_editor' | 'project_viewer' required
selectedProjectsstring[]

Required for project_admin and project_editor. Must be active projects in the current organization.

Response

Invitation created

successboolean

Changes