WD interview question

How do you design an API?