Getting the error: invalidEmails /

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

Python code:

Thanks for the help :slightly_smiling_face:

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,

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:


*

Thank you

Can someone help me please :slightly_smiling_face: .

@dennisedson , @himanshurauthan , @webdew

Thank you

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 for better guidance.

Hope this will help you out. :slightly_smiling_face:

Regards,

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

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