Skip to main content

Create and get the Magic Link for a user

PUT 

/api/web/v1/users/:userid/magiclink

Create and get the Magic Link for the specified user. Caller requires the MAGICLINKS:ADD permission.

Request

Path Parameters

    userid stringrequired

Body

required

    autoSend boolean

    Automatically send the Magic Link if the user has a default email or one is specified that matches a configured email.

    email string

    The email to send the Magic Link to if it exists.

    redirectUrl string

    Automatically redirect the user to an external URL after completing registration. The URL must match one of the allowed URLs.

Responses

Successful

Schema

    expiryDate date-time

    Expiry date of the Magic Link.

    url string

    The generated Magic Link. This value will only be returned if the administrator has the MAGICLINKCONTENTS:VIEW permission.

Loading...