working pivotal API