Send an email
Send a transactional email to a contact (or create it with to.create: true), with an optional subject line and reply-to.
Body parameters
| business_id | string |
| channelrequired | string |
| torequired | object |
| subject | string |
| bodyrequired | string |
| message_type | string |
| reply_to | string |
| cc | string[] |
| bcc | string[] |
- Email uses
to.emailand a free-formbody; passsubjectto set the subject line (free-text emails without one default to "Notification"). - Authorize email sends with either
messages:sendor the least-privilegeemail:sendscope. message_typedefaults totransactional(bypasses marketing opt-outs, never an 'all' block); setmarketingto honour marketing opt-outs, double opt-in and the contact's recorded email consent.reply_tois accepted only when it matches the active sender address for that business; configure sender/reply identity in Blueticked before sending.cc/bcc(arrays of addresses, max 50 each) are accepted on transactional email only: any cc/bcc address on the suppression list (opted-out / bounced / complained) is silently dropped, and the primary recipient must pass or the whole send is rejected. Marketing email rejects cc/bcc outright (see the marketing-email example).- Emails send through the selected business's connected sender identity. If multiple email channels exist, pass business_id.
- A one-click unsubscribe header is added automatically; bounces and complaints auto-suppress the recipient.
curl -X POST "https://app.blueticked.com/api/v1/messages" \
-H "Authorization: Bearer $BLUETICKED_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: change-me-per-request-0001" \
-d '{
"business_id": "22222222-2222-4222-9222-222222222222",
"channel": "email",
"to": {
"email": "sam@example.com"
},
"subject": "Your statement is ready",
"body": "Hi Sam, your May statement is attached in your account.",
"message_type": "transactional",
"reply_to": "accounts@yourbusiness.co.za",
"cc": [
"colleague@yourbusiness.co.za"
],
"bcc": [
"archive@yourbusiness.co.za"
]
}'Response
{
"message_id": "763c4dc3-d46b-4c10-8bd4-3f233a933ea0",
"conversation_message_id": "5592edf6-d7ae-4198-962e-3e8ebe83bb49",
"conversation_id": "fa3efd47-67b2-428c-b75f-17d1dd2e9790",
"status": "queued",
"contact_id": "ff506e53-e2f0-4d92-884a-dab77d628bad",
"contact_created": false,
"request_id": "req_b2e3d610e10f1b07468721ee98f0e1d2"
}