API: Add params validation