# contacts integration - invalid e-mails

**URL:** <https://community.hubspot.com/t/contacts-integration-invalid-e-mails/87343>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [August 11, 2023, 9:07pm UTC](https://community.hubspot.com/t/contacts-integration-invalid-e-mails/87343 "2023-08-11T21:07:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GdaSilvaCarlo](https://avatars.discourse-cdn.com/v4/letter/g/85e7bf/32.png) [@GdaSilvaCarlo](https://community.hubspot.com/u/GdaSilvaCarlo)\
**Post date:** [August 11, 2023, 9:07pm UTC](https://community.hubspot.com/t/contacts-integration-invalid-e-mails/87343/1 "2023-08-11T21:07:46Z")

</div>

Hi, guys. I was trying to create a new object by [https://api.hubapi.com/crm/v3/objects/contacts](https://api.hubapi.com/crm/v3/objects/contacts) using an invalid email, and the error message returned was:

message: ‘Property values were not valid: [{“isValid”:false,“message”:“Endereço de e-mail tb.tb@yahoo.comtttt inválido”,“error”:“INVALID\_EMAIL”,“name”:“email”}]’

I know that this domains has a problem, but will this also happen with other valid domains such as @test.design, @test.vegas and others that don’t end with two or three digits??

When I apply a regex on these domains, including the invalid email in the message above, I always get a positive response, so I don’t know what the evaluation criteria is implemented by hubspot.

---

<div class="post-metadata">

**Author:** ![coldrickjack](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/coldrickjack/32/6684_2.png) [@coldrickjack](https://community.hubspot.com/u/coldrickjack)\
**Post date:** [August 14, 2023, 9:41am UTC](https://community.hubspot.com/t/contacts-integration-invalid-e-mails/87343/2 "2023-08-14T09:41:31Z")

</div>

Hi @GdaSilvaCarlo,

HubSpot validates email addresses used for any process that would create or update a contact record. This includes using the [contacts endpoints](https://developers.hubspot.com/docs-beta/crm/contacts) to create or update a contact as well as [form submissions](https://developers.hubspot.com/docs/methods/forms/submit_form) or [events](https://developers.hubspot.com/docs/api/analytics/events).

These processes don’t check the email address itself for validity (like an [embedded form would](https://knowledge.hubspot.com/articles/kcs_article/forms/why-is-my-form-telling-me-to-enter-a-valid-email-address)), but rather its format. In addition to being valid according to [RFC 2822](https://tools.ietf.org/html/rfc2822), HubSpot places the following restrictions on email addresses:

- Local parts of the address cannot include quotation marks. (e.g. "Test [Email"@hubspot.com](mailto:Email%22@hubspot.com) isn’t valid)
- The domain part must end in a valid TLD, as listed at [https://data.iana.org/TLD/tlds-alpha-by-domain.txt](https://data.iana.org/TLD/tlds-alpha-by-domain.txt) (note that this is after handling unicode TLDs, so “user@email.삼성” is a valid email address).

Hopefully this helps in some way. For what it’s worth I was able to successfully create a contact using “POST /crm/v3/objects/contact” with email “xyz@test.design” and “abc.test.vegas”. Request information below:

```lia-code-sample
REQUEST 1
POST https://api.hubapi.com/crm/v3/objects/contacts
BODY
{
 "properties": {
 "email": "xyz@test.design"
 }
}
RESPONSE
{
 "id": "251",
 "properties": {
 "createdate": "2023-08-14T09:40:21.432Z",
 "email": "xyz@test.design",
 "hs_all_contact_vids": "251",
 "hs_email_domain": "test.design",
 "hs_is_contact": "true",
 "hs_is_unworked": "true",
 "hs_lifecyclestage_lead_date": "2023-08-14T09:40:21.432Z",
 "hs_marketable_status": "false",
 "hs_marketable_until_renewal": "false",
 "hs_object_id": "251",
 "hs_object_source": "INTEGRATION",
 "hs_object_source_id": "1998344",
 "hs_pipeline": "contacts-lifecycle-pipeline",
 "lastmodifieddate": "2023-08-14T09:40:21.432Z",
 "lifecyclestage": "lead"
 },
 "createdAt": "2023-08-14T09:40:21.432Z",
 "updatedAt": "2023-08-14T09:40:21.432Z",
 "archived": false
}

REQUEST 2
POST https://api.hubapi.com/crm/v3/objects/contacts
BODY
{
 "properties": {
 "email": "abc@test.vegas"
 }
}
RESPONSE
{
 "id": "301",
 "properties": {
 "createdate": "2023-08-14T09:40:47.002Z",
 "email": "abc@test.vegas",
 "hs_all_contact_vids": "301",
 "hs_email_domain": "test.vegas",
 "hs_is_contact": "true",
 "hs_is_unworked": "true",
 "hs_lifecyclestage_lead_date": "2023-08-14T09:40:47.002Z",
 "hs_marketable_status": "false",
 "hs_marketable_until_renewal": "false",
 "hs_object_id": "301",
 "hs_object_source": "INTEGRATION",
 "hs_object_source_id": "1998344",
 "hs_pipeline": "contacts-lifecycle-pipeline",
 "lastmodifieddate": "2023-08-14T09:40:47.002Z",
 "lifecyclestage": "lead"
 },
 "createdAt": "2023-08-14T09:40:47.002Z",
 "updatedAt": "2023-08-14T09:40:47.002Z",
 "archived": false
}

```

I hope this is in some way helpful!
