How to Set Up a Secure API Connection Between Two Applications