An API is a user interface
An API is a user interface for programmers, and is no different from a graphical user interface, command-line user interface, or any other interface a human is expected to work with. Turns out programmers are people – who would have thought?