# Support oauth app for EU data centers

**URL:** <https://community.hubspot.com/t/support-oauth-app-for-eu-data-centers/69829>\
**Category:** APIs & Integrations\
**Tags:** crm\
**Created:** [November 23, 2022, 9:17am UTC](https://community.hubspot.com/t/support-oauth-app-for-eu-data-centers/69829 "2022-11-23T09:17:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![HDevelopers](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/hdevelopers/32/57633_2.png) [@HDevelopers](https://community.hubspot.com/u/HDevelopers)\
**Post date:** [November 23, 2022, 9:17am UTC](https://community.hubspot.com/t/support-oauth-app-for-eu-data-centers/69829/1 "2022-11-23T09:17:13Z")

</div>

Some of our customers have recently migrated to the EU centers, from the US, and this migration was done by the Hubspot Team themselves. After this migration, these customers are not able to use our OAuth apps in their pipelines. The authenticated app sends the following error response:

{  
“status”: “error”,  
“message”: “Hub \<7 digits\> is unknown to this Hublet, but it appears to exist in Hublet eu1”,  
“correlationId”: “\*\*\*\*”,  
“correctHublet”: “eu1”  
}

I tried to check the documentation but could not find how/what we need to change in our OAuth apps/endpoints for this. Could the HubSpot team help me understand what changes I need to make in my OAuth app / the endpoints we query (currently its [https://api.hubapi.com/crm/v3/objects/{object\_name}/search),](https://api.hubapi.com/crm/v3/objects/%7Bobject_name%7D/search),) to ensure we can make API calls for customers in the EU region?

---

<div class="post-metadata">

**Author:** ![MiaSrebrnjak](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/miasrebrnjak/32/10_2.png) [@MiaSrebrnjak](https://community.hubspot.com/u/MiaSrebrnjak)\
**Post date:** [November 25, 2022, 5:49pm UTC](https://community.hubspot.com/t/support-oauth-app-for-eu-data-centers/69829/2 "2022-11-25T17:49:58Z")

</div>

Hi @HDevelopers,

Thank you for reaching out to the Community!

The routing to the correct hublet/data center should work automatically if the request contains `portalId` as a query parameter.

I’ve also found[this article](https://docs.elastic.io/components/hubspot/creating-oauth-app-for-hubspot.html) where the developer specifies the EU-Hublet in the authorization URL:

[https://app](https://app)\*\*-eu1.\*\*[hubspot.com/oauth/authorize](http://hubspot.com/oauth/authorize)

instead of

> **[HubSpot OAuth](https://app.hubspot.com/oauth/authorize)**

I hope this helps! If not, I’d recommend reaching out to our support, they’ll be able to have a closer look at the error message. Thank you!

Cheers  
Mia, Community Team

---

<div class="post-metadata">

**Author:** ![HDevelopers](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/hdevelopers/32/57633_2.png) [@HDevelopers](https://community.hubspot.com/u/HDevelopers)\
**Post date:** [December 7, 2022, 3:12pm UTC](https://community.hubspot.com/t/support-oauth-app-for-eu-data-centers/69829/3 "2022-12-07T15:12:08Z")

</div>

Thanks a lot @MiaSrebrnjak ! The issue is resolved now.

Best Regards,

[HDevelopers](https://community.hubspot.com/t5/user/viewprofilepage/user-id/254012)

---

<div class="post-metadata">

**Author:** ![MiaSrebrnjak](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/miasrebrnjak/32/10_2.png) [@MiaSrebrnjak](https://community.hubspot.com/u/MiaSrebrnjak)\
**Post date:** [December 7, 2022, 5:17pm UTC](https://community.hubspot.com/t/support-oauth-app-for-eu-data-centers/69829/4 "2022-12-07T17:17:12Z")

</div>

That’s great, thank you for letting me know! 🙂

---

<div class="post-metadata">

**Author:** ![tim\_koalify](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tim_koalify/32/65586_2.png) [@tim\_koalify](https://community.hubspot.com/u/tim_koalify)\
**Post date:** [March 23, 2024, 6:36am UTC](https://community.hubspot.com/t/support-oauth-app-for-eu-data-centers/69829/5 "2024-03-23T06:36:06Z")

</div>

Dear Mia,

I’m having the exact same problem right now.

The problem is with the details call: [https://api.hubapi.com/account-info/v3/details](https://api.hubapi.com/account-info/v3/details)

I can’t add a portalId there, because that endpoint doens’t use one (I tried it though).

Changing to the eu endpoint is not an option, because I use the same endpoint through the javascript library, and it’s not configurable as far as I can see.

Any ideas on how to move forward for this client?
