Hubspot : Create a contact by Api
Use Endpoint to create contact api in Hubspot
https://api.hubapi.com/contacts/v1/contact/createOrUpdate/email/testingapis@hubspot.com/?hapikey=$apikey
$apikey is a active Api key which you will get by following steps
1. Login in hubspot account
2. Go to setting
3. go to integration in setting
4. under integration click at api key
5 . Now you will get active api key
Example POST body:
The code sample below represents some example JSON
with standard properties :
{
"properties": [
{
"property": "firstname",
"value": "HubSpot"
},
{
"property": "lastname",
"value": "Test"
},
{
"property": "website",
"value": "http://hubspot.com"
},
{
"property": "company",
"value": "HubSpot"
},
{
"property": "phone",
"value": "555-122-2323"
},
{
"property": "address",
"value": "25 First Street"
},
{
"property": "city",
"value": "Cambridge"
},
{
"property": "state",
"value": "MA"
},
{
"property": "zip",
"value": "02139"
}
]
}
Returns a 200 OK response on success.
Example Response data:
{"vid":3234574,"isNew":false}
Comments
Post a Comment