API ReferenceTransactional EmailSend Transactional Email

    Send Transactional Email

    Send reliable transactional emails like password resets, order confirmations, and system notifications with high delivery rates and real-time tracking.

    POSThttps://tapi.simplysend.email/send

    Parameters

    toRequired
    string
    The email address of the recipient who will receive the message.
    fromRequired
    string
    The verified sender email address or domain you want to send from.
    subjectRequired
    string
    The subject line for the email.
    htmlRequired
    string
    HTML body content. MUST include required template variables. See below compliance template below.
    text
    string
    The plain text version of the email for clients that don't support HTML.
    replyTo
    string
    The email address where recipients' replies should be sent.
    attachments
    array

    An array of objects containing name, contentType, and base64 encoded content.

    Up to 10 attachments per email. Combined size cannot exceed 10MB.

    PDFPNGJPGCSVDOCX
    headers
    object
    Custom key-value pairs to be included in the email headers.
    templateVariables
    object
    Variables to be injected into your dynamic templates.
    RequestPOST
    curl -X POST https://tapi.simplysend.email/send \
      -H "X-Api-Key: your_api_key_here" \
      -H "X-Id: your_account_id" \
      -H "Content-Type: application/json" \
      -d '{
        "to": "recipient@example.com",
        "from": "sender@yourdomain.com",
        "subject": "Hello from Simply Send",
        "html": "<html><body><h1>Hello!</h1><p>Test email.</p><br><br><p>{{company_address_html}}</p><p>{{unsubscribe_email_html}}</p><p>{{report_abuse_email_html}}</p></body></html>",
        "text": "Hello! Test email."
      }'
    {
      "success": true,
      "data": {
        "message": "Email sent successfully",
        "messageId": "0100019a3908b26b-fdaeb60d-bf18-4154-91fd-1552ca877eeb-000000",
        "from": "sender@yourdomain.com",
        "totalRecipients": 1,
        "recipients": [
          {
            "email": "recipient@example.com",
            "status": "sent",
            "role": "to"
          }
        ],
        "status": "sent"
      }
    }

    Compliance Templates