Encharge Developers
  • Developer Documentation
  • Getting Started
    • Sending data to your Encharge account
      • Ingest API
      • JavaScript Event Tracking
      • Segment.com Integration
    • Getting Help
  • Sending Emails
    • Personalizing Emails with Liquid
    • Email Deliverability
  • Encharge API
  • API Documentation
  • Transactional Email API
    • Overview
      • Pricing
    • Benefits and Features
    • Technical Overview
    • Send an email from template
    • Send custom HTML email
    • Send a plain-text email
    • Authentication
    • Reference
    • Sending to unsubscribed contacts
  • Advanced
    • Activity Stream
Powered by GitBook
On this page
  • Benefits
  • Getting Started
  • 0. Create an account and get your API key
  • 1. Create an email template
  • 2. Send a request to the Transactional Email API

Was this helpful?

  1. Transactional Email API

Overview

This supplementary API allows you to send transactional emails via Encharge.

PreviousAPI DocumentationNextPricing

Last updated 3 years ago

Was this helpful?

Encharge really shines when it comes to sending automated emails. However, if you need to send transactional emails (e.g. password resets), this API has got your back.

For example, you can use this API to send emails like:

  • Password reset email

  • Single sign-on email with a magic login link

  • Payment receipt email

  • and more

Benefits

Sending HTML over email is a mess. Knowing what email clients support what HTML features can be a full-time job.

With Encharge, you can use our Visual Drag-and-Drop editor or our Simple editor to create a standard-compliant email that will look properly in all email clients. Then, you can send the template using this API.

Further reading:

  • of sending transactional email via Encharge.

Getting Started

0. Create an account and get your API key

1. Create an email template

2. Send a request to the Transactional Email API

const axios = require('axios');

// Send a POST request
axios({
  method: 'post',
  url: 'https://api.encharge.io/v1/emails/send?token=yourAPIKey',
  data: {
    "to": "recipient@acme.com",
    // Name of the template you created in step 1.
    "template": "Template Name",
    /**
   * Dictionary of properties to be replaced in the email.
   * For example, passing
   * `{ "loginURL": "https://app.encharge.io/login/3n2l3ad99"}`
   * will replace
   * `{{ loginURL }}` in the email body or subject.
   *
   */
    "templateProperties": {
      "loginURL": "https://app.encharge.io/login/3n2l3ad99"
    }
  }
});

If you haven't registered for Encharge yet, . Then, get your API key from .

Open the in Encharge. Click the + icon in the lower-left to create a new email. You can skip this step if you've already created your email template.

An example follows in Node.js. You can use to generate an example in your preferred language.

Explore more benefits
What are transactional emails?
11 Best Practices for Transactional Email Marketing
create an account
your Account
Emails section
API documentation in Postman