Home Send API
Send API

Send from your domain with one request.

When your app needs to send email from your own domain identity, post to the Send API. Here's a quick demo to show the shape of a request — grab an API key from your dashboard and you're ready.

POST https://api.maillogic.io/v1/send Authenticate with your X-API-Key header.
Quick example

One call sends a message.

Send a plain-text email from an address on your domain to any recipient. Switch between curl and Python below.

send.sh
curl -X POST https://api.maillogic.io/v1/send \
  -H "X-API-Key: mlk_0123456789abcdef_N7JqK2vP8xR4mT6yU9cD3fG5hL1sW0aBzEoIuYpQkVc" \
  -F "[email protected]" \
  -F "display_name=MailLogic Support" \
  -F "[email protected]" \
  -F "subject=Hello from MailLogic" \
  -F "text_content=This email was sent through the MailLogic API."
response 200 OK
{
  "status": "success",
  "message": "Email sent from [email protected] to [email protected]",
  "message_id": "<[email protected]>",
  "from_email": "[email protected]",
  "to_email": ["[email protected]"]
}

This is a demo, not full documentation

The example above is here to show that API sending works and what a request looks like. The from_email address must be an active MailLogic email account on the domain tied to the API key, with SMTP enabled and a password set. An optional nonblank display_name overrides the sender account's Display Name for this request. If it is omitted or blank, MailLogic uses the Display Name from Accounts; if that is also unset, the bare email address is used. The domain's sending DNS must also be verified. API sending is available on Starter and Founder plans. Full endpoint reference comes later.

Get an API key

Enable sending on your domain, then create a key in the dashboard to start posting to the API.