Support and Resources
Error Handling
Learn about possible errors when using the Supertone API and how to troubleshoot them
Response Status Codes
Supertone API uses standard HTTP status codes to indicate the success or failure of API requests.
Status Code | Description |
---|---|
200 - OK | The request was successfully processed. |
400 - Bad Request | The request cannot be processed. This response occurs when required parameters are missing or parameter formats are incorrect. Please check your request parameters using the error code. |
401 - Unauthorized | The provided API key is invalid. |
403 - Forbidden | The API key does not have permission for this request. |
404 - Not Found | The requested resource does not exist. Please check the requested API endpoint again. |
500 - Internal Server Error | An error occurred on the Supertone server. |
Error Response Format
When a request is not processed normally, an error object like the following is returned along with the HTTP status code.
Troubleshooting Guide
1. API Key Issues (401, 403)
Symptoms
- 401 Unauthorized error
- 403 Forbidden error
- “Invalid API key” message
Checklist
- API Key Inclusion
- Verify that the API key is included in the header of all requests
- Confirm that the header name is exactly
x-sup-api-key
- API Key Format
- Check that the API key doesn’t contain any extra spaces
- Verify that the API key was copied completely
- API Key Validity
- Check the API key status in the console
- Verify that the API key hasn’t expired
- Confirm that the API key hasn’t been revoked
Solutions
- Generate a new API key from the console
- Update API key values in environment variables or configuration files
- Recheck API key permissions
2. Bad Request Issues (400)
Symptoms
- 400 Bad Request error
- Parameter-related error messages
- Request format error messages
Checklist
- Required Parameters
- Verify that all required parameters are included
- Check that parameter names are correct
- Parameter Format
- Verify that text length does not exceed 200 characters
- Check that JSON format is correct
- Confirm that parameter value data types are correct
- Encoding
- Verify that text encoding is UTF-8
- Check that special characters are properly encoded
Solutions
- Review parameter specifications in the API documentation
- Validate JSON format in the request body
- Adjust text length and encoding
3. Resource Access Issues (404, 500)
Symptoms
- 404 Not Found error
- 500 Internal Server Error
- “Resource not found” message
Checklist
- API Endpoint
- Verify that the URL is correct (
https://supertoneapi.com/v1/...
) - Check that the API version is correct
- Verify that the URL is correct (
- Voice ID
- Check available voice list through Get Voices API
- Verify case sensitivity of the voice ID
- Access Permissions
- Confirm access permissions for the voice
- Check subscription status
Solutions
- Check the latest voice list through Get Voices API
- Reconfirm API endpoint address
- Verify voice access permissions
4. Server Errors (500)
Symptoms
- 500 Internal Server Error
- Server response timeout
- Unexpected error messages
Checklist
- Server Status
- Check service status page
- Verify if it’s a temporary server issue
- Request Frequency
- Check if request limits have been exceeded
- Verify number of concurrent requests
- Network Status
- Check network connection status
- Verify firewall settings
Solutions
- Try again after a short wait
- Adjust request intervals
- Contact technical support if problems persist
Error Technical Support
If you have difficulty resolving an issue or if it persists, please contact our technical support team with the following information:
- Email: techsupport@supertone.ai
- Required Information:
- Last 4 digits of your API key (visible in the console page)
- Time when the error occurred
- Requested API endpoint
- Complete error message
- Steps to reproduce
- Request/response examples (excluding sensitive information)