Skip to main content
POST
Invite member to organization

Authorizations

Authorization
string
header
required

Supabase JWT token in Authorization: Bearer header

Path Parameters

org_id
string
required

Organization identifier (e.g. org-abc12345)

Body

application/json
email
string<email>
required
role
enum<string>
default:member
Available options:
admin,
member,
viewer,
auditor
products
any

Workspace invite (MNE-9737): a list of at most 16 product names (strings). Products the invitee is granted on accept, in every environment the organization holds them. Read only while the organization's org_onboarding_v2 flag is on; otherwise ignored whatever its value, as before. With the flag on, a value that is not such a list is refused with 400, and each name must be an invitable product the organization holds an active grant for, or the request is refused with 400. While the flag is on, inviting an email that already has a pending invitation revokes the old invitation (its link stops working) instead of returning 409.

Response

Invitation created

invitation_id
string
org_id
string
email
string
role
string
token
string

Only returned on creation

status
enum<string>
Available options:
pending,
accepted,
revoked,
expired
invited_by
string
expires_at
string<date-time>
created_at
string<date-time>
products
string[]

Workspace invite only (MNE-9737): the products granted on accept. Absent for a membership-only invitation.