Skip to content
MZSMS

Getting started

Introduction

Overview of the MZ SMS API: what you can do, base URL, conventions and environments.

The MZ SMS API lets your applications send SMS to Bangladeshi mobile numbers and track what happens to each message. It is a JSON REST API authenticated with API keys.

What you can build#

  • One-time passwords and login verification (Send SMS).
  • Order, payment and delivery notifications from your backend.
  • Personalised batches of up to 1,000 recipients per request (Bulk SMS).
  • Delivery tracking by polling or webhooks.

Large marketing campaigns with contact groups, scheduling and review are easier from the dashboard's campaign builder.

Base URL and format#

All endpoints live under https://sms.marketian.net/api/v1. Requests and responses use JSON (UTF-8). Every response has the same envelope: success, then either data or error, and meta.requestId, which you should log and quote when contacting support.

{
  "success": true,
  "data": {
    "message_id": "5b0f2c7e-7a55-4b1e-9d0a-3c1d2e4f6a70",
    "to": "+8801XXXXXXXXX",
    "status": "queued",
    "segments": 1,
    "encoding": "GSM7",
    "cost": "0.35",
    "currency": "BDT"
  },
  "meta": { "requestId": "req_8f2k1m0q7x3v9b2n" }
}

Conventions#

  • Phone numbers: any common Bangladeshi format is accepted (01712345678, 8801712345678, +880 1712-345678) and returned in E.164 (+8801712345678).
  • Money: strings with decimal places, in BDT (for example "0.35"), so no precision is lost.
  • Time: ISO 8601 in UTC. The dashboard shows Asia/Dhaka time.
  • IDs: UUIDs. Treat them as opaque strings.
  • Enum values in responses are lower case (queued, delivered).

Environments#

The API is processed by this platform in every environment. Whether messages reach real handsets depends on the upstream SMS provider the platform operator has connected. Development and sandbox deployments use a mock provider that never sends real SMS and simulates results: numbers ending in 0000 are rejected, 9999 fail after submission, 8888 produce temporary errors, and everything else is delivered after a few seconds.