Hello, my team is working on migrating our system’s Hubspot access from the API to Private Apps(we were given an extension for the migration). We use the hubspot-php composer package along with the rossjcooper/laravel-hubspot package to interface with our Laravel based application. These had to be updated to the latest versions and the old key changed to the token in order to switch to the Private App. With just those changes I was able to get the new Private App connection working seamlessly in the development environment on my local machine, as well as in a Postman request. However when the changes were pushed to our Staging server with the same settings and token, the request comes back with a 401 error.
This is the error message I was able to get:
POST https://api.hubapi.com/contacts/v1/contact/createOrUpdate/email/*******@ex.com` resulted in a `401 Unauthorized` response:
{“status”:“error”,“message”:“Any of the listed authentication credentials are missing”,“correlationId”:"ceae92cc-f8b9-4f (truncated…)
I’m really not finding anything that should be different on our server that would cause this error. Does anyone have recommendations on directions to troubleshoot in?