Troubleshooting
    4 min read

    API Authentication Issues

    Resolve API key and authentication errors

    API Authentication Issues

    Troubleshoot API authentication problems.

    Error: "Invalid API Key"

    Cause: The API key is incorrect or malformed

    Fix:

  1. Go to Settings → API Keys
  2. Copy the full API key (starts with "sos_")
  3. Ensure no extra spaces
  4. Use in the X-API-Key header
  5. Error: "API Key Expired"

    Cause: Key has passed its expiration date

    Fix:

  6. Go to Settings → API Keys
  7. Check the expiration date
  8. Rotate the key or create a new one
  9. Update your integration with new key
  10. Error: "Rate Limit Exceeded"

    Cause: Too many requests in time window

    Details:

  11. 60 requests per minute (default)
  12. 1,000 requests per day
  13. Fix:

  14. Implement exponential backoff
  15. Cache responses where possible
  16. Contact support for limit increase
  17. Error: "Unauthorized"

    Cause: Missing or incorrect authorization

    Fix:

  18. Ensure header is "X-API-Key" (not "Authorization")
  19. Check the key is active
  20. Verify account is in good standing
  21. Testing Your Key

    Use this curl command:

    curl -X GET "https://api.salesos.com/v1/leads" \
      -H "X-API-Key: YOUR_API_KEY"

    Security Best Practices

  22. Never expose keys in client-side code
  23. Rotate keys regularly
  24. Use environment variables
  25. Monitor usage for anomalies
  26. Was this article helpful?

    Related Articles

    API
    authentication
    errors
    keys