Create or update a contact

POST /contacts/v1/contact/createOrUpdate/email/:contact_email

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 contact if it doesn't exist in a portal already, or update it with the latest property values if it does.

If successful, your request will return the unique identifier (VID) of the contact and whether or not the request was a create or an update.

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 JSON Used in the request body This is JSON that represents a contact that you're creating. This should be of the format seen below in the code sample given.
Optional Parameters How to use Description
None None No optional parameters for this method.

Example URL to POST to:  https://api.hubapi.com/contacts/v1/contact/createOrUpdate/email/test@hubspot.com/?hapikey=demo

This endpoint returns a 200 response on success. The response will contain a vid of the updated or created record, and an isNew field that indicates if a new record was created. If the field is false, an existing record was updated

This will return a 409 Conflict error response if you are trying to update the email address of a record, and there is an existing record with the new email address.