API Docs

Base URL & versioning

Where to send requests and how versions work.

Base URL

All endpoints in this reference are relative to:

Base URL
https://sms.nbmbrand.com/api/v1

For example, Send SMS is POST https://sms.nbmbrand.com/api/v1/messages. Only HTTPS is accepted.

Versioning

The version is part of the path (/v1). Within a version we only make backwards-compatible changes:

  • adding new endpoints, optional request fields or response fields;
  • adding new values to status and error enums;
  • changing the wording of message strings (match on error, never on message).

Anything that would break a working integration ships as a new version, announced in the changelogwith time to migrate. Write your client to ignore fields it doesn't know.

Phone number format

Anywhere the API takes a phone number you can send the local or the international form. Spaces, dashes and a leading + are removed, and the number is stored in international format:

You sendStored as
0712345678255712345678
+255712345678255712345678
255712345678255712345678
0712 345 678255712345678