cancel
Showing results for 
Search instead for 
Did you mean: 
mmurrell
New Contributor

LastPass Enterprise API erroring when making request from AWS Lambda

Has anyone else encountered this? I am trying to make a POST request to the API endpoint - 

https://lastpass.com/enterpriseapi.php - and have structured my post so that it follows the guidelines in the documentation here. When I make the POST request using Postman, I get data back as expected, but when I make the same POST programmatically from AWS Lambda I get the following error:
Screen Shot 2021-10-11 at 12.00.48 PM.png

 

Any idea what's going on here?

 

Request headers:
{
'Content-Type': 'application/json'
}

 

Request body:

{

'cid': '<our customer id>',
'provhash': '<super secret provisioning hash>'
'cmd':'reporting',
'data': {
'from':time.strftime('%Y-%m-%d %H:%M:%S', time.gmtime(startTime)),
'to':time.strftime('%Y-%m-%d %H:%M:%S', time.gmtime(currentTime))
}

}

 

Request URL:

https://lastpass.com/enterpriseapi.php

1 REPLY 1
RachelO
LogMeIn Contributor

Re: LastPass Enterprise API erroring when making request from AWS Lambda

Hi @

 

If you've followed the guidelines in the Enterprise AP documentation and it's not working as expected, we would recommend reaching out the LastPass Enterprise support team for assistance. You can access the support phone number through your LastPass Admin Console > Support or if you can't access the admin console you can request a callback by scrolling down and clicking "Contact Support" on this page and entering your business account info and you should then be given the option to receive a callback usually within less than 5 minutes: https://support.logmeininc.com/lastpass/help/how-do-i-contact-customer-support-for-lastpass-lp010121




RachelO is a member of the LogMeIn Community Care Team.

Was your question answered? Please mark it as an Accepted Solution.
Was a post helpful or informative? Give it a Kudos!