[api] Support clusters

@indexzero please review.