Define API to communication.