What is an API?
An API (Application Programming Interface) is a defined interface through which a software system makes its functions and data available to other programs. It specifies which requests are possible, which details are required for them and in which format the response is returned. The internal workings of the system remain hidden.
For process automation, APIs are the preferred way to connect systems: they are more stable and easier to monitor than operating a user interface. Web APIs frequently use HTTP with JSON as the data format.
Distinction: API and user interface
RPA operates applications through the interface like a human. This makes sense when no interface exists, but it is sensitive to changes in the layout. An API connection changes only when the agreed interface changes. An API is also not an integration solution in itself: it is the access point that a process uses.
Role in processes
A process engine calls APIs to trigger tasks in business systems, read data or hand over results. Important aspects here are error handling, retries in case of failure, authentication and documented versioning, so that changes do not disrupt processes unnoticed. For services in microservices architectures, APIs are the central form of communication.
Example
An order process queries the stock level via the API of the ERP system, creates the shipping order via a further interface and receives the result back. If a system does not respond, the process engine retries the call or forwards the case to a responsible person.
Related terms
- Process orchestration – coordinates calls to many interfaces.
- Process engine – calls APIs in the process flow.
- Microservices – architecture that communicates via APIs.
- Robotic process automation – alternative when no API is available.
- FHIR – example of an industry-specific API standard.