API (application programming interface)
An API is a defined set of rules that lets one software system request data or services from another. The calling program sends a request in an agreed format and receives a structured response. In finance, APIs carry actions such as a balance enquiry or a payment initiation between banks, regulated third parties and internal systems.
What it is
An application programming interface (API) is a defined access point to a piece of software, with fixed rules for how another program may call it. The caller sends a request in an agreed format. The provider checks it and returns a response in an agreed format. Neither side needs to know how the other is built.
An API works like a contract between client and service. The contract is written down in a specification, and the web form of it is usually a set of endpoints reached over HTTP.
The parts of an API call are:
- the endpoint, which names the resource or function being called;
- the request, which carries parameters and, where the data is sensitive, credentials;
- the response, which returns the result or an error code;
- the authentication and authorisation checks that decide who may call what;
- the specification and version, which tell developers what to expect.
Real-time interfaces answer a call when it arrives. This differs from batch processing, where a file is prepared and sent in bulk at set times.
Why it matters
Financial firms run many systems that must exchange data: core banking, payments, risk, reporting and client channels. A well-specified API lets these systems connect without sharing their internals, so one system can be replaced or changed while others keep working.
APIs also open services to outside parties. Under the EU payment services rules, an account provider offers a secure interface so that authorised third parties can, with the customer’s consent, read account data or initiate payments. Weak API design or protection exposes data and payment functions, which is why API security has its own guidance.
Worked example
Illustrative numbers. A bank offers a balance endpoint with a limit of 100 calls per minute for each client application.
- A budgeting application refreshes each customer with 2 calls: one for balances and one for transactions.
- With 30 customers refreshing in the same minute, the application makes 30 times 2, so 60 calls. This is within the limit, and every call returns a normal success response.
- With 60 customers, the application needs 120 calls. The first 100 succeed. The remaining 20 are rejected with a too-many-requests error.
- The application spreads its refreshes over two minutes, so each minute needs 60 calls.
Who uses it
- Business analysts specify the data and functions an API exposes and write the acceptance criteria.
- Product owners decide which services to offer through APIs and to which parties.
- Payments product specialists define payment initiation and status calls and the rules around them.
- Data analysts pull data from internal and external APIs into analysis.
- Quantitative developers connect pricing and risk code to data and trade systems through APIs.
Common confusions
- An API is not a database. It is a controlled way to ask a system for data or for an action, and the system decides what to return.
- A web page and an API often draw on the same data, but the page is for people and the API is for programs.
- An API call is not always real time. Some APIs accept a request and finish the work later.
- Open banking is not the same as API technology. Open banking is a set of rules for access to accounts, and APIs are the usual way to deliver it.