softwareWhat an API promises to another program
An API defines how one piece of software can request capabilities or data from another. It specifies operations, inputs and expected responses, allowing callers to use a service without knowing all its internal code. Following the interface does not automatically grant permission to access everything behind it.