Messaging API Documentation

Welcome to the Best SMS Bulk Messaging API documentation. This API allows you to easily integrate SMS and WhatsApp messaging capabilities into your applications. Whether you are building a notification system, sending marketing campaigns, or implementing an OTP service, our API provides reliable, scalable messaging capabilities with straightforward HTTP endpoints.

Overview

Our messaging API enables developers to send text messages via SMS and WhatsApp. With our powerful, easy-to-use API, you can interact with the messaging platform using JSON or HTTP endpoints, providing flexible options for different use cases.

Core Features

Getting Started

To start using our API, you need to follow the steps below:

  1. Sign Up: Create an account at Best SMS Bulk to get access to your API credentials.
  2. API Key: Once registered, navigate to Agent - Users - edit the API user - Generate an API key. This key is required to authorize requests related to the secured messaging API (Section 6).
  3. Authentication: Our API supports both Basic Authentication (username/password) and API-Key-based authorization. Please use the appropriate credentials as per the endpoint requirements.
  4. Explore Endpoints: Use our comprehensive documentation below to explore each endpoint. Sample code for PHP, C#, Python, and JavaScript (Node.js) is provided to get you started quickly.

Base URL

All API requests should be made to the following base URL:

https://www.bestsmsbulk.com/bestsmsbulkapi

Required Headers

HTTP Status Codes

Our API returns standard HTTP status codes to indicate the success or failure of your request:

Support

If you have any questions or encounter issues, please refer to the Additional Support section at the end of this document, or contact our helpdesk via email or phone.

1. SEND SMS TEXT HTTP API

API Link

https://www.bestsmsbulk.com/bestsmsbulkapi/sendSmsAPI.php

Submission Methods

GET/POST

Parameters Description

Parameter Description
message Body of your Message / SMS Content
senderid The Sender ID (case sensitive)
destination Mobile number(s) in format: 96170XXXXXX; Multiple numbers separated by ;
username Your username
password Your password
date Date when you want your message to be sent (Format: YYYY-MM-DD). If not set, the message will be sent directly.
time Time when you want your message to be sent (Format: hh:mm, 24h format). If not set, the message will be sent directly.

Sample Code

2. SEND SMS JSON HTTP API

API Link

https://www.bestsmsbulk.com/bestsmsbulkapi/sendSmsAPIJson.php

Submission Methods

GET/POST

Parameters Description

Parameter Description
message Body of your Message / SMS Content
senderid The Sender ID (case sensitive)
destination Mobile number(s) in format: 96170XXXXXX; Multiple numbers separated by ;
username Your username
password Your password
date Date when you want your message to be sent (Format: YYYY-MM-DD). If not set, the message will be sent directly.
time Time when you want your message to be sent (Format: hh:mm, 24h format). If not set, the message will be sent directly.

Sample Code

3. GET SMS MESSAGE DELIVERY STATUS

API Link

https://www.bestsmsbulk.com/bestsmsbulkapi/getSmsStatusJson.php

Submission Methods

GET/POST

Parameters Description

Parameter Description
username Your username
password Your password
limit The limit of the number of delivery statuses to be pulled. Default value: 1000 – last 1000 delivery statuses

Sample Code

4. COMBINED SMS AND WHATSAPP HTTP API

API Link

https://www.bestsmsbulk.com/bestsmsbulkapi/common/sendSmsWpAPITemplate.php

Submission Methods

GET/POST

Parameters Description

Parameter Description
message Only for SMS - Body of your Message / SMS Content
senderid The Sender ID (case sensitive)
destination Mobile number(s) in format: 96170XXXXXX; Multiple numbers separated by ;
username Your username
password Your password
route Accepted values: sms (for SMS) or wp (for WhatsApp)
template For 'wp' route only - Approved template name
variables For 'wp' route only - If the approved template includes variables, they should be included here and separated by a comma
media For 'wp' route only - The link to the media file to be attached with the message
button For 'wp' route only - If the template includes a button

Code Sample

5. BEST SMS BULK WHATSAPP OTP API

API Link

https://www.bestsmsbulk.com/bestsmsbulkapi/common/sendSmsWpAPI.php

Submission Methods

GET/POST

Parameters Description

Parameter Description
message OTP Code only
destination Mobile number(s) in format: 96170XXXXXX; Multiple numbers separated by ;
username Your username
password Your password
date Date when you want your message to be sent (Format: YYYY-MM-DD). If not set, the message will be sent directly.
time Time when you want your message to be sent (Format: hh:mm, 24h format). If not set, the message will be sent directly.
route Accepted values: sms (for SMS) or wp (for WhatsApp)

Code Sample

6. SECURED MESSAGING API

API Link

https://www.bestsmsbulk.com/bestsmsbulkapi/common/messaging_api_secured_json.php

Submission Methods

POST

Headers

Header Name Description Required
API-Key User's unique API key Yes
Content-Type application/json Yes

Request Format

The request body must be sent as a JSON payload.

Request Body Parameters

Parameter Type Description Required Default Value
username string The username associated with the account Yes N/A
password string The password associated with the account Yes N/A
message string The message content Yes N/A
senderid string The sender ID for the message (SMS only) No Empty string
destination string The destination phone number(s), separated by ; Yes N/A
route string Message route: sms or wp (WhatsApp) No wp
template string WhatsApp template name No Empty string
variables string Variables for the WhatsApp template, comma-separated No Empty string
date string Scheduled date in YYYY-MM-DD format No Today's date
time string Scheduled time in HH:mm:ss format No Current time

Code Sample

7. BSB AI Chatbot API

API Link

https://www.bestsmsbulk.com/bestsmsbulkapi/bsbaichatbot/bsb_ai_chatbot_api.php

Submission Method

POST

Required Headers

Header Name Description Required
API-Key Your unique API key from the user panel Yes
Content-Type application/json Yes

Request Body (JSON)


{
  "username": "your_username",
  "password": "your_password",
  "message": "Hello, I need help!",
  "from": "123456789",
  "date": "2025-03-25",    // optional
  "time": "14:30:00"       // optional
}

Success Response


{
  "status": "success",
  "message": "Hi there! 👋 How can I assist you today?"
}

Error Responses

Key Notes

Additional Support

If you need further assistance, please contact our support team: