/api/v1/emailer/send
Queues or immediately sends an email through the organisation mail system. Supports HTML body, attachments (from blob storage, URL, or raw text), and priority control.
This endpoint requires a valid API key passed as a query parameter or Bearer token.
Get your API keyParameters
1 query, 12 body parameters
apiKeystringrequiredYour BizKitHub API key (passed as GET parameter).
Key format: A 32-character string matching: ^(PROD|DEV_|ROOT)[A-Za-z0-9]{28}$
Prefixes: PROD (production key), DEV_ (individual developer), ROOT (system key with no limits). Learn more
subjectstringrequiredEmail subject line.
fromstringSender email address or name+email. If omitted, organisation default is used.
tostringrequiredRecipient email address.
ccstringCC recipient email address.
bccstringBCC recipient email address.
replyTostringReply-To email address.
prioritynumberEmail priority (lower = higher priority). Default queue priority if omitted.
notestringInternal note attached to the email record (not sent to recipient).
htmlBodystringHTML content of the email body.
tagstringTag for categorizing the email (e.g. for analytics).
forceSendNowbooleanIf true, send immediately bypassing the queue. Default: false.
attachmentListobject | object | object[]List of attachments. Each item is one of blobToken, attachmentUrl, or rawTextContent.
Example Request
JavaScript fetch
const response = await fetch("https://api.bizkithub.com/api/v1/emailer/send?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
"subject": "Order confirmation #12345",
"from": "support@example.com",
"to": "customer@example.com",
"cc": "example_cc",
"bcc": "example_bcc",
"replyTo": "example_replyTo",
"priority": 1,
"note": "example_note",
"htmlBody": "example_htmlBody",
"tag": "order-confirmation",
"forceSendNow": false,
"attachmentList": [
[]
]
})
});
const data = await response.json();
console.log(data);Example Response
{
"success": true
}cURL
Command line example
curl -X POST "https://api.bizkithub.com/api/v1/emailer/send?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE" \
-H "Content-Type: application/json" \
-d '{
"subject": "Order confirmation #12345",
"from": "support@example.com",
"to": "customer@example.com",
"cc": "example_cc",
"bcc": "example_bcc",
"replyTo": "example_replyTo",
"priority": 1,
"note": "example_note",
"htmlBody": "example_htmlBody",
"tag": "order-confirmation",
"forceSendNow": false,
"attachmentList": [
[]
]
}'Need an API key?
All BizKitHub API endpoints require authentication via API key.