curl --request PATCH \
--url https://api.hubapi.com/contacts/v1/secondary-email/{vid}"{ \"targetSecondaryEmail\": \"oldAddress@hubspot.com\", \"updatedSecondaryEmail\": \"updatedAddress@hubspot.com\" } { \"portalId\": 589323, \"vid\": 21316, \"secondaryEmails\": [ \"updatedAddress@hubspot.com\" ] }"Updates a secondary email address for a contact. You must provide the current secondary email address and the new email address.
curl --request PATCH \
--url https://api.hubapi.com/contacts/v1/secondary-email/{vid}"{ \"targetSecondaryEmail\": \"oldAddress@hubspot.com\", \"updatedSecondaryEmail\": \"updatedAddress@hubspot.com\" } { \"portalId\": 589323, \"vid\": 21316, \"secondaryEmails\": [ \"updatedAddress@hubspot.com\" ] }"Scope requirements
The search term for what you're searching for. You can use all of a word or just parts of a word as well. For example, if you we're searching for contacts with "hubspot" in their name or email, searching for "hub" would also return contacts with "hubspot" in their email address.
This parameter lets you specify the amount of contacts to return in your API call. The default for this parameter (if it isn't specified) is 20 contacts. The maximum amount of contacts you can have returned to you via this parameter is 100.
If you include the "property" parameter, then the properties in the "contact" object in the returned data will only include the property or properties that you request.
This parameter takes in an internal property name (e.g. vid) and sorts contact search results by that field.
This parameter accepts DESC or ASC as values (defaults to DESC) to order results by the property specified in "sort" parameter. As such, this parameter will only work when used in conjunction with "sort".
Successful response - This endpoint is used to get contacts by email address, first and last name, phone number, or company
The response is of type object.
Was this page helpful?