API Call via Powershell

Originally asked by a community member in the Litmos Community forum on 11 September 2025.

I've created a simple PowerShell script to get user information however I get an error message saying,

"Invoke-RestMethod: Litmos API - Request Error Litmos API Access Denied The API key that you have used for this request is either not valid or your account is not enabled for API access."

I've validated that the API key is correct. I'm wondering how Limos is validating the context of the call (using the API key and/or based on the user ID that is running the code)?


  • Litmos Community Team (Litmos Team)

    Reply from the Litmos team, 12 September 2025

    Hi Tony

    Customer Support has suggested that you try accessing the API via Postman to check if the issue is with the PowerShell script or what you are passing through.

    Another tip is to ensure you are accessing the correct API region (e.g. if you are on the AU region, you should be connecting to api.litmos.com.au">api.litmos.com.au - if you try to connect to api.litmos.com it will return an error).

    If all else fails, we recommend you create a support ticket.

    I hope this helps 🙂

    Sarah

    Expand Post