Create and Invite a User

POST

Create and invite a user with an email address.

The user will be sent and invite via email, which they will need to accept in order to join paid any paid access group.

Required scope | users:write

Path parameters

site_idstringRequired

Unique identifier for a Site

Request

This endpoint expects an object.
emailstringRequired

Email address of user to send invite to

accessGroupslist of stringsOptional

An array of access group slugs. Access groups are assigned to the user as type admin and the user remains in the group until removed.

Response

Request was successful

idstringOptional

Unique identifier for the User

isEmailVerifiedbooleanOptionalDefaults to false

Shows whether the user has verified their email address

lastUpdateddatetimeOptionalDefaults to 1970-01-01T00:00:00.000Z

The timestamp the user was updated

invitedOndatetimeOptionalDefaults to 1970-01-01T00:00:00.000Z

The timestamp the user was invited

createdOndatetimeOptionalDefaults to 1970-01-01T00:00:00.000Z

The timestamp the user was created

lastLogindatetimeOptionalDefaults to 1970-01-01T00:00:00.000Z

The timestamp the user was logged in

statusenumOptional
Allowed values: invitedverifiedunverified

The status of the user

accessGroupslist of objectsOptional

Access groups the user belongs to

dataobjectOptional

An object containing the User’s basic info and custom fields

Errors