Skip to contentSkip to navigationSkip to topbar
Page toolsOn this page
Looking for more inspiration?Visit the

SMTP API


API. A progamming interface that provides customized email handling instructions on a per-email basis.

Simple Mail Transfer Protocol (SMTP) transfers email over the internet. An Application Programming Interface (API) establishes and maintains communication between two software applications. The Twilio SMTP API establishes and maintains communication between two software applications over the internet using a set of defined parameters and rules.

The Twilio SMTP API enables developers to customize email handling instructions using an X-SMTPAPI header. Each email that Twilio SendGrid delivers includes this JSON header. It provides specific instructions on handling the email message.

Use the SMTP API to perform the following SMTP email related tasks:

  • Manage lists
  • Track opens and clicks
  • Handle authentication
  • Integrate analytics
  • Manage subscriptions
  • Tag or label your email messages
  • Filter the type data you want to receive
  • Create dynamic emails
  • Customize emails and add unique arguments using templates