Tesla interview question

How do you approach API design in your project?