Bulk SMS

Know the cost before you press send.

One text to up to 1,000 numbers in one API call or from the Send page, or to up to 50,000 as a campaign. See the total first, and then a status for every number instead of one percentage at the end.

Send page Sent

We are open until 10 pm today.

Numbers
850
Parts each
1
Queued
847
Set aside
3
  • +1 415 555 01 · invalid_number
  • 8801712345678 · duplicate_number
  • 61412345678 · country_not_enabled

How it works

Four steps from a list to delivered messages.

Step 01

Bring the numbers

Paste them on the Send page, tick a saved group, or send a list in one API call. A CSV goes into your contacts first.

Step 02

Write the text once

One message for everyone, under your sender ID or from a number. The part count shows while you type.

Step 03

Check the cost

Numbers × parts × the rate of each country, before anything is charged. A number that cannot be sent to is set aside with its reason.

Step 04

Send and watch each one

Every number becomes its own message with its own ID and status. A campaign has a page that counts them as they land. A message that fails gives its credits back.

Cost preview

This is what you see before sending.

Type a message and the number of recipients; the parts and the total change as you type. The Send page shows exactly this, and the API answers with the same figures.

0 characters · GSM-7 · 1 part each

Up to 1,000 in one send.

Package Non-masking Masking

Charged when the list is accepted. A message that fails gives its credits back, so the final charge can only be lower.

Lists

Your numbers, kept in the panel.

Contacts live in your account with a name if you want one, and go into as many groups as you like. On the Send page you tick the groups, and every contact in them gets the message once, even if it is in several.

A CSV brings them in: choose the column with the numbers, the column with the names, the country for numbers written without a code, and the groups to put them in. You see the count and the first rows before you import.

  • Up to 20,000 rows a file
  • Duplicates and rows that are not a number are counted and left out, before you confirm
  • A number you already have is not added twice: it joins the chosen groups and keeps its name
  • A number written with its country code keeps its country; the rest get the one you chose
customers-october.csv
phonenamecity
+44 7700 900123Amelia ClarkeLeeds
8801712345678Rafi AhmedDhaka
01812345678Sadia IslamChattogram
0171234Omar KhanSylhet

Row 4 left out: not a number. 3 contacts to import, 0 duplicates.

The API

One call, a list of numbers.

POST /sms/bulk takes the text and up to 1,000 numbers. The answer lists every message that was queued with its ID, parts and cost, and every number that was set aside with its reason.

If your credits do not cover the whole list, nothing is queued and nothing is charged: the request is refused as a whole, so you never get a half-sent batch.

  • Every number becomes its own message with its own ID
  • Numbers in international format, so nothing goes to the wrong country
  • 600 requests a minute per key, so a bigger list is several calls, or a campaign from the panel
Bulk in the API reference
Request
curl -X POST https://www.sms.rayenda.com.anjumanara.com/api/v1/sms/bulk \
  -H "Authorization: Bearer rs_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "to": ["8801712345678", "8801812345678", "01912345678"],
    "message": "We are open until 10 pm today.",
    "sender_id": "MyShop"
  }'
Response · 201
{
  "count": 2,
  "parts": 2,
  "cost": "1.10",
  "messages": [
    {
      "id": "SMS-4HXN8PQ2WK7D",
      "to": "8801712345678",
      "status": "queued",
      "parts": 1,
      "cost": "0.55"
    },
    {
      "id": "SMS-9TB3RZ6MCY5F",
      "to": "8801812345678",
      "status": "queued",
      "parts": 1,
      "cost": "0.55"
    }
  ],
  "rejected": [
    {
      "to": "01912345678",
      "code": "invalid_number",
      "message": "The number is not a valid phone number."
    }
  ]
}

The rules

A bad number never stops the good ones.

Each number is checked on its own. One that cannot be sent to is set aside with a reason you can act on, and the rest go out. Only two things stop the whole list: not enough credits for all of it, or a text that is empty or too long.

ReasonWhat it means
invalid_numberNot a phone number, or written without its country code.
duplicate_numberThe same number twice in one list; it is sent once.
country_not_availableThe service does not deliver to that country yet.
country_not_enabledOpen on the platform, but not turned on in your account, or your package has no rate there.

All or nothing on credits

The whole list is priced first. If your balance does not cover it, nothing is sent and nothing is charged.

Campaigns, up to 50,000

A bigger list gets a name and its own page in the panel: charged at once, sent over the following minutes, counted as the messages land.

Failed means refunded

A message the carrier cannot deliver gives its credits back on its own, and the refund shows against it.

After sending

Delivery, number by number.

A list is not one object with a success rate. Every message has its own row in Messages with its status, parts, cost and refund, and the same by its ID from the API. Filter by status to see at once which numbers did not get it.

IDNumberStatusCost
SMS-4HXN8PQ2WK7D 8801712345678 Delivered 0.35
SMS-9TB3RZ6MCY5F 8801812345678 Delivered 0.35
SMS-2JQC7NVX8MKD 447700900123 Sent 0.35
SMS-6WRM3PKT9YHB 8801912345679 Failed 0.35

Your first list can go out today.

Open an account, get verified, recharge, paste the numbers. The cost is on the screen before you press Send.