An API defines how different software systems can interact and communicate with each other.