Authorization
Descope Project ID and Management Key Project ID:Management Key as bearer token.
In: header
Request Body
application/json
Custom claims to include in the JWT as key-value pairs. Keys must be strings; values can be strings, numbers, or booleans.
{
"claim-name": "claim-value"
}int32Generate an embedded link for an existing user
Initiate a sign-in process by generating an embdedded link for an existing user utilizing a management key.
The endpoint will return a token which can then be verified using the Magic Link Verify Token endpoint.
Next Steps
Verify the embedded link token using the Verify Token endpoint.
See Also
- See Embedded link Authentication for details about implementing embedded links.
- See The User Object for further details on how to identify users and their contact information such as email addresses and phone number.
curl -X POST "https://api.descope.com/v1/mgmt/user/signin/embeddedlink" \ -H "Content-Type: application/json" \ -d '{}'{ "token": "string", "maskedEmail": "string", "maskedPhone": "string"}export interface Response {token?: stringmaskedEmail?: stringmaskedPhone?: string}Verify Token POST
### Verify the magic link token from the end user Verify that the magic link token in the URL clicked by the end user matches and has not expired. This endpoint completes the magic link flow for: * sign up * [Sign-Up via email](/api/magic-link/email/sign-up) * [Sign-Up via SMS](/api/magic-link/sms/sign-up) * sign-in * [Sign-In via email](/api/magic-link/email/sign-in) * [Sign-In via SMS](/api/magic-link/sms/sign-in) * sign-in with auto sign-up * [Sign-In with Auto Sign-up via email](/api/magic-link/email/sign-in-auto-sign-up) * [Sign-In with Auto Sign-up via SMS](/api/magic-link/sms/sign-in-auto-sign-up) * update data * [update email](/api/magic-link/email/sign-up) * [update phone number](/api/magic-link/email/sign-up) ### Next Steps The response object will contain the user's details including the session and refresh JWTs. ### See Also - See [Magic link Authentication](/auth-methods/magic-link/with-sdks/client#introduction) for details about implementing magic links. - See [The User Object](/api/overview#the-user-object) for further details on how to identify users and their contact information such as email addresses and phone number.
Enchanted Link Authentication API Overview
Use the Descope REST API to build enchanted link authentication for your application.