# Getting the error: invalidEmails /

**URL:** <https://community.hubspot.com/t/getting-the-error-invalidemails/44604>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [September 30, 2021, 8:47am UTC](https://community.hubspot.com/t/getting-the-error-invalidemails/44604 "2021-09-30T08:47:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![AbdelMOULIDA](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/abdelmoulida/32/76793_2.png) [@AbdelMOULIDA](https://community.hubspot.com/u/AbdelMOULIDA)\
**Post date:** [September 30, 2021, 8:47am UTC](https://community.hubspot.com/t/getting-the-error-invalidemails/44604/1 "2021-09-30T08:47:13Z")

</div>

I get the **invalidEmails** error when trying to create and add contacts on HubSpot using the API.

_Python code:_

 ![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/c/dc0a7e8e1bdf6073a402489127c2572d55c5a4a2.png)

Thanks for the help 🙂

---

<div class="post-metadata">

**Author:** ![himanshurauthan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/himanshurauthan/32/53076_2.png) [@himanshurauthan](https://community.hubspot.com/u/himanshurauthan)\
**Post date:** [October 1, 2021, 11:55am UTC](https://community.hubspot.com/t/getting-the-error-invalidemails/44604/2 "2021-10-01T11:55:52Z")

</div>

Hi **@AbdelMOULIDA ,**

If you are building a new integration that uses the v3 form submission endpoints you should **not** use the _skipValidation_ optional parameter as it will no longer be supported for new integrations and will be marked as deprecated.

Regards,

---

<div class="post-metadata">

**Author:** ![AbdelMOULIDA](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/abdelmoulida/32/76793_2.png) [@AbdelMOULIDA](https://community.hubspot.com/u/AbdelMOULIDA)\
**Post date:** [October 1, 2021, 12:18pm UTC](https://community.hubspot.com/t/getting-the-error-invalidemails/44604/3 "2021-10-01T12:18:59Z")

</div>

Hello @himanshurauthan ,

**- Context:**  
I am retrieving a list of contacts from a database.  
I want to add this contact list to HubSpot (Create/Update) and then add it to a contact list.

**- Problem:**  
A lot of contacts are not created/updated on HubSpot because of the mail, in invalidEmails I have all the contacts that I try to pass on HubSpot.

Even without skipValidation it doesn’t work.

**What I want:**  
Create all the contacts that are in my .csv file even if the email is not valid.

_My code:_

- 

 ![Capture d’écran 2021-10-01 à 14.13.08.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/4/2/4233acc22183e5778711faeef3e5cbc4f48eaff3.png)  
\*

Thank you

---

<div class="post-metadata">

**Author:** ![AbdelMOULIDA](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/abdelmoulida/32/76793_2.png) [@AbdelMOULIDA](https://community.hubspot.com/u/AbdelMOULIDA)\
**Post date:** [October 4, 2021, 6:57am UTC](https://community.hubspot.com/t/getting-the-error-invalidemails/44604/4 "2021-10-04T06:57:30Z")

</div>

Can someone help me please 🙂 .

@dennisedson , @himanshurauthan , [@webdew](https://community.hubspot.com/t5/user/viewprofilepage/user-id/131510)

Thank you

---

<div class="post-metadata">

**Author:** ![himanshurauthan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/himanshurauthan/32/53076_2.png) [@himanshurauthan](https://community.hubspot.com/u/himanshurauthan)\
**Post date:** [October 5, 2021, 2:07pm UTC](https://community.hubspot.com/t/getting-the-error-invalidemails/44604/5 "2021-10-05T14:07:52Z")

</div>

Hello @AbdelMOULIDA,

The task of importing data **from a CSV to CRM is in v3 API only** and **you are using v1 API** for importing, Maybe, this is the reason for not importing data over HubSpot.

Please refer to the [**CRM API doc**](https://developers.hubspot.com/docs/api/crm/imports) for better guidance.

Hope this will help you out. 🙂

Regards,

---

<div class="post-metadata">

**Author:** ![AbdelMOULIDA](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/abdelmoulida/32/76793_2.png) [@AbdelMOULIDA](https://community.hubspot.com/u/AbdelMOULIDA)\
**Post date:** [October 5, 2021, 2:17pm UTC](https://community.hubspot.com/t/getting-the-error-invalidemails/44604/6 "2021-10-05T14:17:35Z")

</div>

Hello @himanshurauthan ,

Thank you for your reply.

Can you tell me what I need to change/add in my python code to make it work, it would be easier for me.

Best Regards

---

<div class="post-metadata">

**Author:** ![himanshurauthan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/himanshurauthan/32/53076_2.png) [@himanshurauthan](https://community.hubspot.com/u/himanshurauthan)\
**Post date:** [October 8, 2021, 11:57am UTC](https://community.hubspot.com/t/getting-the-error-invalidemails/44604/7 "2021-10-08T11:57:31Z")

</div>

Hi @AbdelMOULIDA

You just need to change the API that you are using that are using hitting, currently it’s v1 please try to use v3 CRM API’s
