Send Email

// Body sample
{
    "name": "Welcome Email",
    "from":"John@email.com", 
    "fromName": "John from SmarthiveSMS",
    "to":["johndoe@email.com","chalesJames@email.com"], 
    "subject":"Welcome to Smarthive SMS", 
    "html":"Your HTML code",
    "ext_ref":"3823_juw"
}
ext_ref is an optional field. The value must be unique

Send

POST https://smsapi-sur2.onrender.com/api/email/campaign/send_campaign

This endpoint allows you to send SMS Message

Headers

Name
Type
Description

x-api-key*

String

Your API Key

Request Body

Name
Type
Description

name*

String

The name or label for the email campaign or template (used internally).

from*

String

The sender's email address.

fromName*

String

The name to display as the sender (e.g., brand or personal name).

to*

array[string]

A list of recipient email addresses.

subject*

The subject line of the email.

The subject line of the email.

html*

String

The HTML content of the email body.

ext_ref

String

External reference ID for tracking the request (e.g., unique transaction ID).

{
    "status": "ok",
    "description": "Emails processed",
    "message": "Campaign started",
    "campaignId": "68489c7a62af22a517701da6"
}

Last updated