buckets api