POST
/v1/mgmt/tests/generate/enchantedlink

Authorization

AuthorizationRequiredBearer <token>

< Project ID >:< Management Key > as bearer

In: header

Request Body

application/jsonRequired
loginIdstring
redirectUrlstring
loginOptionsobject
curl -X POST "https://api.descope.com/v1/mgmt/tests/generate/enchantedlink" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "loginId": "string",
    "redirectUrl": "string",
    "loginOptions": {
      "stepup": false,
      "customClaims": {},
      "mfa": false,
      "ssoAppId": "string",
      "templateOptions": {
        "property1": "string",
        "property2": "string"
      },
      "locale": "string",
      "pkceChallenge": "string",
      "revokeOtherSessions": true
    }
  }'

OK

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

Was this helpful?