Skip to main content

Error Response Format

All API errors follow a consistent JSON format:

HTTP Status Codes

Common Errors

Authentication Errors

Error:
Solution:
Error:
Solution:
  • Verify your API key is correct
  • Check you’re using the right environment (production vs development)
  • Regenerate your API key if needed at https://hooked.so/settings/api
Error:
Solution:

Validation Errors

Error:
Solution:
Error:
Solution:
Error:
Solution: Split your script into multiple videos or reduce the length

Resource Errors

Error:
Solution:
  • List available avatars: GET /api/v1/avatar/list
  • Verify the avatar ID exists and you have access to it
  • Check if it’s a custom avatar from another team
Error:
Solution:
  • List your templates: GET /api/v1/template/list
  • Verify the template ID
  • Ensure the template belongs to your team

Rate Limiting

Error:
Headers:
Solution:

Processing Errors

Webhook Payload:
Common Causes:
  • Script contains unsupported characters
  • Voice model temporarily unavailable
  • Audio processing timeout
Solution:
  • Check script for special characters
  • Try a different voice
  • Retry the request
  • Contact support if persists
Error:
Solution:

Error Handling Patterns

Basic Error Handling

Advanced Error Handling

Retry Logic with Exponential Backoff

Debugging Tips

1

Check API Key

Verify your API key is correct and active
2

Validate Request Body

Use a JSON validator to ensure your payload is valid
3

Check Response

Log the full response to see what went wrong
4

Monitor Rate Limits

Check rate limit headers in responses

Error Prevention Checklist

Before making API calls:
  • API key is set and valid
  • All required fields are included
  • Field values match expected types and formats
  • Avatar/Voice/Template IDs exist and are accessible
  • Script length is within limits (< 5000 characters)
  • Rate limits are being tracked
  • Webhook URL is publicly accessible (if used)
  • Error handling is implemented
  • Retry logic for transient errors

Getting Help

Support

Contact support for assistance

Discord Community

Get help from the community

GitHub Issues

Report bugs and issues

Next Steps

Webhooks

Set up webhooks for reliable notifications

Best Practices

Learn production-ready patterns