Authentication
Your application calls the API with an API key.
The address
Every endpoint starts with:
https://yoursms.ngwije.cloud/api/v1A machine-readable description of the whole API is at /v3/api-docs, and you can browse and try it at /swagger-ui.html.
Create a key
In the dashboard, an owner, admin or developer opens API keys, names the key after the application that will use it, and picks its permissions:
| Permission | Allows |
|---|---|
sms:send | Sending, bulk sending, cancelling and retrying |
sms:read | Reading sent messages, their events, and received messages |
The key is shown once. The server keeps only a fingerprint of it, so a lost key cannot be recovered: revoke it and create another.
Give each application its own key. You can then revoke one without stopping the others, and the reports show which application sent what.
Use it
Send the key in the Authorization header of every request:
curl https://yoursms.ngwije.cloud/api/v1/sms \
-H "Authorization: Bearer YOUR_API_KEY"An API key can send and read messages, and nothing else. It cannot manage devices, people, webhooks or other keys. Those need a person signed in to the dashboard.
Keep it secret
- Call the API from your server, never from a web page or a mobile app. Anyone who can read the key can send SMS that you pay for.
- Keep it in an environment variable or a secrets store, not in your code.
- If a key leaks, revoke it under API keys. It stops working at once.
The shape of every answer
Success:
{
"success": true,
"data": { },
"timestamp": "2026-12-01T08:30:00Z"
}Failure:
{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Request validation failed",
"details": [{ "field": "to", "message": "must be a phone number in E.164 format, for example +250788123456" }]
},
"timestamp": "2026-12-01T08:30:00Z"
}The examples on the other pages show only what is inside data. Dates are in UTC, in ISO 8601 format. See Errors and limits for the codes.
