Create a new contact

POST /contacts/v1/contact

Method Details

HTTP Methods:

POST

Content Type:

application/json

Response Format:

json

Requires Authentication?

Yes

Rate Limited?

Yes

Headers

User-Agent

Products:

Marketing & CRM

Create a new contact in HubSpot with a simple HTTP POST to the Contacts API. The contact will be created instantly inside of HubSpot, and will be assigned a unique ID (vid) that can be used to look up the contact inside of HubSpot later.

Need to create a large number of contacts? Try the Batch API.

Note: This endpoint is designed for offline contacts, and does not support lead tracking. If your contacts come through online forms, use the Form Submission endpoint.

Required Parameters How to use Description
OAuth Access Token or API Key Authorization: Bearer {token} header
or hapikey={key} query parameter.
Used to authenticate the request. Please see this page for more details about authentication.
Contact Properties "properties": [...]
Used in the request body
A list of contact properties that you want to set for the new contact record. Each entry in the list must include the internal name of the property, and the value that you want to set for that property. Note: You must include at least one property for the new contact or you will receive an error.
Optional Parameters How to use Description
Email Address Used in the request body While we recommend that all contact records include an email address, it is possible to create contacts without an email address by leaving out the email property.

Example URL to POST to:  https://api.hubapi.com/contacts/v1/contact/?hapikey=demo

Returns a 200 response on success. The response will include the details for the created contact

Returns a 409 Conflict if there is an existing contact with the email address included in the request. The response body will include the identityProfile details of the contact, which will include the vid of the existing record.

Returns a 400 error when there is a problem with the data in the request body, including when there are no properties included in the reqest data.