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/v1For 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
messagestrings (match onerror, never onmessage).
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 send | Stored as |
|---|---|
0712345678 | 255712345678 |
+255712345678 | 255712345678 |
255712345678 | 255712345678 |
0712 345 678 | 255712345678 |