Skip to main content
POST
/
v1
/
emails
/
batch
cURL
curl --request POST \
  --url https://app.mailrify.com/api/v1/emails/batch \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "to": "<string>",
    "from": "<string>",
    "subject": "<string>",
    "templateId": "<string>",
    "variables": {},
    "replyTo": "<string>",
    "cc": "<string>",
    "bcc": "<string>",
    "text": "<string>",
    "html": "<string>",
    "headers": {},
    "attachments": [
      {
        "filename": "<string>",
        "content": "<string>"
      }
    ],
    "scheduledAt": "2023-11-07T05:31:56Z",
    "inReplyToId": "<string>"
  }
]
'
{
  "data": [
    {
      "emailId": "<string>"
    }
  ]
}
Send up to 100 emails in a single request.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
Maximum array length: 100
to
required
from
string
required
subject
string

Optional when templateId is provided

Minimum string length: 1
templateId
string

ID of a template from the dashboard

variables
object
replyTo
cc
bcc
text
string | null
Minimum string length: 1
html
string | null
Minimum string length: 1
headers
object

Custom headers to included with the emails

attachments
object[]
Maximum array length: 10
scheduledAt
string<date-time>
inReplyToId
string | null

Response

200 - application/json

List of successfully created email IDs

data
object[]
required