/login

We can use the HTTP GET method together with the login resource to get information about the user that is logged in to the REST API. We can use the HTTP POST method to log in a user and get an LTPA token. We can use the HTTP DELETE method to log out a user and end the session.

  • POST
    Use the HTTP POST method with the login resource to log in a user and start a token-based authentication session for the REST API. An LTPA token is returned for the user to authenticate further REST requests.
  • GET
    Use the HTTP GET method with the login resource to request information about the user that is authenticated with the REST API.
  • DELETE
    Use the HTTP DELETE method with the login resource to log out a user and end a token-based authentication session for the REST API.

Parent topic: REST API resources