Building api consumer