# Urgent | HubSpot API integration with WebFlow

**URL:** <https://community.hubspot.com/t/urgent-hubspot-api-integration-with-webflow/14625>\
**Category:** APIs & Integrations\
**Tags:** forms, contacts\
**Created:** [June 3, 2019, 10:30am UTC](https://community.hubspot.com/t/urgent-hubspot-api-integration-with-webflow/14625 "2019-06-03T10:30:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sameer](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sameer/32/38114_2.png) [@Sameer](https://community.hubspot.com/u/Sameer)\
**Post date:** [June 3, 2019, 10:30am UTC](https://community.hubspot.com/t/urgent-hubspot-api-integration-with-webflow/14625/1 "2019-06-03T10:30:54Z")

</div>

Hi @cbarley @IsaacTakushi ,

Recently we’ve migrated the website from WordPress to Webflow.

I want to pull contacts from Webflow to Hubspot using HubSpot API.

Could you please provide the code for this.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [June 3, 2019, 10:11pm UTC](https://community.hubspot.com/t/urgent-hubspot-api-integration-with-webflow/14625/2 "2019-06-03T22:11:40Z")

</div>

Hi, @Sameer.

We won’t be writing code, but we can guide you in using the [HubSpot APIs](https://developers.hubspot.com/docs/overview).

The [Contacts API](https://developers.hubspot.com/docs/methods/contacts/contacts-overview) allows you to create contact records in your HubSpot CRM, but it _cannot_ retrieve contacts from Webflow. For that, you would need a way to get contacts _out_ of Webflow via an API. This may prove to be a problem, as the only publicly documented APIs I can find for Webflow are for [their CMS](https://developers.webflow.com/). (There don’t appear to be any CRM endpoints.)

If you were able to access Webflow “contact” objects via an API, you would need to build a middleware integration to place and translate calls between the two systems. This will require development skill and/or resources which this Forum cannot provide.

Please let me know if I have misunderstood your question.

---

<div class="post-metadata">

**Author:** ![Sameer](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sameer/32/38114_2.png) [@Sameer](https://community.hubspot.com/u/Sameer)\
**Post date:** [June 4, 2019, 3:07pm UTC](https://community.hubspot.com/t/urgent-hubspot-api-integration-with-webflow/14625/3 "2019-06-04T15:07:22Z")

</div>

Hi @IsaacTakushi,

Thank you for response.

I’m using that code for pull the contacts. Could you please confirm, is it correct or not.

$(“button”).click(function(){  
$.post("[https://api.hubapi.com/contacts/v1/contact/?hapikey=[redacted]",data](https://api.hubapi.com/contacts/v1/contact/?hapikey=fe022be6-bc43-4eff-b69d-5a152107c4b4%22,data),  
function(data, status){  
alert("Data: " + data + "\nStatus: " + status);  
});  
});  
var data = {  
“properties”: [  
{  
“property”: “email”,  
“value”: $(‘input#Email’).val();  
},  
{  
“property”: “firstname”,  
“value”: $(‘input#First-Name’).val();  
},  
{  
“property”: “lastname”,  
“value”: $(‘input#Last-Name’).val();  
},  
{  
“property”: “company”,  
“value”: $(‘input#Company-Name’).val();  
}  
]  
}  
Here, I’m using ID of the fields.

Thanks  
-Sameer Thakur

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [June 4, 2019, 8:47pm UTC](https://community.hubspot.com/t/urgent-hubspot-api-integration-with-webflow/14625/4 "2019-06-04T20:47:04Z")

</div>

Hi, @Sameer.

Please don’t share production or developer API keys on this forum. Anyone who has a key has full access to the corresponding account.

I have removed the `hapikey` value from your example but it’s been visible on this public forum for several hours, so I _strongly_ recommend **deactivating** that API key and creating a new one, per [these steps](https://knowledge.hubspot.com/articles/kcs_article/integrations/how-do-i-get-my-hubspot-api-key).

It looks like you are attempting to `POST` form data to the [_Create a new contact_](https://developers.hubspot.com/docs/methods/contacts/create_contact) endpoint from the browser. **It is not possible to submit this request client-side.** Like most HubSpot APIs, the [Contacts API](https://developers.hubspot.com/docs/methods/contacts/contacts-overview) does not support [CORS/AJAX requests](https://developers.hubspot.com/docs/faq/do-hubspot-apis-support-ajax-request).

If you’re trying to pass form data to HubSpot, you can use [this Forms API endpoint](https://developers.hubspot.com/docs/methods/forms/submit_form_v3), which accepts CORS/AJAX requests and does not require authentication.

---

<div class="post-metadata">

**Author:** ![Sameer](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sameer/32/38114_2.png) [@Sameer](https://community.hubspot.com/u/Sameer)\
**Post date:** [September 5, 2019, 1:56pm UTC](https://community.hubspot.com/t/urgent-hubspot-api-integration-with-webflow/14625/5 "2019-09-05T13:56:06Z")

</div>

Hi @IsaacTakushi

I’m still stuck in it. I’ve droped a message in your inbox. Please let me know about it.

Thanks,

-Sameer

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [September 6, 2019, 5:50pm UTC](https://community.hubspot.com/t/urgent-hubspot-api-integration-with-webflow/14625/6 "2019-09-06T17:50:08Z")

</div>

Hi, @Sameer.

I’ve responded to your direct message.
