To use SMS Gateway API methods, you must authenticate using:
- HTTP Basic Authentication using credentials provided by the Namirial support.
All API requests require HTTP Basic Authentication using your SMS account credentials:
curl -X POST https://sms.namirialtsp.com/api/Services/send \
-u username:password \
-H "Content-Type: application/json" \
-d '{"destination": "+1234567890", "text": "Hello World"}'Common authentication errors and solutions:
| HTTP Status | Error | Solution |
|---|---|---|
401 | Missing or invalid credentials | Verify that you are using the correct credentials for the target environment |
401 | Expired credentials | Contact Namirial support to renew expired credentials |
403 | Insufficient privileges | Your account does not have the required role to access this endpoint. Contact Namirial support if you believe this is an error |
Ensure you are using test credentials with test endpoints and production credentials with production endpoints.
For the full list of the environments, see API References.
Submit a request to the Namirial support portal.