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.
X-API-Key header.
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.
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."
import requests response = requests.post( "https://api.maillogic.io/v1/send", headers={"X-API-Key": "mlk_0123456789abcdef_N7JqK2vP8xR4mT6yU9cD3fG5hL1sW0aBzEoIuYpQkVc"}, data={ "from_email": "[email protected]", "display_name": "MailLogic Support", "to_email": "[email protected]", "subject": "Hello from MailLogic", "text_content": "This email was sent through the MailLogic API.", }, ) print(response.json())
{ "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.