Skip to main content
POST
Add a member to an organization

Authorizations

better-auth.session_token
string
cookie
required

Session cookie set by auth.api.signInEmail (or the OAuth flow). Forwarded automatically by the browser; copy via document.cookie for server-to-server calls during development.

Path Parameters

orgId
string
required

Body

application/json
userId
string
required
Example:

"user_abc123"

role
enum<string>
required
Available options:
owner,
admin,
member
Example:

"member"

Response

201 - undefined