POST
/v1/mgmt/tests/generate/magiclink

This endpoint is used to generate a Magic Link for a test user. You can define whether this is sent via email or sms.

Once you generate the Magic Link Token must be verified via verify token

See Also

Endpoint Authentication

Use authorization bearer header with the following format:

Authorization: Bearer \<ProjectId:ManagementKey\>

Try it

/v1/mgmt/tests/generate/magiclink

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

< Project ID >:< Management Key > as bearer

In: header

Request Body

loginIdstring

deliveryMethodstring

redirectUrlstring

loginOptionsobject

Status codeDescription
200OK
curl -X POST "https://api.descope.com/v1/mgmt/tests/generate/magiclink" \
  -d '{
  "loginId": "string",
  "deliveryMethod": "string",
  "redirectUrl": "string",
  "loginOptions": {
    "stepup": false,
    "customClaims": {},
    "mfa": false,
    "ssoAppId": "string",
    "templateOptions": {
      "property1": "string",
      "property2": "string"
    },
    "locale": "string",
    "pkceChallenge": "string"
  }
}'

{
  "loginId": "string",
  "link": "string"
}

Was this helpful?