Sending SMS

POST /v1/messages sends one text from one Sender ID to up to 10,000 Recipients. REST endpoints lists every field and rule.

What you can send

  • Transactional and OTP messages: set messageCategory to transactional or otp. Promotional messages go out as Campaigns from the panel, not through the API.
  • From a Sender ID your Account may use. A masking name, such as DELIVA, must be approved for every Recipient's Operator.
  • The text is checked like any other send. Text that may not be sent is refused with 422 validation_failed, giving the reason under text.

Recipients

Send Bangladeshi mobile numbers as a JSON list. Each of these is accepted for the same number:

["01712345678", "1712345678", "+8801712345678", "8801712345678", "008801712345678"]

Spaces, dashes, dots and brackets are ignored. GioSMS reports every number in E.164, such as +8801712345678.

Text length and parts

A long text is sent in Parts, and each Part is charged.

Text One part holds Each part of a longer text holds
Only GSM characters (plain English) 160 characters 153 characters
Any other character, such as Bangla or an emoji 70 characters 67 characters

In GSM text, ^ { } \ [ ~ ] | € each count as two characters. An emoji counts as two in Unicode text. A text may take at most 10 parts.

What a send costs

Each Message costs the Recipient Operator's price for its category, once per Part. The response's reservedMicroTaka is what GioSMS set aside for the whole send, in millionths of a taka: 350000 is ৳0.35. Matching Packages are used before your Wallet.

Your Wallet is charged only on Submission, when a Message is handed to a Provider. A Message that is never sent is not charged. When your available balance cannot pay for the whole send, nothing is accepted and you get 422 validation_failed under recipients. Check your balance with GET /v1/balance.

Queued or held

A send is accepted with one of two statuses:

  • queued: its Messages go to the Providers straight away.
  • held: GioSMS holds it for review, for its text or because it is unusually large or fast for your Account. holdReason says why. The money stays reserved. Once it is approved the Messages are sent; if it is rejected they are not sent and are not charged.

A send through the API never asks for a Confirmation, however many Recipients it has.

Batches

GioSMS splits a large send into Batches, listed in batchIds. Webhook events name each Message's Batch as batch_id, so you can match them to the send.