Create a membership
Ensures an active membership for the given email will be provisioned.
- If the user already exists, they will be added to the requestor's organization.
- If it doesn't exist, a new user will be provisioned.
This request requires "Manage Organization" permissions.
As a security precaution, this operation requires the organization to have the
"Restrict new users to emails from these domains" setting enabled, and the new
member's email address must belong to one of its verified domains.
Authentication
AuthorizationBasic
Use your API key as the username and leave the password empty.
OR
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
email
role_id
One of superuser, user, or restricteduser for the corresponding predefined role, or the ID of a custom Role. The role must not grant the manage_organization permission.
Response
Successful response
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error