REST API

Getting Started with Domail: REST API

Welcome! In previous articles, we demonstrated how to use domail for sending emails in SMTP relay mode and campaign mode for creating campaigns. Today, we will show how it's possible to integrate domail via REST API.

  • 1. Introduction to REST API


    Domail has a default REST API located at /dir/domail-input-rest. The exact form of this API is defined in Swagger. The most basic way to send an email through this API is to use the /email/send service. The API is protected by authorization using basic authentication, with a username and password entered during the initial configuration. These can be changed at any time in the Apache server settings.

    REST API call
  • 2. Many ways how to use REST API


    For sending emails, we have a total of 4 types of services, including the elementary basic send service we just demonstrated. There are also more advanced services that can be set with priority, duplicates, and statistical data, as well as services for sending emails with a template, where we can use an existing template. We'll show this in future blogs.

    REST API Documentation
To report a bug, please use this form. Please provide the URL of the page where you experienced the bug if possible.