Download OpenAPI specification:
API for sending emails with optional attachments, templates, and other metadata.
This API uses versioned endpoints. All endpoints must include the version in the URL path (e.g., /v1/email/send).
All requests require a valid API key passed in the Authorization header as a Bearer token.
Returns information about supported API versions and the current version
curl --request GET \ --url https://custom_endpoint.send.laneful.net/v1/versions
{- "supported_versions": [
- "v1"
], - "current_version": "v1"
}Send one or more emails. The API accepts the request and queues the emails for sending. Returns immediately with an "accepted" status.
List of emails to send
Array of objects (Email) Default: [] List of emails to send. Cannot be empty. |
{- "emails": [
- {
- "from": {
- "email": "sender@example.com",
- "name": "Sender Name"
}, - "to": [
- {
- "email": "recipient@example.com",
- "name": "Recipient Name"
}
], - "subject": "Test Email",
- "text_content": "This is a test email"
}
]
}{- "status": "accepted"
}