Skip to main content

How to send emails via API

The Elastic Email API lets you send emails and manage your account directly from your application. This article covers what you need to get started and where to find the full documentation and code libraries.

Written by Support Team
Updated over a week ago

Get your API Key

Every API request requires an API key for authentication. To create one:

  • Log in to your Elastic Email account.

  • Go to Settings > API.

  • Click Create API Key, give it a name, and set the permissions you need.

  • Copy the key and store it somewhere secure, it is only shown once.

For a full walkthrough, see the API Settings guide.

IMPORTANT SECURITY NOTICE: Your API key is like a password. Do not share it with

unauthorized persons or include it in public code repositories. If your key is

compromised, delete it immediately.

Choose your integration method

Use an official library

Elastic Email provides libraries for the most common languages. Each library page includes installation steps, authentication instructions, and code samples:

Direct REST API documentation

If your language is not in the list above, you can use any HTTP client and call the API

directly.

The full REST API v4 reference is available at: https://elasticemail.com/developers/api-documentation/rest-api

It covers detailed information including:

  • all available endpoints,

  • request and response formats,

  • authentication procedures,

  • error codes and their meanings.

If you have any additional questions, please contact our 24/7 Customer Support for assistance.

Did this answer your question?