Does anyone have advice / direction on how to create / use an api to auto populate areas of an html email from a website?

Many thanks