A system access point or library function that has a well-defined syntax and is accessible from application programs or user code to provide well-defined functionality.
Sources:
NISTIR 5153
under Application Program Interface