Skip to content
Last updated

Authentication

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"}'

Troubleshooting Authentication Issues

Common authentication errors and solutions:

HTTP StatusErrorSolution
401Missing or invalid credentialsVerify that you are using the correct credentials for the target environment
401Expired credentialsContact Namirial support to renew expired credentials
403Insufficient privilegesYour 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.

How to get API Credentials

Submit a request to the Namirial support portal.