# Create contacts on client side using API in HubSpot

**URL:** <https://community.hubspot.com/t/create-contacts-on-client-side-using-api-in-hubspot/15099>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [July 3, 2019, 11:06am UTC](https://community.hubspot.com/t/create-contacts-on-client-side-using-api-in-hubspot/15099 "2019-07-03T11:06:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![muhammed](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/muhammed/32/68653_2.png) [@muhammed](https://community.hubspot.com/u/muhammed)\
**Post date:** [July 3, 2019, 11:06am UTC](https://community.hubspot.com/t/create-contacts-on-client-side-using-api-in-hubspot/15099/1 "2019-07-03T11:06:33Z")

</div>

is it possible to create user through /contacts/v1/contact API on client side?

if not, is there another way to do it on client side?

---

<div class="post-metadata">

**Author:** ![himanshurauthan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/himanshurauthan/32/53076_2.png) [@himanshurauthan](https://community.hubspot.com/u/himanshurauthan)\
**Post date:** [July 4, 2019, 10:35am UTC](https://community.hubspot.com/t/create-contacts-on-client-side-using-api-in-hubspot/15099/2 "2019-07-04T10:35:06Z")

</div>

Hello @muhammed  
The API endpoint /contacts/v1/contact is only for creating new contacts on HubSpot end.  
For your query, can you please explain in detail which platform you are using and what are your requirements and needs.  
Thankyou

---

<div class="post-metadata">

**Author:** ![muhammed](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/muhammed/32/68653_2.png) [@muhammed](https://community.hubspot.com/u/muhammed)\
**Post date:** [July 4, 2019, 10:46am UTC](https://community.hubspot.com/t/create-contacts-on-client-side-using-api-in-hubspot/15099/3 "2019-07-04T10:46:18Z")

</div>

want to create contact by javascript

---

<div class="post-metadata">

**Author:** ![himanshurauthan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/himanshurauthan/32/53076_2.png) [@himanshurauthan](https://community.hubspot.com/u/himanshurauthan)\
**Post date:** [July 4, 2019, 11:29am UTC](https://community.hubspot.com/t/create-contacts-on-client-side-using-api-in-hubspot/15099/4 "2019-07-04T11:29:14Z")

</div>

Hello @muhammed  
If I am not wrong you want to create contact on HubSpot using client side ( javascript code) right?

---

<div class="post-metadata">

**Author:** ![muhammed](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/muhammed/32/68653_2.png) [@muhammed](https://community.hubspot.com/u/muhammed)\
**Post date:** [July 4, 2019, 12:42pm UTC](https://community.hubspot.com/t/create-contacts-on-client-side-using-api-in-hubspot/15099/5 "2019-07-04T12:42:20Z")

</div>

yes

---

<div class="post-metadata">

**Author:** ![himanshurauthan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/himanshurauthan/32/53076_2.png) [@himanshurauthan](https://community.hubspot.com/u/himanshurauthan)\
**Post date:** [July 4, 2019, 1:08pm UTC](https://community.hubspot.com/t/create-contacts-on-client-side-using-api-in-hubspot/15099/6 "2019-07-04T13:08:35Z")

</div>

@muhammed  
Its not recommended that we use hubspot contact creation API at client side because this can make your API key or token exposed to outside the system.  
You can use any secure language like PHP, python etc. to run your API calls.  
Thankyou.
