Emails endpoint validates the JSON returning 422 if invalid

[#78139766]