bucket api