Sylvera interview question

How would you determine the requirements for an API?