Skip to content

EMail API Layer

Hint

Use our TypeScript Package on npm for super easy integration of our platform: @layer.io/api

layer.io offers an easy to use email sending layer. To get started deploy our SPF records to your zone, so we can start sending email with your domain as sending origin.

After that all you need to do in nodejs is:

import * as lApi from '@layer.io/api'

const lApiAccount = lapi.createAccount('your secret api key here');
const myEmail = lApiAccount.createEmail({
  from: '[email protected]',
  to: '[email protected]',
  content: '<b>Hi there! This is an HTML EMail<b>'
});

myEmail.send(); // returns a promise, so feel free to it in an async function.