Skip to main content
POST
/
auth
/
loginlink
Login with a magic link
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": {}
}

Code Examples

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);

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Body

application/json
email
string<email>
required

User's email address

Response

Login link sent successfully

success
boolean
Example:

true

message
string
data
object