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://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.
curl -X POST https://maillogic.io/v1/send \ -H "X-API-Key: mlk_your_key_here" \ -F "[email protected]" \ -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://maillogic.io/v1/send", headers={"X-API-Key": "mlk_your_key_here"}, data={ "from_email": "[email protected]", "to_email": "[email protected]", "subject": "Hello from MailLogic", "text_content": "This email was sent through the MailLogic API.", }, ) print(response.json())
{ "status": "queued", "message_id": "ml_8f21c0a4e7", "from": "[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 on a domain you've set up and enabled for sending. 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.