POST
/v1/mgmt/tests/generate/magiclink

Authorization

Descope Project ID and Management Key
AuthorizationBearer <token>

Project ID:Management Key as bearer token.

In: header

Request Body

application/json

loginId?string
deliveryMethod?string
redirectUrl?string
loginOptions?object

Generate a Magic Link for a test user.

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

curl -X POST "https://api.descope.com/v1/mgmt/tests/generate/magiclink" \  -H "Content-Type: application/json" \  -d '{}'
{  "loginId": "string",  "link": "string"}
export interface Response {loginId?: stringlink?: string}
Was this helpful?