# Where to add API code in Hubspot ?

**URL:** <https://community.hubspot.com/t/where-to-add-api-code-in-hubspot/95982>\
**Category:** APIs & Integrations\
**Tags:** professional\
**Created:** [December 13, 2023, 2:41pm UTC](https://community.hubspot.com/t/where-to-add-api-code-in-hubspot/95982 "2023-12-13T14:41:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AzharBondi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/azharbondi/32/89457_2.png) [@AzharBondi](https://community.hubspot.com/u/AzharBondi)\
**Post date:** [December 13, 2023, 2:41pm UTC](https://community.hubspot.com/t/where-to-add-api-code-in-hubspot/95982/1 "2023-12-13T14:41:56Z")

</div>

Hi,

This is the first time I am using an API on Hubspot, in order to connect a 3rd party website’s form to my Hubspot account (where I will be able to receive the information submitted in that external non-hubspot form).  
As far as I understood, this [article](https://knowledge.hubspot.com/forms/use-non-hubspot-forms) doesn’t apply since I am targeting an external form that I didn’t create and I have no control over.

The API code is the following :

```lia-code-sample
$ curl -X GET https://api.coursereport.com/matches \
 -H 'Authorization: <YOUR API TOKEN>' \
 -H 'Accept: application/vnd.coursereport.v2' \
 -d 'page=1' \
 -d 'per_page=25' \
 -d 'date_start=2017-03-01' \
 -d 'date_end=2017-03-15'

```

My question is basically the following, where should I add this API code snippet in Hubspot ?  
Thank you in advance.  
Best regards,  
Azhar

---

<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:** [December 14, 2023, 8:36pm UTC](https://community.hubspot.com/t/where-to-add-api-code-in-hubspot/95982/2 "2023-12-14T20:36:45Z")

</div>

Hey, @AzharBondi 👋 I hope you were able to get this resolved. To clarify, there isn’t a way to add this API call directly to HubSpot. Typically, you’d use middleware to handle making the requests and sending the response onto the destination. If you have an embed script, typically using JS, there are ways to add that to your page(s).

One question — did this 3rd party application provide you any support documentation or examples that are HubSpot-specific? Even if it doesn’t have the full answer, it may give our community a clue to work with.

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![AzharBondi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/azharbondi/32/89457_2.png) [@AzharBondi](https://community.hubspot.com/u/AzharBondi)\
**Post date:** [December 15, 2023, 10:51am UTC](https://community.hubspot.com/t/where-to-add-api-code-in-hubspot/95982/3 "2023-12-15T10:51:09Z")

</div>

Hey [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074)!

Thank you for your reply. Still trying to figure out how to do that.  
The 3rd party app didn’t provide any documentation or examples that are Hubspot specific!  
Thank you !
