Download OpenAPI specification:Download
This API allows you to send emails with attachments.
The API uses Bearer Token authentication. You need to provide the token in the Authorization header for all requests. Example:
Authorization: Bearer YOUR_API_KEY
| from required | string The email address of the sender. |
| to required | string The email address of the recipient. |
| subject required | string The subject of the email. |
| text required | string The plain text content of the email. |
| html required | string The HTML content of the email. |
| headers required | string Custom headers as a JSON string. |
| attachments required | Array of strings <binary> [ items <binary > ] Files to be attached to the email. |
{ "from": "sender@example.com", "to": "recipient@example.com", "subject": "Test Email", "text": "Hello, this is a test email!", "html": "<html><body><h1>Hello, this is a test email!</h1><p>Visit <a href='https://www.example.com'>Example</a> for more information.</p></body></html>", "headers": "{\"x-custom-header\": \"Custom header value\", \"x-var\": \"Unwanted header\"}", "attachments": [ "file1.txt", "file2.txt" ] }
{- "message": "Email sent",
- "info": {
- "messageId": "string",
- "envelope": {
- "from": "string",
- "to": [
- "string"
]
}, - "accepted": [
- "string"
], - "rejected": [
- "string"
], - "response": "250 Message Queued",
- "messageSize": 0,
- "envelopeTime": 0,
- "messageTime": 0
}
}