CALAIS API integration (Part 2)