---
title: How do I debug if my API is not working?
description: "If your **[SMSGatewayCenter API integration](https://www.smsgatewaycenter.com/developer-api/)** isn’t working, follow these debugging steps: **Verify Credentials**: Ensure your **userid**, **password**, or API key is correct and hasn’t expired. Regenerate your API key if needed via the portal under \"**API Key Settings.**\" **Check Parameters**:…"
url: "https://www.smsgatewaycenter.com/blog/kb/how-do-i-debug-if-my-api-is-not-working/"
updated: "2025-03-03"
category: API
---

# How do I debug if my API is not working?

If your **[SMSGatewayCenter API integration](https://www.smsgatewaycenter.com/developer-api/)** isn’t working, follow these debugging steps:

**Verify Credentials**: Ensure your **userid**, **password**, or API key is correct and hasn’t expired. Regenerate your API key if needed via the portal under "**API Key Settings.**"

**Check Parameters**: Confirm all required parameters (e.g., senderid, mobile, msg) are included and properly formatted. Use URL encoding for special characters.

**Review Response Codes**: Check the API response for status codes (e.g., 200 for success, 401 for authentication failure). The response will include a reason field explaining errors—log this for analysis.

**Test with Sample Scripts**: Use our provided sample scripts (e.g., PHP CURL) to compare against your code. Start with a simple test message to a single number.

**Inspect Network Requests**: Ensure your HTTP request (GET/POST) to **https://unify.smsgateway.center/SMSApi/send** or other endpoints is correctly formatted and not blocked by firewalls.

**Contact Support**: If issues persist, reach out to our 24/7 support team with your API request details, response, and error logs for quick resolution.

Our documentation and resources are designed to help thousands of developers troubleshoot effectively.

### More Related Articles

- [How do I secure my API keys in a production environment?](https://www.smsgatewaycenter.com/blog/kb/how-do-i-secure-my-api-keys-in-a-production-environment/)
- [What should I do if my API request times out?](https://www.smsgatewaycenter.com/blog/kb/what-should-i-do-if-my-api-request-times-out/)
- [Solving Common Verify OTP API Problems](https://www.smsgatewaycenter.com/blog/kb/solving-common-verify-otp-api-problems/)

Found this useful?[Add as Preferred Source on Google](https://www.google.com/preferences/source?q=smsgatewaycenter.com)
