Skip to main content

Forums / Support / Halo API Support

Issue setting Halo API Key in GET URL

OP ClandestineWasp

I am trying to make a Get request with javascript. This works:

https://www.haloapi.com/profile/h5/profiles/ClandestineWasp/appearance?key=[my key goes here]

But when making a different request, such as:

https://www.haloapi.com/stats/h5/companies/3af64b40-a0ec-49a7-901e-02d85fd57c91?key=[my key goes here]

I get a 401, missing key error. (Yes, I know that that is not a valid ID). Why is this?
Hello!

I'm surprised that the "?key={my key}" approach works at all.

The properly supported way to specify your developer key is by setting the "Ocp-Apim-Subscription-Key", as stated in the documentation.

Please let us know if you have additional questions.

Thanks!