Glossary
API
Application Programming Interface
An API is a firmly agreed order form through which one program retrieves or enters data in another, without anyone typing anything out. Whether, say, inventory management and accounting can be connected depends on whether they have one.
Precisely
An Application Programming Interface, or interface for short, is a set of functions and rules through which one program uses the data and functions of another. Unlike the user interface, it is meant for software, not for people (MDN Web Docs). The API defines which requests are allowed, in what form they are made and what comes back; how the other program works internally stays hidden.
With cloud services and business software, these are usually web APIs: a program sends requests over HTTP and often receives the data back in JSON format. Many of these interfaces follow the REST architectural style and are then called REST APIs (MDN Web Docs). Access is granted by a key, often called a token, which is tied to a user account or an application and has at most its rights. Providers often limit the number of requests and introduce new versions of their API, alongside which the old one only keeps running for a while.
- Webhook: Through an API, a program asks. A webhook reports an event of its own accord to an agreed address, for example when an order has been created.
- File import and export: An exported file transfers a snapshot that someone reads in by hand. An API connects the systems continuously and without this intermediate step.
- Interface in the wider sense: The word also covers ports on devices, such as USB, or the handover between departments. API means only the interface between programs.
Examples
- An installation company accepts an order in its inventory management system. Through the API, a second program creates the project for the fitters from it, with address and line items, instead of someone in the office typing everything in a second time.
- A wholesaler wants to transfer invoices from a purchasing portal into its accounting automatically. Before buying, the management therefore asks whether the portal and the accounting software have a documented interface and which data it transfers.
- An engineering firm has a tool with artificial intelligence draft the texts of its quotes. Its own software sends the request through the provider’s API and gets the draft back; which data leaves the company in the process is governed by the contract with the provider.
Further reading
- MDN Web Docs: API · developer.mozilla.org