Why it says hapikey does not exist when trying to make the API call request ?
Hello,
I am trying to implement the contact creation API using a html form to capture leads. I have created the API key by creating the private app in my hubspot account. But when i am using that particular API key to make the request API call it says api key does not exist.
Why it says hapikey does not exist when trying to make the API call request ?
Hey, @EMCC👋 If you've already made the switch to Private Apps, which it sounds like you did, then you'll need to include your private app key in your header and not in the request URL.
Why it says hapikey does not exist when trying to make the API call request ?
The API key method for authentication is being sunset at the end of November and new development really should take place using private apps and a token. In that case you'll use your private app token in an Authorization header. I know this doesn't answer your question, but if you are working on new items you'll have to change it very soon. I don't know how much support you'll get using the depreciated method.
I can't tell if the error is saying the key is "invalid" i.e. THIS hapikey doesn't exist or if it can't find it in the request. I'd verify you are using the correct key.
Why it says hapikey does not exist when trying to make the API call request ?
Hey, @LeeBartelme I think this error is telling us that they put the private app key in the request URL, like you do for an API key, instead of including it in the request header.
Thanks for taking the time to help @EMCC🙌 I appreciate you!