Email API with Usage-based pricing

PAYG Email API For Your Transactional Emails

Start with 1,000 free emails per month. Then take advantage of our PAYG, usage-based pricing plan at $0.5 per 1,000 and pay only for what you send. No more, no less.

Quick and easy integration

Start sending emails in minutes

Our APIs come with OpenAPI specs for easy and fast integration

object
object
object
curl https://api.ahasend.com/v1/email/send
    -X POST
    -H 'Content-Type: application/json'
    -H 'X-Api-Key: YOUR-API-KEY'
    -d '{
        "from": {
            "name": "My awesome startup"
            "email": "[email protected]"
        },
        "recipients": [
            {
                "name": "Someone",
                "email": "[email protected]"
            }
        ],
        "content": {
            "subject": "Sample email",
            "text_body": "Plain text body",
            "html_body": "<p>This is the <b>HTML</b> body</p>",
        }
    }'

Install dependencies

$ npm i axios
const axios = require('axios');

const email = {
    from: {
        name: 'My awesome startup',
        email: '[email protected]',
    },
    recipients: [
        {
            name: 'Someone',
            email: '[email protected]',
        }
    ],
    content: {
        subject: 'Sample email',
        text_body: 'Plain text body',
        html_body: '<p>This is the <b>HTML</b> body</p>',
    },
};
axios.post('https://api.ahasend.com/v1/email/send', email, {
  headers: {
    'Content-Type': 'application/json',
    'X-Api-Key': 'YOUR-API-KEY',
  }
}).then((response) => {
    console.log(response);
});

Install dependencies

$ go get gopkg.in/gomail.v2
                                                email := gomail.NewMessage()
email.SetAddressHeader("From", "[email protected]", "My awesome startup")
email.SetAddressHeader("To", "[email protected]", "Someone")
email.SetHeader("Subject", "Sample email")
email.SetBody("text/plain", "Plain text body")
email.SetBody("text/html", "<p>This is the <b>HTML</b> body</p>")

// Port can be 25, 2525, or 587
d := gomail.NewDialer("send.ahasend.com", 587, "YOUR_SMTP_USERNAME", "YOUR_SMTP_PASSWORD")
if err := d.DialAndSend(msg); err != nil {
    log.Fatal(err)
}

Install dependencies

$ gem install httparty
require 'httparty'

class AhaSend
  include HTTParty

  base_uri 'https://send.ahasend.com'
  headers 'X-Api-Key' => ENV['AHASEND_API_KEY'], 'Content-Type' => 'application/json'

  def initialize(from_name:, from_email:)
    @from_name = from_name
    @from_email = from_email
  end

  def send_email(subject:, html_body:, recipient_email:, recipient_name: nil, text_body: nil)
    email = {
      from: { name: @from_name, email: @from_email },
      recipients: [{ name: recipient_name, email: recipient_email }],
      content: { subject:, html_body:, text_body: },
    }

    self.class.post('/v1/email/send', body: email)
  end
end

ahasend = AhaSend.new(from_name: 'My awesome startup', from_email: '[email protected]')
ahasend.send_email(
  subject: 'Sample email',
  html_body: '<p>This is the <b>HTML</b> body</p>',
  text_body: 'Plain text body',
  recipient_name: 'Someone',
  recipient_email: '[email protected]'
)

Install dependencies

$ python -m pip install requests
import requests
email = {
    'from': {
        'name': 'My awesome startup',
        'email': '[email protected]',
    },
    'recipients': [
        {
            'name': 'Someone',
            'email': '[email protected]',
        }
    ],
    'content': {
        'subject': 'Sample email',
        'text_body': 'Plain text body',
        'html_body': '<p>This is the <b>HTML</b> body</p>',
    },
}
headers = {
    'X-Api-Key': 'YOUR_API_KEY',
    'Content-Type': 'application/json'
}
r = requests.post('https://api.ahasend.com/v1/email/send', json=email, headers=headers)
print(r.json())
$email = [
    'from' => [
        'name' => 'My awesome startup',
        'email' => '[email protected]',
    ],
    'recipients' => [
        [
            name: 'Someone',
            email: '[email protected]',
        ]
    ],
    'content' => [
        'subject' => 'Sample email',
        'text_body' => 'Plain text body',
        'html_body' => '<p>This is the <b>HTML</b> body</p>',
    ],
];
$options = array(
  'http' => array(
    'header'  => "Content-type: application/json\r\nX-Api-Key: YOUR-API-KEY",
    'method'  => 'POST',
    'content' => json_encode($email)
  )
);
$context  = stream_context_create($options);
$resp = file_get_contents('https://api.ahasend.com/v1/email/send', FALSE, $context);
var_export($resp, TRUE);

Fair and simple usage-based pricing

Usage-based, Pay As You Go (PAYG) Pricing plan, so that you only pay for what you use.

Start for free
No credit card required
object
object

Features

Thoughtfully crafted for sending transactional emails at any scale

Improved Deliverability

Ensure Reliable and Fast Email Delivery

With millions of emails delivered each month, AhaSend offers fast, reliable email delivery. Our focus on transactional emails ensures industry-leading speed and optimized inbox placement.

  • Proven track record with millions of emails sent monthly
  • Industry-leading delivery times for faster communication
  • Optimized for fast transactional email delivery
  • Enhanced inbox placement for critical emails
Deliverability
Email reports
Comprehensive Reporting

Detailed Insights on Email Performance

Get full visibility into your email performance with AhaSend's detailed reporting tools. From delivery times to bounce reasons, our reports provide the data you need to optimize every campaign.

  • Real-time tracking for sent emails
  • Monitor delivery times and status updates
  • Detailed bounce reason reports to improve future sends
Real-Time Notifications

Stay Informed with Webhook Alerts

Stay up-to-date with real-time notifications using AhaSend's Webhooks. Receive instant updates on delivery events, so you’re always informed about the status of your emails, from sent to delivered and everything in between.

  • Real-time alerts for email delivery events
  • Track statuses like queued, delivered, bounced, opened, clicked and more
  • Easily integrate with your apps and dashboards for seamless email experience.
Real-time email notifications with AhaSend Webhooks
Integrate email into your apps using Email Routes
Email Routing Solutions

Seamlessly Integrate Incoming Emails into Apps

AhaSend’s Email Routing feature allows you to automatically direct incoming emails to the right applications. By parsing and forwarding messages based on predefined criteria, you can streamline workflows and enhance automation within your system.

  • Parse incoming emails and extract key data
  • Route messages to specific applications or endpoints
  • Separate replies from quoted text
  • Customize routing rules to fit your unique needs
Domain Reputation Protection

Safeguard Your Domain and Deliverability

AhaSend helps protect your sending domain with best-in-class tools for DNS configuration and monitoring. With automated setup and real-time monitoring, we ensure your domain’s reputation stays intact, enhancing deliverability and preventing errors that can impact inbox placement.

  • Enforce best practices for DNS setup to optimize deliverability
  • Automated DNS configuration in seconds
  • Continuous monitoring of domain and DNS status
  • Proactive alerts to prevent reputation damage from misconfigurations
Automated DNS setup in seconds for sending emails
Data retention and email security
Advanced Email Security

Keep Your Email Data Safe and Compliant

At AhaSend, email security is a top priority. Our customizable retention policies and automated blocking features protect your email data while keeping you compliant with privacy standards. Reduce risks and safeguard your communications with proactive security measures designed to prevent threats like typo-squatting and toxic domain activity.

  • Customizable data retention periods to meet compliance needs
  • Automated blocking of emails to tempmail and suspicious/toxic domains
  • Prevention of typo-squatting attacks by filtering domains with typos
Industry-specific use cases

How Businesses Use AhaSend’s Email API

AhaSend’s transactional email solutions are tailored to meet the unique needs of various industries. Whether you’re in e-commerce, SaaS, or fintech, our flexible API supports seamless integration and reliable email delivery, helping you communicate effectively with your users.

E-commerce

Send order confirmations, shipping updates, and personalized notifications to enhance customer experience and boost engagement.

SaaS

Manage user authentication, account notifications, and feature updates with ease using our reliable API for smooth, timely communication.

Social Networks

Deliver notifications, friend requests, and activity updates to keep users connected and engaged on your platform.

Recruitment Job Boards

Send job alerts, application updates, and interview reminders to streamline the hiring process for candidates and recruiters.

Online Education Platforms

Automate course enrollment confirmations, assignment notifications, and progress reports to improve student engagement and retention.

Fintech and Financial Services

Provide real-time transaction alerts, account updates, and security notifications for a seamless customer experience.

Support and Ticketing Systems

Ensure prompt response times by automating ticket confirmations, status updates, and resolution notifications.

Booking and Reservations

Send booking confirmations, reminders, and cancellation notifications to keep customers informed and satisfied.

Real Estate Platforms

Automate property alerts, appointment confirmations, and follow-up emails to keep buyers, renters, and agents informed throughout the property search and transaction process.

Land your emails in the inbox, fast.