Sends the same email to multiple recipients in a single API request. This endpoint is identical to the send email endpoint, with the only difference being that recipients is an array of recipients instead of a single recipient. Maximum limit: 100 recipients per request.
curl --request POST \
--url https://api.autosend.com/v1/mails/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"recipients": [
{
"email": "[email protected]",
"name": "Jane Smith",
"dynamicData": {
"firstName": "Jane",
"orderNumber": "ORD-123",
"orderTotal": "$19.99"
}
},
{
"email": "[email protected]",
"name": "John Doe",
"dynamicData": {
"firstName": "John",
"orderNumber": "ORD-124",
"orderTotal": "$29.99"
}
}
],
"from": {
"email": "[email protected]",
"name": "Your Company"
},
"subject": "Welcome to Our Platform!",
"html": "<h1>Welcome, {{name}}!</h1><p>Thanks for signing up.</p>",
"replyTo": {
"email": "[email protected]"
}
}'
{
"success": true,
"data": {
"batchId": "ae22c1e0-2022-4f6b-bdca-ce94901fbc6e",
"totalRecipients": 2,
"successCount": 2,
"failedCount": 0
}
}
Documentation Index
Fetch the complete documentation index at: https://docs.autosend.com/llms.txt
Use this file to discover all available pages before exploring further.
curl --request POST \
--url https://api.autosend.com/v1/mails/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"recipients": [
{
"email": "[email protected]",
"name": "Jane Smith",
"dynamicData": {
"firstName": "Jane",
"orderNumber": "ORD-123",
"orderTotal": "$19.99"
}
},
{
"email": "[email protected]",
"name": "John Doe",
"dynamicData": {
"firstName": "John",
"orderNumber": "ORD-124",
"orderTotal": "$29.99"
}
}
],
"from": {
"email": "[email protected]",
"name": "Your Company"
},
"subject": "Welcome to Our Platform!",
"html": "<h1>Welcome, {{name}}!</h1><p>Thanks for signing up.</p>",
"replyTo": {
"email": "[email protected]"
}
}'
{
"success": true,
"data": {
"batchId": "ae22c1e0-2022-4f6b-bdca-ce94901fbc6e",
"totalRecipients": 2,
"successCount": 2,
"failedCount": 0
}
}
<token>, where <token> is your auth token.Show child attributes
"[email protected]""Jane Smith"{
"firstName": "Jane",
"orderNumber": "ORD-123",
"orderTotal": "$19.99"
}
Show child attributes
"[email protected]""Cc User Name"Show child attributes
"[email protected]""Bcc User Name"Show child attributes
"[email protected]""Your Company"{
"firstName": "Jane",
"orderNumber": "ORD-123",
"orderTotal": "$19.99"
}
998Example: "Welcome to Our Platform!"{{variableName}}.
Example:<h1>Hello {{firstName}}!</h1>
<p>Your order #{{orderNumber}} has been shipped.</p>
<p>Total: {{orderTotal}}</p>
dynamicData field (either at the root level for all recipients, or per recipient).Example:html: "<p>Hello {{firstName}}! Sending this email via AutoSend.</p>"
dynamicData: {
"name": "Valued Customer",
"firstName": "Valued",
"orderNumber": "ORD-12345",
"orderTotal": "$99.99"
}
"Welcome! Thanks for signing up.""A-abc123"Show child attributes
"[email protected]""John Doe"{
"name": "Jane",
"firstName": "Jane",
"orderNumber": "ORD-12345",
"orderTotal": "$99.99"
}
"unsub_group_123"trueShow child attributes
curl --request POST \
--url https://api.autosend.com/v1/mails/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"recipients": [
{
"email": "[email protected]",
"name": "Jane Smith",
"dynamicData": {
"firstName": "Jane",
"orderNumber": "ORD-123",
"orderTotal": "$19.99"
}
},
{
"email": "[email protected]",
"name": "John Doe",
"dynamicData": {
"firstName": "John",
"orderNumber": "ORD-124",
"orderTotal": "$29.99"
}
}
],
"from": {
"email": "[email protected]",
"name": "Your Company"
},
"subject": "Welcome to Our Platform!",
"html": "<h1>Welcome, {{name}}!</h1><p>Thanks for signing up.</p>",
"replyTo": {
"email": "[email protected]"
}
}'
{
"success": true,
"data": {
"batchId": "ae22c1e0-2022-4f6b-bdca-ce94901fbc6e",
"totalRecipients": 2,
"successCount": 2,
"failedCount": 0
}
}