# Authentication To use the Message Status API, authenticate with: - **API KEY** by entering the credentials provided by the Namirial support. Ensure you include the following headers in your request: `X-Api-Key: YOUR_API_KEY` (replace YOUR_API_KEY with your actual API key) Example: ```bash curl -X GET https://sms-apistatus.test.namirialtsp.com/api/messagestatus/YOUR_MESSAGE_ID \ -H "Content-Type: application/json" \ -H "X-Api-Key: YOUR_API_KEY" ``` ## Troubleshooting Authentication Issues Common authentication errors and solutions: | HTTP Status | Error | Solution | | --- | --- | --- | | `401` | Invalid API key | Verify that you are using the correct API key for the target environment | | `401` | Expired API key | Contact Namirial support to renew your API key | | `403` | Forbidden | Your API key does not have permission to access this resource | For the full list of the environments, see [API References](/products/sms/enterprise-documentation/developer-documentation/apistatus-references). ## How to get API Credentials Submit a request through the Namirial support portal.