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 "" -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