Where to add API code in Hubspot ?

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 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 :

$ 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

Hey, @AzharBondi :waving_hand: 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

Hey @Jaycee_Lewis!

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 !