v1

latestOpenAPI 3.1.02026-07-24700259.3 KB
EMAILS

Send a MIME email

Send an email by supplying a pre-encoded MIME string

post/email/mime

Request body

mime_emailstring required

A valid MIME-encoded string that has been Base64 encoded

schedulestring

A timestamp that when passed allows you to schedule an email for sending. Must be in the future and within the next 3 days.<br />The api response will include a schedule_id property which can then be used alongside webhooks (An X-Smtp2go-Schedule-Id header is added to the sent email corresponds to this id). A total of 50,000 emails can be queued at any one time.

fastacceptboolean

If true, the email will be accepted immediately and sent in a background process. Use webhooks if you need information about final delivery to the recipient. This will soon become the default method of sending via API.

Response

Mime email sent

request_idstring required

Example response

{
  "request_id": "aa253464-0bd0-467a-b24b-6159dcd7be60",
  "data": {
    "succeeded": 1,
    "email_id": "1u0SwL-B9zBpi9ffUq-JAB2",
    "schedule_id": "caa928f4-24ec-4a68-bcfc-1fd2596342f0"
  }
}