Getting started
Your systems can send SMS and read what happened to them through the GioSMS REST API, or over SMPP. Both act for your Account under the same rules as the panel: the same Sender IDs, prices, Wallet and checks on what you send.
Before you start
- Your Account must be verified before it can send.
- You need an approved Sender ID. Send from it exactly as it appears in the panel, such as
DELIVA. - Your Wallet, or a Package that covers the send, must hold enough to pay for it.
Create an API key
Open Developers in the panel and create a key on the API keys tab. Give it only the scopes your system needs. The key is shown once, when you create it, so store it in your system's secrets straight away. See Authentication.
Send your first SMS
Every endpoint is under https://giosms.com.bd/v1. Send JSON, and send your key as a Bearer token:
curl https://giosms.com.bd/v1/messages \
-H "Authorization: Bearer gsk_live_your_key" \
-H "Idempotency-Key: order-1001-shipped" \
-H "Content-Type: application/json" \
-d '{
"sender": "DELIVA",
"messageCategory": "transactional",
"text": "Your order 1001 has shipped.",
"recipients": ["01712345678"]
}'
GioSMS answers 202 once it has accepted the send. Delivery happens afterwards:
{
"data": {
"batchIds": ["0193a6f2-5c1e-7d4a-9b8e-2f6a1c3d5e7f"],
"recipients": 1,
"parts": 1,
"reservedMicroTaka": 350000,
"status": "queued",
"holdReason": null
}
}
Find out what happened
Subscribe a webhook to message.delivered and message.undelivered to hear about each Message as soon as GioSMS does. Or ask for a Message with GET /v1/messages/{messageId}. See Delivery reports.
Where to go next
- Sending SMS: numbers, text length and what a send costs.
- Idempotency: retry safely without sending twice.
- REST endpoints: every field, rule and error.
- SMPP: connect an SMPP client instead.