CALAIS API integration (Part 1)