# Add/Edit/Remove Non Primary Emails from Contact API

**URL:** <https://community.hubspot.com/t/add-edit-remove-non-primary-emails-from-contact-api/7611>\
**Category:** HubSpot Ideas\
**Tags:** object\
**Created:** [February 1, 2018, 3:43pm UTC](https://community.hubspot.com/t/add-edit-remove-non-primary-emails-from-contact-api/7611 "2018-02-01T15:43:44Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![tomas1](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tomas1/32/61905_2.png) [@tomas1](https://community.hubspot.com/u/tomas1)\
**Post date:** [September 29, 2022, 1:12pm UTC](https://community.hubspot.com/t/add-edit-remove-non-primary-emails-from-contact-api/7611/20 "2022-09-29T13:12:47Z")

</div>

here is a Ruby/Rails solution [Hubspot CRM API Delete a secondary email address · GitHub](https://gist.github.com/equivalent/9e3174a471b138401b420bff506ac09e)

Only dependancy is HTTParty (no hubspot gem)

Uses hubspot v1 API endpoint “[https://api.hubapi.com/contacts/v1/secondary-email/](https://api.hubapi.com/contacts/v1/secondary-email/)…” with “private apps token” (meaning it will work after Nov 2022)

---

_[View the full topic](https://community.hubspot.com/t/add-edit-remove-non-primary-emails-from-contact-api/7611)._
