Response Format
All API responses follow a consistent JSON structure, making it easy to parse and handle responses in your application.Success Responses
Successful requests return a200 status code with the requested data:
Error Responses
Failed requests return an appropriate error status code with detailed error information:Always include the
request_id when contacting support. This helps us quickly locate and troubleshoot your specific request.HTTP Status Codes
The GameBoost API uses standard HTTP status codes to indicate the success or failure of requests.Success Codes
Client Error Codes
These errors indicate issues with your request or authenticationServer Error Codes
These errors indicate issues on our servers or infrastructureError Response Examples
401 Unauthorized
Cause: Missing or invalid authentication credentials.403 Forbidden
Cause: You don’t have permission to access this resource.404 Not Found
Cause: The requested resource doesn’t exist or you don’t have access to it.422 Unprocessable Entity
Cause: Request validation failed due to invalid data.errors object and correct the specified fields.
429 Too Many Requests
Cause: You’ve exceeded the API rate limit.Retry-After header. See our Rate Limiting Guide.
500 Internal Server Error
Cause: An unexpected error occurred on GameBoost’s servers.request_id.
503 Service Unavailable
Cause: The API is temporarily unavailable, usually due to maintenance.Retry-After seconds and try again. Check our status page for updates.
Handling Errors
Best Practices
Always check status codes
Always check status codes
Don’t rely solely on the presence of data in the response. Always check the HTTP status code to determine if the request was successful.
Parse error details
Parse error details
Extract useful information from error responses to provide better feedback to users or for debugging.
Implement retry logic
Implement retry logic
For transient errors (5xx status codes), implement retry logic with exponential backoff.
Log request IDs
Log request IDs
Always log the
request_id from error responses. This is invaluable when contacting support.Response Headers
All API responses include helpful headers for debugging and rate limiting:Next Steps
Rate Limiting
Learn how to handle rate limits effectively
Webhooks
Set up real-time event notifications
API Reference
Explore all available endpoints
Authentication
Review authentication setup