Pergunta de entrevista da empresa Sun West Mortgage

How would you approach designing an API and what are the best practices and security?