Create new API endpoint for email optin

Updating the design of the email opt in end point.