first version of email api