Reference
API reference
Every public endpoint in one place.
Endpoints#
| Endpoint | Scope | Description |
|---|---|---|
POST /api/v1/sms/send | sms:send | Send one SMS |
POST /api/v1/sms/bulk | sms:send | Send up to 1,000 SMS in one request |
POST /api/v1/sms/estimate | sms:send | Calculate segments and cost without sending |
GET /api/v1/messages/{id} | messages:read | Get a message and its delivery events |
GET /api/v1/messages | messages:read | List messages with filters |
GET /api/v1/balance | balance:read | Wallet balance and your rates |
GET /api/v1/sender-ids | sender_ids:read | List your sender IDs and their status |
Send SMS#
POST
/api/v1/sms/sendScope: sms:sendBody: to, message, optional sender_id, type, reference, schedule_at. Returns 202. See Send SMS.
Bulk SMS#
POST
/api/v1/sms/bulkScope: sms:sendBody: 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:sendBody: 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:readReturns the message with timestamps, cost, error details and event history. Messages of other accounts return 404.
List messages#
GET
/api/v1/messagesScope: messages:readCursor-paginated, newest first. Filters: status, to, reference, from, until, limit, cursor.
Balance#
GET
/api/v1/balanceScope: balance:readcurl https://sms.marketian.net/api/v1/balance -H "Authorization: Bearer $MZSMS_API_KEY"Sender IDs#
GET
/api/v1/sender-idsScope: sender_ids:readLists 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.