Skip to content
MZSMS

Reference

API reference

Every public endpoint in one place.

Endpoints#

EndpointScopeDescription
POST /api/v1/sms/sendsms:sendSend one SMS
POST /api/v1/sms/bulksms:sendSend up to 1,000 SMS in one request
POST /api/v1/sms/estimatesms:sendCalculate segments and cost without sending
GET /api/v1/messages/{id}messages:readGet a message and its delivery events
GET /api/v1/messagesmessages:readList messages with filters
GET /api/v1/balancebalance:readWallet balance and your rates
GET /api/v1/sender-idssender_ids:readList your sender IDs and their status

Send SMS#

POST/api/v1/sms/sendScope: sms:send

Body: to, message, optional sender_id, type, reference, schedule_at. Returns 202. See Send SMS.

Bulk SMS#

POST/api/v1/sms/bulkScope: sms:send

Body: recipients[], message, optional fields as above. Returns 202 with accepted messages and per-recipient errors. See Bulk SMS.

Estimate#

POST/api/v1/sms/estimateScope: sms:send

Body: message, optional recipients (count, default 1), type, sender_id. Returns encoding, segments, rate and estimated cost. Nothing is sent.

Get message#

GET/api/v1/messages/{id}Scope: messages:read

Returns the message with timestamps, cost, error details and event history. Messages of other accounts return 404.

List messages#

GET/api/v1/messagesScope: messages:read

Cursor-paginated, newest first. Filters: status, to, reference, from, until, limit, cursor.

Balance#

GET/api/v1/balanceScope: balance:read
curl https://sms.marketian.net/api/v1/balance -H "Authorization: Bearer $MZSMS_API_KEY"

Sender IDs#

GET/api/v1/sender-idsScope: sender_ids:read

Lists sender IDs with type, status and default flag.

Other API surfaces#

These are not part of the public customer API but are documented for operators:

  • /api/v1/auth/*: register, login, logout, email verification and password reset (session cookies; used by first-party apps).
  • /api/v1/app/*: dashboard exports (CSV, invoices), session-authenticated.
  • /api/v1/admin/*: platform administration, restricted to platform staff.
  • /api/v1/webhooks/sms/{provider} and /api/v1/webhooks/payments/{provider}: inbound provider callbacks, verified by signature.