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:[my key goes here]

But when making a different request, such as:[my key goes here]

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

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.