Email API

Send email from your own system

Use this page when you want your website, app, CRM, or checkout system to send email through your approved Bulk Email account. Keep your credentials private and use the exact Sender Name shown in your dashboard.

Endpoint

Send a POST request with JSON data.

POST
https://stk-push.top/api/email
Important: sender_name must be the exact Sender Name available in the user Email API page. This keeps the correct sending identity attached to every request.

Credentials

Use the API username, API key, and API secret from the user dashboard. These credentials should stay on your server, not inside public browser code.

HeaderRequiredMeaning
X-API-USERNAMEYesYour account username.
X-API-KEYYesYour API key.
X-API-SECRETYesYour API secret.
Content-TypeYesUse application/json.

Request fields

FieldRequiredUse
sender_nameYesThe exact Sender Name copied from the Email API page.
emailOne recipient optionUse this for one recipient.
emailsOne recipient optionUse an array, comma-separated list, or line-by-line list.
group_idOne recipient optionSend to a saved contact group.
subjectYesEmail subject.
bodyYesEmail message. It can be plain text or HTML.
formatNoUse text or html. Default is text.
reply_toNoWhere replies should go. Leave empty to use the account email.

Reply-To email

Reply-To is optional, but it is useful when you want customer replies to go to a support inbox instead of the sending mailbox.

With reply_to
Replies go to the email you provide, for example support@example.com.
Without reply_to
The system uses the registered account email as the reply address.

Integration examples

Copy the example that matches your project.

curl -X POST https://stk-push.top/api/email \
  -H 'Content-Type: application/json' \
  -H 'X-API-USERNAME: YOUR_USERNAME' \
  -H 'X-API-KEY: YOUR_API_KEY' \
  -H 'X-API-SECRET: YOUR_API_SECRET' \
  -d '{"sender_name":"✨KIRA BULK SMS✨","email":"customer@example.com","subject":"Payment update","body":"Hello customer, your payment has been received.","format":"text","reply_to":"support@example.com"}'
<?php
$endpoint = 'https://stk-push.top/api/email';

$payload = [
  'sender_name' => '✨KIRA BULK SMS✨',
  'email'       => 'customer@example.com',
  'subject'     => 'Payment update',
  'body'        => 'Hello customer, your payment has been received.',
  'format'      => 'text',
  'reply_to'    => 'support@example.com' // optional
];

$ch = curl_init($endpoint);
curl_setopt_array($ch, [
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_POST           => true,
  CURLOPT_HTTPHEADER     => [
    'Content-Type: application/json',
    'X-API-USERNAME: YOUR_USERNAME',
    'X-API-KEY: YOUR_API_KEY',
    'X-API-SECRET: YOUR_API_SECRET'
  ],
  CURLOPT_POSTFIELDS     => json_encode($payload)
]);

$response = curl_exec($ch);
$error = curl_error($ch);
curl_close($ch);

echo $error ? $error : $response;
const response = await fetch('https://stk-push.top/api/email', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'X-API-USERNAME': 'YOUR_USERNAME',
    'X-API-KEY': 'YOUR_API_KEY',
    'X-API-SECRET': 'YOUR_API_SECRET'
  },
  body: JSON.stringify({
    sender_name: '✨KIRA BULK SMS✨',
    email: 'customer@example.com',
    subject: 'Payment update',
    body: 'Hello customer, your payment has been received.',
    format: 'text',
    reply_to: 'support@example.com' // optional
  })
});

const data = await response.json();
console.log(data);
import requests

url = 'https://stk-push.top/api/email'
headers = {
    'Content-Type': 'application/json',
    'X-API-USERNAME': 'YOUR_USERNAME',
    'X-API-KEY': 'YOUR_API_KEY',
    'X-API-SECRET': 'YOUR_API_SECRET'
}
payload = {
    'sender_name': '✨KIRA BULK SMS✨',
    'email': 'customer@example.com',
    'subject': 'Payment update',
    'body': 'Hello customer, your payment has been received.',
    'format': 'text',
    'reply_to': 'support@example.com'  # optional
}

r = requests.post(url, json=payload, headers=headers, timeout=30)
print(r.status_code)
print(r.json())

Test the Email API

Test a real request by entering API credentials, Sender Name, recipient, and optional Reply-To email.

Live test
API Username
API Key
API Secret
Sender Name
Recipient Email
Reply-To Email optional
Format
Subject
Body
Response
Ready. Fill the form and run a test.

Response example

{
  "success": true,
  "message": "Email API processed",
  "job_id": "BEJ123456",
  "sent": 1,
  "failed": 0,
  "charged_units": 1,
  "from_name": "✨KIRA BULK SMS✨"
}
If it fails: check the API credentials, Bulk Email access, allowed Sender Name, recipient email, and account balance.
Copied