# My API in my website

**URL:** <https://community.hubspot.com/t/my-api-in-my-website/87669>\
**Category:** APIs & Integrations\
**Tags:** free\
**Created:** [August 16, 2023, 10:58pm UTC](https://community.hubspot.com/t/my-api-in-my-website/87669 "2023-08-16T22:58:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![igeorge5](https://avatars.discourse-cdn.com/v4/letter/i/45deac/32.png) [@igeorge5](https://community.hubspot.com/u/igeorge5)\
**Post date:** [August 16, 2023, 10:58pm UTC](https://community.hubspot.com/t/my-api-in-my-website/87669/1 "2023-08-16T22:58:50Z")

</div>

Hi everyone, I created an API to upload a local file into files Hubspot, on the other hand, I’m creating a website in hubspot but I need include this API. My API are creating with nodejs and the module of hubspot have js file, if I inset my API here doesn’t work. You know how can I solve it? thank u.

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [August 17, 2023, 11:03pm UTC](https://community.hubspot.com/t/my-api-in-my-website/87669/2 "2023-08-17T23:03:19Z")

</div>

Hi, @igeorge5 👋 Thanks for your post. I have a few questions to give you community more information.

Questions:

- Do you have your server set up to host your API?
- Are you using CORS?
- How are you structuring your client-side API call?

Thanks for the additional information! — Jaycee

---

<div class="post-metadata">

**Author:** ![paradummy](https://avatars.discourse-cdn.com/v4/letter/p/8dc957/32.png) [@paradummy](https://community.hubspot.com/u/paradummy)\
**Post date:** [August 22, 2023, 11:38am UTC](https://community.hubspot.com/t/my-api-in-my-website/87669/3 "2023-08-22T11:38:39Z")

</div>

Hi @igeorge5  
You can integrate your nodejs API with [serverless functions](https://developers.hubspot.com/docs/cms/data/serverless-functions) within hubspot. But for that the CMS Hub Enterprise is needed. Alternatively you can host your API on another server and call that from the HubSpot frontend.
