Skip to main content
POST
Invite a user to an organization

Authorizations

X-ZeroPath-API-Token-Id
string
header
required
X-ZeroPath-API-Token-Secret
string
header
required

Body

application/json
organizationId
string
required
email
string<email>
required
role
enum<string>

Role granted at acceptance. Defaults to MEMBER. ADMIN requires MEMBER_EDIT permission.

Available options:
ADMIN,
MEMBER

Response

Successful response

WorkOS sends an invitation. Better Auth returns either a local password enrollment code or restored=true for a deactivated member; no email is sent for these outcomes.

success
enum<boolean>
required
Available options:
true
enrollment
any
restored
any