Weird Email validation

Highlighted
New Contributor

I have email validation error when I send some totally fine emails. For example on:  POST

https://api.hsforms.com/submissions/v3/integration/submit/7748313/65fc5ea8-e04b-4d2a-b7c3-03e9268dc6...

with the folowing body:

{"fields":[{"name":"email","value":"jsmith@chenangomusicfestival.com"},{"name":"firstname","value":"John"},{"name":"lastname","value":"Smith"}]}

I have a 400 response with the following error:

{"status":"error","message":"The request is not valid","correlationId":"ad896722-0c90-4708-8d75-379acf4ca6d4","errors":[{"message":"Error in 'fields.email'. Invalid email address","errorType":"INVALID_EMAIL"}]}

The same with seb@seb.com.

 

How can we set a "standard" mail validation which only rejects ill formated address?

Reply
0 Upvotes
1 Reply 1
Highlighted
HubSpot Moderator

Hey @Sebbes,

 

If you'd like to skip the validation based on form settings, you can add the following parameter:

"skipValidation": {boolean} in which boolean == true. 

 

Once you skip the validation based on form settings, your team can implement your own form validation. 
 

Reply
0 Upvotes