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.)

Parents Reply Children
No Data