This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Authenticating with the application API key in powershell

Following the documentation, I have a application API key, but when I use it in my script, I get "Authentication required" error.

Invoke-RestMethod -Uri "https://helpdesk.com/helpdesk/WebObjects/Helpdesk.woa/ra/Tickets/1?username=admin&apiKey=j9akl21876djaihKIJJNWsedopvj" -Method GET

I tried it without the username and I get "Authentication failure"

Any help would be greatly appreciated! (API key has been renamed to protect the innocent.)