Email API Service for Developers

UniOne powers developers like you with a comprehensive Email API that seamlessly integrates email communication workflows and enhances user engagement in websites and applications.
PHP
Ruby
Python
C#
Node.js
curl
PHP
                                        // Send an email with the UniOne Email API PHP Library
// Learn more -> https://docs.unione.io/en/integrations
// First install with composer: composer require unione/unione-php
require 'vendor/autoload.php';

// Use eu1.unione.io for EU or us1.unione.io for US account
$client = new Unione\UnioneClient('YOUR-API-KEY', 'eu1.unione.io');
$recipients = [
    [
        "email" => 'john@example.com',
        "substitutions" => ["to_name" => 'John Smith']
    ]
];
$body = ["html" => "Hello, {{to_name}}!"];
$mail = new Unione\Model\Email($recipients, $body);
$mail->setFromEmail('user@example.com');
$mail->setSubject('Hello from UniOne');
$response = $client->emails()->send($mail->toArray());
if ($response['status'] == 'success') {
  echo 'Success, job_id='.$response['job_id']."\n";
}

                                        
Ruby
                                        # Send an email with the UniOne Email API Ruby gem
# Learn more -> https://docs.unione.io/en/integrations 
# First install the UniOne Ruby gem: gem install unione-ruby

require 'unione-ruby'
require 'json'

# Use eu1.unione.io for EU or us1.unione.io for US account
unione = UniOne::Client.new(
    hostname: 'eu1.unione.io', api_key: 'YOUR-API-KEY')

message = {}
message[:recipients] = []
message[:recipients] << {
    email: 'john@example.com',
    substitutions: { to_name: 'John Smith' }
}
message[:body] = { html: "Hello, {{to_name}}!" }
message[:from_email]  = 'user@example.com'
message[:subject]  = 'Hello from UniOne'

response = unione.send_email(message: message)

if response.success? && response.to_hash[:body][:status]=='success'
    puts "Success, job_id=" + response.to_hash[:body][:job_id]
end

                                        
Python
                                        # Send an email with the UniOne Web API
# Learn more -> https://docs.unione.io/en/web-api-ref#web-api 
# First install the requests module: pip install requests
import requests

# Use eu1.unione.io for EU or us1.unione.io for US account
base_url = 'https://eu1.unione.io/en/transactional/api/v1'
headers = {
  'Content-Type': 'application/json',
  'X-API-KEY': 'YOUR-API-KEY'
}

request_body = {
    "message": {
        "recipients": [
            {
                "email": "john@example.com",
                "substitutions": { "to_name": "John Smith" }
            }
        ],
        "body": {
            "html": "Hello, {{to_name}}!"
        },
        "subject": "Hello from UniOne",
        "from_email": "user@example.com"
    }
}
response = requests.post(base_url+'/email/send.json',
json=request_body, headers=headers)

if response.ok and response.json()["status"] == 'success':
    print("Success, job_id=" + response.json()["job_id"])

                                        
C#
                                        // Send an email with the UniOne Email API C# library
// Learn how to set up UniOne C# library:
// https://github.com/unione-repo/unione-csharp

using System.Text;
using Microsoft.Extensions.Configuration;
using UniOne.Models;

// Use eu1.unione.io for EU or us1.unione.io for US account
var json = "{\"UniOne\":{" +
    "\"ServerAddress\":\"https://eu1.unione.io/\"," +
    "\"X-API-KEY\":\"YOUR-API-KEY\"}}";

IConfiguration configuration = new ConfigurationBuilder()
    .AddJsonStream(new MemoryStream(Encoding.ASCII.GetBytes(json)))
    .Build();

var uniOne = new UniOne.UniOne(configuration);
var msg = new EmailMessageData {
    FromEmail = "user@example.com",
    Recipients = new List<EmailRecipientData> {
        new EmailRecipientData {
            EmailAddress = "john@example.com",
            Substitutions = new Dictionary<object, object> {
                {"to_name", "John Smith"}
            }
        }
    },
    Subject = "Hello from UniOne",
    Body = new Body { Html = "Hello, {{to_name}}!" }
};

var email = await uniOne.Email.Send(msg);
if (email != null) {
    Console.WriteLine("Success, job_id=" + email.JobId);
} else {
    Console.WriteLine(uniOne.Email.GetError()!.Details!.Message);
}
                                        
Node.js
                                        // Send an email with the UniOne Web API
// Learn more -> https://docs.unione.io/en/web-api-ref#web-api 
// First install node-fetch module: npm install node-fetch
import fetch from "node-fetch"

// Use eu1.unione.io for EU or us1.unione.io for US account
const base_url = 'https://eu1.unione.io/en/transactional/api/v1'
const headers = {
    'Content-Type':'application/json',
    'X-API-KEY':'YOUR-API-KEY'
};

const request = JSON.stringify({
    message: {
        recipients: [{
            email: 'john@example.com',
            substitutions: { to_name: 'John Smith' },
        }],
        body: { html: 'Hello, {{to_name}}!' },
        subject: 'Hello from UniOne',
        from_email: 'user@example.com',
    },
});
fetch(base_url + '/email/send.json', {
    method: 'POST',
    body: request,
    headers: headers
})
.then((response) => response.json())
.then(data => {
    if(data.status == "success") {
        console.log("Success, job_id=" + data.job_id);
    }
});

                                        
curl
                                        # Send an email with the UniOne Web API
# Learn more -> https://docs.unione.io/en/web-api-ref#web-api 

# Use eu1.unione.io for EU or us1.unione.io for US account
curl -X POST \
  https://eu1.unione.io/en/transactional/api/v1/email/send.json \
  -H 'Content-Type: application/json' \
  -H 'X-API-KEY: YOUR-API-KEY' \
  -d '{
  "message": {
    "recipients": [
      {
        "email": "john@example.com",
        "substitutions": {
          "to_name": "John Smith"
        }
      }
    ],
    "body": {
      "html": "Hello, {{to_name}}!"
    },
    "subject": "Hello from UniOne",
    "from_email": "user@example.com"
  }
}

                                        

Trusted by Industry Leaders

Chicco
Futurra
Metropolitan
Pin-up
Rozetka
Sitniks
Viqeo
Wizards
Zoozy

Easy Integration with UniOne’s Email API

Discover the simplicity of integrating UniOne's Email API into your workflow. Whether you opt for one of our existing integrations or craft your bespoke solution using our comprehensive Web API, rest assured, our dedicated 24/7 support team stands by to assist you every step of the way.

Maximize the Potential of Your Email Data

Unleash the power of your email data to personalize campaigns, refine targeting, and foster deeper engagement with your audience. With UniOne's intuitive visual dashboards or API-driven analytics, achieving superior results and cultivating robust customer connections has never been easier.

Protect your email-sending domain

Ensure reliable email delivery with UniOne Email API. Our team with 15+ years of experience operating as an email service provider, thoroughly cares about our IP pools and overall email API service reputation to guarantee our senders the best possible deliverability.

Flexible Uses for Our Email API

Sign-up Emails
Automate account registration confirmations, extend warm welcomes, and offer platform navigation guidance, backed by UniOne's attentive support.
Password Recovery Emails
Effortlessly dispatch automated messages for password resets, bolstering account security within seconds via UniOne's resilient API.
Purchase Confirmation Emails
Ensure seamless transactions by providing detailed receipts and invoices, with UniOne's instant webhooks keeping you informed of real-time status updates.
Accounts Email Alerts
Integrate UniOne seamlessly into your web ecosystem to streamline daily user communication, promptly delivering crucial notifications.
Newsletter Emails
Leverage UniOne's Email API to send out regular newsletters, keeping subscribers informed about the latest updates, promotions, and news pertinent to your platform or enterprise.
Feedback Request Emails
Automate insightful feedback collection by dispatching surveys post-interaction, all facilitated through UniOne's email API.
Log and data retention
Email analytics
Real-time webhooks
Delivery rates
Scalability
Log and data retention

Explore UniOne's logging and data retention functionalities tailored for comprehensive data visibility, precise control, and regulatory compliance over email deliveries. Prioritizing data security and privacy, UniOne ensures adherence to stringent compliance standards.

With UniOne, you keep track of all email-related activities, including sending, receiving, delivery statuses, bounce events, and other relevant interactions. Each single event is timestamped and associated with relevant metadata to provide detailed insights into the email lifecycle.

Email analytics

Harness UniOne's extensive email analytics to refine marketing strategies, enhance audience engagement, and achieve optimal campaign outcomes. Visualize campaign performance through intuitive dashboards, real-time event tracking, and convenient CSV data exports.

Real-time webhooks

Stay ahead with UniOne's real-time webhooks, providing instant updates and notifications on pertinent email events. Armed with timely status updates, optimize your email marketing strategies effectively.

Delivery rates

At UniOne, our highest priority is maintaining the highest email delivery rates. Real-time monitoring, dedicated email deliverability team, and an anti-spam department with over 15 years of experience ensure great results.

For our customers following the industry's best practices, we estimate a 99,88% email delivery rate, validated by our latest statistics.

Scalability

With UniOne's robust email infrastructure, we can process up to 60 million hourly API requests per user, ensuring seamless scalability to accommodate any email volume.

We deliver billions of emails annually, and the total number of messages we process increases by more than 10% each year.

Customer Testimonials

Why Choose Us

Time and Cost Saving
UniOne’s email API services empower developers to access vital features while staying budget-friendly.
Expertise You Can Count On
With over 15 years of experience in email delivery, we ensure that our service is always available when you need it most. Our send email API guarantees consistent reliability for developers and businesses alike.
Results-driven Analytics
Track email events with precision or dive into detailed reports with our email API integration. UniOne delivers the analytics you need to optimize your email campaigns and enhance overall performance.
HTML Email Builder
With over 100 ready-to-use templates and no-code editing features, our AI-powered email design tool also provides comprehensive HTML coding capabilities.
Project Management
With UniOne’s “Projects” feature, you can create multiple environments to manage email sending independently with unique API keys and track unique data for each project in one account.
Exceptional Deliverability
Stay on top of bounced and unsubscribed emails with real-time status updates, ensuring your mailings maintain high deliverability and reach the right audience.
Seamless Email API Integration
Whether you choose SMTP or HTTP integration, UniOne’s email API services offer robust integration options, providing consistent capabilities to suit your workflow.
Customizable for Any Needs
Our email API lets you tailor the tracking of opens and clicks, making UniOne the ideal email API service for developers seeking flexibility and control.

More Useful Tools for Your Business

FAQ

Yes, with our email API, you can send emails with attachments of up to 7MB. The overall email size should not exceed 10MB to be properly delivered to any mailbox.
At UniOne, we provide 24/7 live support in the chat and via email to ensure all our users can get information on how to use our email API services right when they need it.
UniOne email-sending API follows all the best security practices being GDPR compliant and protecting the personal data at all levels. At UniOne, we don’t provide email list management and do not store your contact lists or any other sensitive information on our side – we just process the email API request, fire your emails, and provide the statistics. That’s it.

Get Started for Free

Our users’ satisfaction is our primary value. Thus, we provide each newcomer with a 4-month free trial, including 6,000 monthly emails, to test our capabilities. Our round-the-clock customer care team is ready to assist you with any matters at each step of your journey with UniOne. When you feel ready to upgrade, choose any other tariff from the ones available or contact our sales manager to discuss a customized plan.