bag_api