In short
An API is an interface that lets one piece of software share data and functions with other software under defined rules.
Enterprise integration largely runs through APIs: pulling orders from ERP, sending work orders to MES or feeding a dashboard.
A good API is documented, versioned and protected by authorisation.