Code Examples
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Body
application/json
User's email address
curl --request POST \
--url https://api.royalti.io/auth/loginlink \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"email": "jsmith@example.com"
}'{
"success": true,
"message": "<string>",
"data": {}
}Request a magic login link to be sent to the user’s email
curl --request POST \
--url https://api.royalti.io/auth/loginlink \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"email": "jsmith@example.com"
}'{
"success": true,
"message": "<string>",
"data": {}
}const response = await fetch('https://api.royalti.io/auth/loginlink', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
"email": "sample-email"
})
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
User's email address