Email Customers on New Device Logins

Send your customers an email when they log in on a new device, so they can spot an account takeover early. Here is how to set it up.

announcements
Email Customers on New Device Logins

A brand new feature has landed in Loginllama!

You can now send emails to customers when they login on a new browser or device.

This is as simple as a single click. And don’t worry, we don’t store or log the email addresses you send us.

This feature is activated by default for new accounts. For existing accounts, simply login, go to settings on the left and start customising your emails! You have complete control over the subject, sender, and body text.

But how do you get emails to send to customer?

Simply send along the email_address parameter and you’re away. Then any time loginllama detects a customer logging in from a new browser, or device, we will email them. Please note: because we do not store the email address then it needs to be sent with each request.

curl \
 -X POST https://loginllama.app/api/v1/login/check \
 -H "X-API-KEY: $API_KEY" \
 -H "Content-Type: application/json" \
 -d '{
    "ip_address":"203.0.113.1",
    "user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36",
    "identity_key":"user_1234",
    "email_address":"[email protected]"
  }'

To use this using the LoginLlama client SDK's, you will need to update them via your package manager.

We hope this makes it even easier to integrate with Loginllama! New features for email customisation are coming soon!