# 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: ```bash 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: - **Invalid Credentials** - Verify that you are using the correct credentials for the target environment - **Expired Credentials** - Contact Namirial support to renew expired credentials - **Environment Mismatch** - 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](/products/sms/enterprise-documentation/developer-documentation/api-references). ## How to get API Credentials Submit a request to the Namirial support portal.