Start Building

LastPass Developer Documentation

Show/hide navigation

Authentication API

Authentication API is used to authenticate users through LastPass MFA application. Here you can find sample codes for different platforms to consume the LastPass authentication API.


Before using the authentication API you must set up the file with the appropriate key values.

  • Open the file with a text editor. This file is located under AuthAPI/java-auth/src/main/resources/ for java samples, AuthAPI/python-auth/ for python, and AuthAPI/nodejs-auth/ for NodeJS samples.
  • Go to Get Started > Instructions menu here and copy the LastPass Login key value.
  • Next, set the property lastpass_login_key in your file.

How to consume authentication API?

The LastPass authentication API has the following base URL

Authentication Methods


Authenticates a user with LastPass.

After sending the request, a push notification will appear in the user’s smartphone. Once the user is authenticated you’ll receive a JSON object as response:


    Copyright@2020LogMeIn, Inc. All Rights Reserved