APIs & Integrations

EduardoServilia
Contributor | Partner
Contributor | Partner

Firs steps with Create contacts API

Hello,

 

I need to create new contacts in my CRM through a personalized registration form, which for technical reasons does not automatically collect the data.

 

The management of the form is done with the JAVA programming language,

Would it be possible to use the API "Create new contact" with Javascript?

 

I use the endpoint:

https://legacydocs.hubspot.com/docs/methods/contacts/create_contact

 

Thanks!

0 Upvotes
3 Replies 3
dennisedson
HubSpot Product Team
HubSpot Product Team

Firs steps with Create contacts API

Hello @EduardoServilia !

You can definitely create new contacts with that API endpoint, but I would suggest using the newer version here

I am also curious why you cannot use the forms API

 

Thanks!

0 Upvotes
EduardoServilia
Contributor | Partner
Contributor | Partner

Firs steps with Create contacts API

Hello @dennisedson, thx for the reply

The programming code that manages the form is written in JAVA, is it possible to use the endpoint with this programming language or simple Javascript or Jquery?

 

Is there an example in JAVA, similar to the ones in the image?

image.png

 

I think I can't use the forms API, because I can't modify the HTML of the form. (It is a registration form for a custom online store )

 

Thanks!!

0 Upvotes
dennisedson
HubSpot Product Team
HubSpot Product Team

Firs steps with Create contacts API

Hey @EduardoServilia !

You should be able to use that endpoint.  

Looks like you are not alone in wanting some examples as written by @Noby  in this post

I would recommend looking at those two repos references in that post.  Hopefully, that will get you started!  Please let us know your progress! 

On my end, I will advocate for more Java examples!

 

Best!

0 Upvotes