Send multiple email messages (batch)
curl --request POST \
--url https://api.paubox.net/v1/{api_username}/bulk_messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"messages": [
{
"recipients": [
"recipient@host.com",
"Recipient Name <recipient@host.com>"
],
"bcc": [
"recipient3@host.com",
"Recipient Name <recipient4@host.com>"
],
"headers": {
"subject": "sample email",
"from": "sender@authorized_domain.com",
"reply-to": "Sender Name <sender@authorized_domain.com>",
"x-custom-header": "sample custom header"
},
"content": {
"text/plain": "Hello World!",
"text/html": "<html><body><h1>Hello World!</h1></body></html>"
},
"attachments": [
{
"fileName": "hello_world.txt",
"contentType": "text/plain",
"content": "SGVsbG8gV29ybGQh"
}
],
"allowNonTLS": false,
"forceSecureNotification": false
},
{
"recipients": [
"recipient2@host.com",
"Recipient Name <recipient2@host.com>"
],
"headers": {
"subject": "sample email",
"from": "sender@authorized_domain.com",
"reply-to": "Sender Name <sender@authorized_domain.com>"
},
"content": {
"text/plain": "Hello World!",
"text/html": "<html><body><h1>Hello World!</h1></body></html>"
},
"attachments": [
{
"fileName": "hello_world.txt",
"contentType": "text/plain",
"content": "SGVsbG8gV29ybGQh"
}
]
}
]
}
}
'{
"messages": [
{
"sourceTrackingId": "3d38ab13-0af8-4028-bd45-999999999999",
"customHeaders": {
"X-Custom-Header": "value"
},
"data": "Service OK"
},
{
"sourceTrackingId": "3d38ab13-0af8-4028-bd45-000000000000",
"customHeaders": {
"X-Custom-Header": "value"
},
"data": "Service OK"
}
]
}Email API · Messages
Send bulk messages
Sends multiple messages in one request. Paubox recommends batches of 50 or fewer. Source tracking IDs are returned in the same order as the messages array.
POST
/
bulk_messages
Send multiple email messages (batch)
curl --request POST \
--url https://api.paubox.net/v1/{api_username}/bulk_messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"messages": [
{
"recipients": [
"recipient@host.com",
"Recipient Name <recipient@host.com>"
],
"bcc": [
"recipient3@host.com",
"Recipient Name <recipient4@host.com>"
],
"headers": {
"subject": "sample email",
"from": "sender@authorized_domain.com",
"reply-to": "Sender Name <sender@authorized_domain.com>",
"x-custom-header": "sample custom header"
},
"content": {
"text/plain": "Hello World!",
"text/html": "<html><body><h1>Hello World!</h1></body></html>"
},
"attachments": [
{
"fileName": "hello_world.txt",
"contentType": "text/plain",
"content": "SGVsbG8gV29ybGQh"
}
],
"allowNonTLS": false,
"forceSecureNotification": false
},
{
"recipients": [
"recipient2@host.com",
"Recipient Name <recipient2@host.com>"
],
"headers": {
"subject": "sample email",
"from": "sender@authorized_domain.com",
"reply-to": "Sender Name <sender@authorized_domain.com>"
},
"content": {
"text/plain": "Hello World!",
"text/html": "<html><body><h1>Hello World!</h1></body></html>"
},
"attachments": [
{
"fileName": "hello_world.txt",
"contentType": "text/plain",
"content": "SGVsbG8gV29ybGQh"
}
]
}
]
}
}
'{
"messages": [
{
"sourceTrackingId": "3d38ab13-0af8-4028-bd45-999999999999",
"customHeaders": {
"X-Custom-Header": "value"
},
"data": "Service OK"
},
{
"sourceTrackingId": "3d38ab13-0af8-4028-bd45-000000000000",
"customHeaders": {
"X-Custom-Header": "value"
},
"data": "Service OK"
}
]
}Authorizations
Paubox API uses Bearer token authentication in the Authorization header.
Format: Authorization: Bearer YOUR_API_KEY_HERE
Example: Authorization: Bearer 9e5b092b632445b8f570c62ae54f30fda1044305
The legacy format Authorization: Token token=YOUR_API_KEY_HERE is also supported.
Body
application/json
Show child attributes
Show child attributes
Response
Batch accepted
Show child attributes
Show child attributes
⌘I