Magento 2 Integration

We have created a Magento 2 module for customer sync to Hubspot. Earlier it was working with an API key. Now it was not working with the private app as HubSpot no longer uses the API key.

HubSpot API Base Url - https://api.hubapi.com/

Endpoint - contacts/v1/contact

contacts/v1/lists

Can you provide more details when you say “it’s not working”. Are you getting an error? If so what is the error?

No error. No API call as well in private app. I think API service changed after private app implementation otherwise scope issue while creating private app. Let me know which scope we should tick for Magento 2 CMS.

API response

[status] => error
[message] => This hapikey doesn’t exist.
[correlationId] => 6501b7f3-3fa0-4d0b-b56e-ee477e1cf309

It sounds like the hapikey you are using doesn’t exist. When you changed to using a private app, did you update the code/integration so that is uses a authorization header using the token? It sounds like maybe you just swapped the hapikey for the token.