Transactional
Send email
Send emails with a single API call.
POST
/v1/send
Bearer*
curl --request POST \
--url https://api.useplunk.com/v1/send \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: "application/json"' \
--data '{
"to": "<to>",
"subject": "<subject>",
"body": "<body>"
}'
Body
torequired
string or string[]
A single email address or an array of email addresses.
subjectrequired
string
The subject of the email.
bodyrequired
string
The body of the email.
name
string
Override the name of the sender. Defaults to the project name.
from
string
Override the email of the sender. Defaults to your verified email.
Headers
Content-Typerequired
string
application/json
Response
success
boolean
Indicates whether the call was successful.
emails
Email Object
timestamp
datetime
The timestamp of the event.
{
"success": true,
"emails": [
{
"contact": {
"id": "80d74d13-16eb-48c5-bc2b-aae6fd5865cc",
"email": "hello@useplunk.com"
},
"email": "ebd44b76-9e1d-4826-96a1-9a240c42a939"
},
{
"contact": {
"id": "8f33fe24a-1ce7-4498-8769-f80d67b4e59d",
"email": "billing@useplunk.com"
},
"email": "bd2d0ece-7a4e-48b8-a8be-be5af077adc1"
}
],
"timestamp": "1970-01-01T00:00:00.000Z"
}
curl --request POST \
--url https://api.useplunk.com/v1/send \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: "application/json"' \
--data '{
"to": "<to>",
"subject": "<subject>",
"body": "<body>"
}'
{
"success": true,
"emails": [
{
"contact": {
"id": "80d74d13-16eb-48c5-bc2b-aae6fd5865cc",
"email": "hello@useplunk.com"
},
"email": "ebd44b76-9e1d-4826-96a1-9a240c42a939"
},
{
"contact": {
"id": "8f33fe24a-1ce7-4498-8769-f80d67b4e59d",
"email": "billing@useplunk.com"
},
"email": "bd2d0ece-7a4e-48b8-a8be-be5af077adc1"
}
],
"timestamp": "1970-01-01T00:00:00.000Z"
}