Skip to main content
POST
/
v1
/
emails
/
batch
cURL
curl --request POST \
  --url https://api.transmit.dev/v1/emails/batch \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "from": "<string>",
    "to": "[email protected]",
    "from_name": "<string>",
    "reply_to": "[email protected]",
    "cc": "[email protected]",
    "bcc": "[email protected]",
    "subject": "<string>",
    "html": "<string>",
    "text": "<string>",
    "template_id": "<string>",
    "template_friendly_name": "<string>",
    "variables": {},
    "tags": [
      "<string>"
    ],
    "headers": {},
    "attachments": [
      {
        "filename": "<string>",
        "content": "<string>",
        "type": "<string>",
        "disposition": "attachment",
        "contentId": "<string>"
      }
    ],
    "scheduled_for": "2023-11-07T05:31:56Z",
    "batch_id": "<string>",
    "message_stream": "transactional",
    "track_opens": true,
    "track_clicks": true
  }
]
'
{
  "data": [
    {
      "id": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Enter your API key with 'tx_' prefix. Get your API key from the dashboard.

Body

application/json
Required array length: 1 - 100 elements
from
string
required
Minimum string length: 1
to
required
from_name
string
reply_to
string<email>
cc
bcc
subject
string
Minimum string length: 1
html
string
text
string
template_id
string
template_friendly_name
string
variables
object
tags
string[]
headers
object
attachments
object[]
scheduled_for
string<date-time>
batch_id
string
message_stream
enum<string>
Available options:
transactional,
broadcast
track_opens
boolean
track_clicks
boolean

Response

Batch accepted for processing

data
object[]
required

Array of results for each email in the batch