There's a new version of the HubSpot API

As of November 30, 2022, HubSpot API keys are no longer a supported authentication method for accessing HubSpot APIs. Instead, you should use a private app access token or OAuth to authenticate API calls. Learn more about this change and how to migrate an API key integration to use a private app instead.

Update a secondary email address

Last updated May 31, 2023

PATCH /contacts/v1/secondary-email/:vid

This endpoint is part of our developer preview program, and should be considered as a non-stable release that will be subject to bugs and breaking changes while under development. Please take this into account as you build against a release. Please subscribe to our changelog for updates.

Method Details

HTTP Methods:

PATCH

Content Type:

application/json

Response Format:

json

Requires Authentication?

Yes

Rate Limited?

Yes

Headers

User-Agent

Products:

CRM

Required Scope:

content

Update an existing secondary email address for a contact.
Required Parameters How to use Description
OAuth access token or private app access token Authorization: Bearer {token} header Used to authenticate the request. Please see this page for more details about authentication.
Contact ID :vid
Used in the request URL
Unique identifier for a particular contact. In HubSpot's contact system, contact ID's are called "vid"
Target Secondary Email "targetSecondaryEmail"
used in the request body
The email address you want to replace
Updated Secondary Email "updatedSecondaryEmail"
used in the request body
The updated the value of the secondary email address you are replacing