curl --request POST \
--url https://api.vambe.me/api/public/email/send \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"to": "jsmith@example.com"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({to: 'jsmith@example.com'})
};
fetch('https://api.vambe.me/api/public/email/send', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.vambe.me/api/public/email/send"
payload = { "to": "jsmith@example.com" }
headers = {
"x-api-key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Send an email
Sends an email to one or more contacts identified by their email address (βtoβ accepts a single email or an array of up to 20), from one of the account verified email channels. Use a saved template (βtemplate_idβ or βtemplate_nameβ, plus βvariablesβ) or free-form content (βsubjectβ and βhtml_bodyβ). If no contact exists for a recipient address, one is created. When the account has more than one verified channel, βfromβ is required to pick the sender address. Single-recipient sends also accept βccβ and βbccβ (up to 10 each): one message is sent where cc recipients are visible to everyone. Multi-recipient βtoβ arrays instead send an individual private copy per recipient. The response contains a per-recipient result list; βsuccessβ is true only when every recipient succeeded.
curl --request POST \
--url https://api.vambe.me/api/public/email/send \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"to": "jsmith@example.com"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({to: 'jsmith@example.com'})
};
fetch('https://api.vambe.me/api/public/email/send', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.vambe.me/api/public/email/send"
payload = { "to": "jsmith@example.com" }
headers = {
"x-api-key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Body
The email payload
Response
Send processed. Returns { success, results: [{ to, success, error? }] } with one entry per recipient.
Was this page helpful?
