Your mental model is pretty accurate for a rough sketch.  Those terms are all used in a similar manner depending on who you talk to.<p>Personally, I go with the most general usage of API: an interface to interact with programmatically.