Common functionality for working with the Tcat API.