Create a Magic Link Challenge

POST {{cryptr_service_url}}/api/v2/magic-link-challenge?org_domain=cpromo&user_email=elise@cpromo.com&redirect_uri=http://localhost:8000

Create a Magic Link Challenge to simplify user authentication.

RETURNS

Returns information such as theΒ email_address, the Magic Link, and other information associated with the Challenge created.

Request Params

KeyDatatypeRequiredDescription
org_domainstringThe domain is a string value in lowercase with dashes, generated from the organization’s name.
Please note that org_domain must be provided if you didn't specify an allowed_email_domain when creating your organization, or if several organizations share the same allowed_email_domain.
user_emailstring(Required) The email address associated with the account or the identity of a user used for authentication and information exchange during the sign-in or sign-up process.
Please note that org_domain must be provided if you didn't specify an allowed_email_domain when creating your organization, or if several organizations share the same allowed_email_domain.
redirect_uristring(Required) URL used to redirect the user after an interaction with a service or application.

RESPONSES

status: OK

{"__domain__":"cpromo","__environment__":"sandbox","__type__":"MagicLinkChallenge","code":null,"email_address":"elise@cpromo.com","find_or_create_user":false,"magic_link":"https://staging.cryptr.eu/magic-link/verify/eyJhbGciOiJSUzI1NiIsImlzcyI6Imh0dHBzOi8vc3RhZ2luZy5jcnlwdHIuZXUvdC9jcHJvbW8iLCJraWQiOiJjYjcwMzVmYi05NDVhLTQzYmMtYTZjYS0wZjYzY2QwYjdiYTMiLCJ0eXAiOiJKV1QifQ.eyJhdXRobj8iOmZhbHNlLCJjbGllbnRfaWQiOiIxMjc0MzIyMy0zNDA2LTQ0M2YtYWQ3MC0wZGZlZGQxOTNlMDAiLCJlbWFpbCI6ImVsaXNlQGNwcm9tby5jb20iLCJlbnZpcm9ubWVudCI6InNhbmRib3giLCJleHBpcmVkX2F0IjoxNzIyNzE0NDMyLCJmaW5kX29yX2NyZWF0ZV91c2VyIjpmYWxzZSwib3JnX2RvbWFpbiI6ImNwcm9tbyIsInJlZGlyZWN0X3VyaSI6Imh0dHA6Ly9sb2NhbGhvc3Q6ODAwMCIsInJlcXVlc3RfaWQiOiIxZTA2Mzk3NC05ODljLTRjMjEtODM3Yy1hOGMwYmJlYzgzNWQiLCJ1c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