# HubSpot API key

**URL:** <https://community.hubspot.com/t/hubspot-api-key/149594>\
**Category:** APIs & Integrations\
**Tags:** free\
**Created:** [May 22, 2026, 9:16am UTC](https://community.hubspot.com/t/hubspot-api-key/149594 "2026-05-22T09:16:36Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![MerryMarketing](https://avatars.discourse-cdn.com/v4/letter/m/7feea3/32.png) [@MerryMarketing](https://community.hubspot.com/u/MerryMarketing)\
**Post date:** [May 22, 2026, 9:16am UTC](https://community.hubspot.com/t/hubspot-api-key/149594/1 "2026-05-22T09:16:36Z")

</div>

I need to generate a HubSpot API key so we can plug it into our new CRM, One Mortgage System (OMS). We plan to use the HubSpot Starter tier for our marketing function. To generate this key, I have been directed by OMS to follow the “Create Legacy App” instructions, and from there, copy the access token. I’ve followed everything as instructed, but I keep coming across this error.

[HubSpot Error.gif](https://merryoaks-my.sharepoint.com/:i:/p/marketing/IQACN9HBp3dlQ5pOga671ea6AQC2oLOkwHj9J7FbhE9Z8gM?e=PaMvb2)

Any help here to fix this would be great.

Thanks

---

<div class="post-metadata">

**Author:** ![evaldas](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/evaldas/32/69160_2.png) [@evaldas](https://community.hubspot.com/u/evaldas)\
**Post date:** [May 22, 2026, 5:11pm UTC](https://community.hubspot.com/t/hubspot-api-key/149594/2 "2026-05-22T17:11:29Z")

</div>

Hi @MerryMarketing,

For your use case, I recommend using Service Keys instead of the Legacy Apps

> **[Make API requests using a service key (BETA) - HubSpot docs](https://developers.hubspot.com/docs/apps/developer-platform/build-apps/authentication/account-service-keys)**
>
> Learn about how to use a service key to streamline access to data in your HubSpot account.

Hope this helps!

_Moderator note: While this solution may not address the original poster’s specific situation, it could be helpful for other community members facing similar challenges._

---

<div class="post-metadata">

**Author:** ![MerryMarketing](https://avatars.discourse-cdn.com/v4/letter/m/7feea3/32.png) [@MerryMarketing](https://community.hubspot.com/u/MerryMarketing)\
**Post date:** [May 26, 2026, 11:20am UTC](https://community.hubspot.com/t/hubspot-api-key/149594/3 "2026-05-26T11:20:18Z")

</div>

Hi Elvadas,

Thanks for your response. I have tried Service Keys and that too has the same issue.  
Please have a look at what happens.

[https://merryoaks-my.sharepoint.com/:i:/p/marketing/IQByY0eypoD2TpMDKKZgZC](https://merryoaks-my.sharepoint.com/:i:/p/marketing/IQByY0eypoD2TpMDKKZgZCWWAdX5gALjX6rOaRFYRTkY52A?e=n9ILd1)[WWAdX5gALjX6rOaRFYRTkY52A?e=n9ILd1](https://merryoaks-my.sharepoint.com/:i:/p/marketing/IQByY0eypoD2TpMDKKZgZCWWAdX5gALjX6rOaRFYRTkY52A?e=n9ILd1)

It would be great to get a solution for this. We do plan on moving our tier to the paid version, but ideally, we’d need this sorted out first so we can work more productively.

Many thanks 😊

---

<div class="post-metadata">

**Author:** ![evaldas](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/evaldas/32/69160_2.png) [@evaldas](https://community.hubspot.com/u/evaldas)\
**Post date:** [May 26, 2026, 1:19pm UTC](https://community.hubspot.com/t/hubspot-api-key/149594/4 "2026-05-26T13:19:30Z")

</div>

Hi @MerryMarketing,

Thank you for sharing the recording. It is strange. You should still be able to use it on a free plan.

Can you look into the HAR file to see if get more details about the error?

> **[Collect a HAR file for troubleshooting](https://knowledge.hubspot.com/help-and-resources/collect-a-har-file-for-troubleshooting)**
>
> Learn how to record a HAR file and trace in various browsers to help HubSpot support diagnose technical issues effectively.

---

<div class="post-metadata">

**Author:** ![MerryMarketing](https://avatars.discourse-cdn.com/v4/letter/m/7feea3/32.png) [@MerryMarketing](https://community.hubspot.com/u/MerryMarketing)\
**Post date:** [May 28, 2026, 10:08am UTC](https://community.hubspot.com/t/hubspot-api-key/149594/5 "2026-05-28T10:08:48Z")

</div>

Hi there,

I’ve created the HAR file. Please find it here:

[HAR File HubSpot Error.har](https://merryoaks-my.sharepoint.com/:u:/p/marketing/IQCbDNlnaSmzS4ilCyE8FV9OAZMdSLRwrjO_-DavFDVvGV0?e=ZZKrYJ)

Hopefully this helps.

Looking forward to your response.

---

<div class="post-metadata">

**Author:** ![stassey](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stassey/32/36_2.png) [@stassey](https://community.hubspot.com/u/stassey)\
**Post date:** [May 28, 2026, 10:04pm UTC](https://community.hubspot.com/t/hubspot-api-key/149594/6 "2026-05-28T22:04:05Z")

</div>

Hey @MerryMarketing,

Thanks for sharing the HAR file. The error showing INTERNAL\_ERROR with shouldRetry: false can sometimes point to a portal-level permissions or account configuration issue rather than something on your end.

If you’re following the steps from @evaldas, are you able to confirm your portal is enrolled in this beta [here](https://app.hubspot.com/l/product-updates/?rollout=285017)? Additionally, are you able to confirm if you’re an Admin in the portal?

Thanks for your help so far, @evaldas!

Best,

Sam

---

<div class="post-metadata">

**Author:** ![MerryMarketing](https://avatars.discourse-cdn.com/v4/letter/m/7feea3/32.png) [@MerryMarketing](https://community.hubspot.com/u/MerryMarketing)\
**Post date:** [May 29, 2026, 8:13pm UTC](https://community.hubspot.com/t/hubspot-api-key/149594/7 "2026-05-29T20:13:36Z")

</div>

Hi SamTassey, thanks for stepping in.

Yes, the portal is enrolled in the beta. And yes, I am the admin.

 ![Screenshot 2026-05-29 210706.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/c/0/c09bc1a8a90daa5e7776019051725e37685f7c2d.png)  
Beta

 ![Screenshot 2026-05-19 151157.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/b/b46dda3f215f589bde492b49b3eb1987172dbb3a.png)  
Super Admin

---

<div class="post-metadata">

**Author:** ![MerryMarketing](https://avatars.discourse-cdn.com/v4/letter/m/7feea3/32.png) [@MerryMarketing](https://community.hubspot.com/u/MerryMarketing)\
**Post date:** [June 2, 2026, 10:28am UTC](https://community.hubspot.com/t/hubspot-api-key/149594/8 "2026-06-02T10:28:31Z")

</div>

Hi both @evaldas [@SamTassey](https://community.hubspot.com/t5/user/viewprofilepage/user-id/388334)

I have confirmed that the portal is enrolled in the beta and I am the admin. Could you provide the next steps?

Kind regards

---

<div class="post-metadata">

**Author:** ![stassey](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stassey/32/36_2.png) [@stassey](https://community.hubspot.com/u/stassey)\
**Post date:** [June 2, 2026, 10:28pm UTC](https://community.hubspot.com/t/hubspot-api-key/149594/9 "2026-06-02T22:28:13Z")

</div>

Hey @MerryMarketing,

Thanks for your response -- would you mind DM’ing me your Portal ID so we can take a further look into this?  
Looking forward to your response!

Best,

Sam, Community Manager

---

<div class="post-metadata">

**Author:** ![MerryMarketing](https://avatars.discourse-cdn.com/v4/letter/m/7feea3/32.png) [@MerryMarketing](https://community.hubspot.com/u/MerryMarketing)\
**Post date:** [June 4, 2026, 8:51am UTC](https://community.hubspot.com/t/hubspot-api-key/149594/10 "2026-06-04T08:51:05Z")

</div>

Hi [@SamTassey](https://community.hubspot.com/t5/user/viewprofilepage/user-id/388334),

I DM’d you the ID portal, but I haven’t received any response unfortunately. Would you be able to have a look at it please?

Thanks

---

<div class="post-metadata">

**Author:** ![stassey](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stassey/32/36_2.png) [@stassey](https://community.hubspot.com/u/stassey)\
**Post date:** [June 9, 2026, 10:44pm UTC](https://community.hubspot.com/t/hubspot-api-key/149594/11 "2026-06-09T22:44:53Z")

</div>

Hello @MerryMarketing,

I’ve DM’d you again with a few follow up steps. I’ve also provided my email that you can reach out to while our Community goes into Read-Only mode as seen [here](https://community.hubspot.com/t5/Announcements/Support-Options-During-the-Community-Read-Only-Period/ba-p/1282648).  
Looking forward to your response!

Sam, Community Manager
