Base URL

All Game API endpoints are prefixed with /api/game/.

Authentication

Most endpoints require authentication using a JWT token obtained from the authentication endpoints. Include the token in the Authorization header:

Authorization: Bearer <your-jwt-token>

Response Format

All API responses follow a consistent format:

{
  "statusCode": 200,
  "data": {
    // Response data here
  }
}

Error Handling

Errors are returned with appropriate HTTP status codes and error messages:

{
  "statusCode": 400,
  "error": {
    "message": "Error description"
  }
}