EASY INTEGRATION

One request. The message arrives.

From any programming language over HTTPS, or over SMPP with details from our team.

Copy the API key from your account

Send one request

Track delivery with the order ID

Connecting your system
curl -X POST "https://bhsms.net/httpjson/" \
  -H "Content-Type: application/json" \
  --data-raw '{
    "username": "your_username",
    "apikey": "YOUR_API_KEY",
    "sender": "MySender",
    "to": ["97333XXXXXX"],
    "text": "Your verification code is 48XX13"
  }'
ORDERID:2612XXXXXXXX_CREDITUSED:XGET /dlreport/?…&orderid=2612XXXXXXXX
{ … "STATUS": "Delivered", … }
MySender

Your verification code is 48XX13

Delivered

Illustrative example. Your key, all parameters and error codes are inside your account.

QUICK START

Four steps to the first message from your system

Copy your API key

From the API Key page of your account. It is not your portal password.

Approve a sender name

Request it on the Sender IDs page and set a default.

Allow your server IP

If IP filtering is on, add your server address and wait for approval.

Send and keep the order ID

A reply with an order ID means the order was accepted; use it to track delivery.

THE APIS

Pick the one that fits your system

Full documentation of each one, with examples and error codes, is inside your account.

HTTP GET

One HTTPS request. About 125 numbers per request; for Arabic and large lists, use POST.

HTTP POST

Form fields, with a recipient list of up to 20,000 characters per request.

JSON

One text to many numbers, or a different text per number, in one request of up to 20 MB. Invalid, duplicate and out-of-coverage numbers are skipped, so you pay only for accepted numbers.

Template API

Approved templates with variables such as {{name}}, up to 5,000 numbers per request.

Delivery reports API

Query an order by its ID: delivered, failed or still on its way, what it cost, and when each step happened.

Account balance API

Your balance as one number, to show in your system or alert your team before it runs out.

SMPP

A direct SMPP connection, with the details from our team.

Scheduled sending

Send later in Bahrain time with the scheduled parameter.

TECHNICAL FACTS

What your developer needs to know

Transport
HTTPS only, with the trailing slash on the endpoint.
Authentication
Your username and API key in every request: no headers, tokens or sessions.
Encoding
UTF-8, with Arabic and emoji supported.
Response
One line of plain text: an order ID when accepted, or an error code.
Message parts
160 Latin characters or 70 in Arabic; longer messages use 153 or 67 per part.
Text length
Up to 5,000 bytes of text.
Recipients per request
GET about 125 numbers, POST up to 20,000 characters of numbers, JSON up to 20 MB, templates up to 5,000 numbers.
Scheduling
12 digits, YYYYMMDDHHMM, in Bahrain time (UTC+3).
Delivery status
Delivered, failed or still on its way, with the cost and the time of each step.
Protection
Exact IP address filtering (IPv4 or IPv6), a temporary block after 5 failed attempts within 15 minutes, and HMAC request signing as extra protection.
ALSO FOR YOUR SYSTEM

An integration you can track and control

Delivery report by order ID

Your system requests the status of each message with the order ID. It also shows in your reports, with Excel export.

Duplicate protection

The same text to the same number within a number of seconds you set is not sent or charged.

Your server addresses only

API requests from your server addresses only, when the restriction is on.

An alert if sending stops

An e-mail or SMS alert if your system stops sending within the number of minutes you set.

A block after failed attempts

After 5 failed attempts within 15 minutes, that IP address is blocked for a while for that username.

Number block list

Numbers your API requests never reach, added from your account.

Error logs

Every refused request with its error code, sender name, IP address and full payload.

A separate API key

The API key is the only credential: your portal password is never sent, and every call is HTTPS only.

HMAC request signing

Extra protection: your system signs every request with a secret key, so we can confirm it came from you and was not changed on the way.

FAQ

Developer questions

Not here? Ask us on WhatsApp.

Do I need a developer?

Not to send from the portal. To connect your system, your developer needs one HTTPS request from any programming language.

Do you support SMPP?

Yes. Connect through the HTTP API from any programming language, or over a direct SMPP connection with the details from our team.

How do I know the message arrived?

Every message has a status in your reports, with Excel export. Your system can request the report with the order ID.

Am I charged if my system sends the same message twice?

Not with duplicate protection. The same text to the same number within a number of seconds you set is not sent or charged.

How is my account protected?

With 2-step verification, which you turn on in your account settings, and sign-in restrictions. Over the API: requests limited to your server IP addresses, a temporary block after failed attempts, and HMAC request signing as extra protection.

Can I write in Arabic and use emoji?

Yes. Arabic and emoji are supported in the portal and over the API. An Arabic message holds 70 characters, and longer ones 67 per part.

How many characters fit in one message?

160 in English or 70 in Arabic. Longer messages use 153 or 67 per part, and the counter works it out as you type.

Send your first message under your company name

A Bahraini company since 2006: 20 years of experience and 3,000+ clients served.

Contact formSend us a message
Chat on WhatsApp