palette related api