Sending
Send an email
The shape of a simple, server-side email request.
Make a sending request
Send a JSON request from your server with an authenticated sender, a recipient, a subject, and email content. The examples below show a conceptual API shape; supported fields and endpoints need verification against the live service.
fetch('https://api.sendlom.com/emails', { method: 'POST', headers: { Authorization: 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json' }, body: JSON.stringify({ from: 'hello@example.com', to: 'alex@example.com', subject: 'Welcome aboard' })});Understand the example fields
The from field identifies the sender, to identifies the recipient, and subject is the message’s subject line. Supply text or HTML content using the fields supported by your sending API.
Keep the response
Save the message ID returned by the service. Use it as the reference for later delivery events or support investigations. Do not treat acceptance by the API as confirmation that the recipient server accepted the message.
Handle a rejected request
Check your authentication, sending domain, recipient, and request fields before retrying. Avoid blindly retrying a request whose final result is unknown, because a duplicate message may result.