BSG utilizes HTTP cookies (and similar or complementary technologies) to 1) make this website safe, functional, and accessible (through the use of mandatory cookies) and 2) understand how you use our website (through the use of optional cookies) in order to improve your experience and to provide you with personalized content.

The information in the cookie text files may be related to your personal preferences or your device and is intended to make the site operate according to your expectations. The information contained in cookies does not usually identify your identity directly but is helpful in providing you with a more personalized user experience.

In accordance with the requirements of the General Data Protection Regulation (GDPR) privacy and security law that governs how the personal data of individuals in the EU may be processed and transferred, we provide you the possibility to prohibit the use of certain types of cookies when you use our website.

Read our Cookie Notice and the Privacy Policy for detailed information on how BGS collects and uses cookies. Please note that prohibiting the use of certain types of cookies may affect your interaction with the website and limit the accessibility of services we offer you. Choose the appropriate category below to learn more and to disable cookies.

Accept All cookies*
*Recommended for comfortable use of the site
Accept only necessary cookies
Accept only selected cookies
Necessary cookies
Social media
Analytics
Marketing

BSG migrated to the new DevPortal
to ship the latest One API versions faster

Use it for up-to-date endpoints, guides, and changelogs

Go to the new DevPortal
Developer Docs
Number Intelligence

Send email template

This API method allows you to send an email with dynamic content by referencing an email template (specifying template id). You can customize the content of the email with variables, and you also have the option to embed inline media files.

To send email template, make a request to this URL:

Request parameters

Parameter Required Type Description
to Yes array List of email addresses to send the email to.
from Yes string The sender’s email address.
template_id Yes integer ID of the email template to be used for the email’s content.
subject Yes string Subject line of the email.
template_content Yes object JSON object with key-value pairs for dynamic content in the email template.
inlines No array List of inline media files to be embedded in the email.
name No string The name of the inline media file.
cid No string Content-ID for embedding the media file.
contentType No string Type of the media file (e.g., image/jpeg).
content No string Base64-encoded content of the media file.

Request sample


{ 

  "to": [ 

    "[email protected]" 

  ], 

  "from": "[email protected]", 

  "template_id": 1, 

  "subject": "string", 

  "template_content": { 

    "name": "John Doe", 

    "order": "#1234" 

  }, 

  "inlines": [ 

    { 

      "name": "string", 

      "cid": "string", 

      "contentType": "string", 

      "content": "string" 

    } 

  ] 

}

Response parameters

Parameter Type Description
message_id string A unique identifier for the message sent.

If the request is successful, you will receive a response:


{ 

  "message_id": "string" 

}

Interested in a special offer?

Ready to reach further?
Let’s talk

I agree to BSG privacy policy
Submit

Useful Materials

WhatsApp Business API: Complete Guide — Setup, Pricing, Use Cases [2026]

WhatsApp Business API for 2026 — setup steps, the new per-message pricing model, and proven use cases by industry.

What Is CPaaS? The Complete Business Guide to Communications Platform as a Service

What is CPaaS? The cloud API layer that adds SMS, WhatsApp, voice & OTP to your apps — how it works and why it beats a multi-vendor stack.

One Communication API for SMS, WhatsApp, Viber & RCS — Why It Beats Five

Why one communication API for SMS, WhatsApp, Viber & RCS beats five separate integrations — cascade fallback, unified reports.