curl --request POST \
--url https://api.lettermint.co/v1/send/batch \
--header 'Content-Type: application/json' \
--header 'x-lettermint-token: <api-key>' \
--data '
[
{
"from": "<string>",
"to": [
"<string>"
],
"subject": "<string>",
"route": "<string>",
"cc": [
"<string>"
],
"bcc": [
"<string>"
],
"reply_to": [
"<string>"
],
"headers": {
"X-Custom-Header": "custom-value",
"X-Campaign-ID": "12345"
},
"metadata": {
"user_id": "123",
"campaign_id": "welcome-2025"
},
"tag": "welcome-email",
"html": "<string>",
"text": "<string>",
"attachments": [
{
"filename": "<string>",
"content": "<string>",
"content_id": "<string>"
}
]
}
]
'[
{
"message_id": "<string>",
"status": "pending"
}
]curl --request POST \
--url https://api.lettermint.co/v1/send/batch \
--header 'Content-Type: application/json' \
--header 'x-lettermint-token: <api-key>' \
--data '
[
{
"from": "<string>",
"to": [
"<string>"
],
"subject": "<string>",
"route": "<string>",
"cc": [
"<string>"
],
"bcc": [
"<string>"
],
"reply_to": [
"<string>"
],
"headers": {
"X-Custom-Header": "custom-value",
"X-Campaign-ID": "12345"
},
"metadata": {
"user_id": "123",
"campaign_id": "welcome-2025"
},
"tag": "welcome-email",
"html": "<string>",
"text": "<string>",
"attachments": [
{
"filename": "<string>",
"content": "<string>",
"content_id": "<string>"
}
]
}
]
'[
{
"message_id": "<string>",
"status": "pending"
}
]Project-specific Sending API token. Find this in your project settings.
Your project's Sending API token
Optional idempotency key to prevent duplicate sends
998Custom headers to include in the email.
{
"X-Custom-Header": "custom-value",
"X-Campaign-ID": "12345"
}Metadata to track with the email (not added as email headers).
{
"user_id": "123",
"campaign_id": "welcome-2025"
}Tag to categorize and filter emails (alphanumeric, underscores, hyphens, spaces allowed).
"welcome-email"
33