| Code Range | Description |
|---|---|
2xx | Success — The request was successful |
3xx | Redirection — The resource has moved |
4xx | Client Error — Something is wrong with the request |
5xx | Server Error — Something went wrong on our end |
Success Codes
200 - OK
The request was successful and the response contains the requested data.Redirection Codes
302 - Found (Redirect)
The requested resource has been moved to a new location. This typically happens when a player or tournament record has been updated or merged with new data. How to handle:- Follow the redirect URL provided in the
Locationheader - Update any cached references to use the new URL
- Most HTTP clients handle redirects automatically
Client Error Codes
401 - Unauthenticated
Authentication failed. Your API token is missing, invalid, or has been revoked. How to fix:- Verify you’re including the
Authorizationheader in your request - Check that your token format is correct:
Bearer YOUR_API_TOKEN - Generate a new token at API Tokens if needed
402 - Payment Required
Your current subscription plan does not include access to this resource or you have exceeded your plan limits. How to fix:- Check your current plan at padelapi.org/billing
- Upgrade your subscription to access premium endpoints
- Review the pricing plans for available features
404 - Not Found
The requested resource does not exist. This can happen when:- The ID doesn’t exist in the database
- The resource was deleted
- There’s a typo in the endpoint URL
- Verify the resource ID is correct
- Check the endpoint URL for typos
- Use a list endpoint to find valid IDs
422 - Unprocessable Entity
The request parameters failed validation. The response includes details about which parameters are invalid. How to fix:- Review the error message for specific validation failures
- Check parameter types (string vs integer)
- Verify required parameters are included
- Ensure values are within allowed ranges
429 - Too Many Requests
You have exceeded the API rate limit.- Wait until the next minute before retrying
- Monitor the
X-RateLimit-Remainingheader to avoid hitting the limit - Implement request throttling in your application
Server Error Codes
500 - Internal Server Error
Something went wrong on our servers. We automatically log all errors and work to fix them as quickly as possible. How to handle:- Wait a few moments and retry your request
- If the error persists, contact us with the error_time included in the response
When reporting a 500 error, please include the
error_time from the response. This helps us locate and fix the issue faster.Best Practices
- Always check the status code before processing the response body
- Handle redirects — Configure your HTTP client to follow 302 redirects
- Implement retry logic for 500 errors with exponential backoff
- Log error responses to help debug integration issues
- Include
error_timewhen reporting server errors to support