DelegIA
Get started

What is an API (application programming interface)?

An application programming interface (API) is a set of rules that define how one program can request data or actions from another. The rules specify the format and permissions, so the programs can exchange information without anyone copying it between screens.

Albert López·Founder of DelegIA·Updated

Also called
Application Programming Interface
Type
Concept
Related to
MCP, LLM, AI agent, RPA
Reading time
9 minutes

What does API mean, and why is it useful for your business?

When you add a new business customer, sales enters the customer's name and address in the CRM. If your company keeps EINs (federal tax IDs) in its customer records, sales also records this customer's EIN. Then, when it's time for the first invoice, someone in accounting types the same details into the billing software. If they mistype the tax ID, the billing record has an error.

The example shows what’s possible with an API: the billing software requests the customer's details from the CRM, which returns them in a format both programs understand. Both systems then use the same information without anyone copying it.

Without an APINew customer

In the CRM
Sales creates the customer record
In billing
Someone types the details in again
The EIN
Can be copied incorrectly

With an APINew customer

In the CRM
Sales creates the customer record
In billing
The software requests the details from the CRM
The EIN
The same in both systems

A program's API determines what other software can do, such as read customer records, create invoices, check inventory, or update an order's status. When a provider connects two programs through an API, the connection might let your billing software look up a customer while preparing an invoice or refresh customer details every night. This is API integration: the programs work together without anyone copying data. Most automation between business applications relies on it.

What is an API call, and how does it work?

An API call is a request that one program sends to another at a specific address, with data if needed. For a web API, the call goes to a web address. If authentication is required, the calling program uses a method the provider supports, such as a key, an authorized user account, or a digital certificate. The receiving program checks whether the caller has permission, carries out the operation, and responds with the requested data, a confirmation, or an error explaining what went wrong.

In the new-customer example, the billing software requests the CRM record for customer 1042. The response contains the customer's name, EIN, and city in a format the billing software can read.

What is a REST API?

A REST application programming interface follows an architectural style commonly used for web services. It organizes data into resources, such as customers or invoices. Each resource has an address, much like a web page. The request method tells the program what to do with that resource: retrieve, create, update, or delete it. Responses can use different formats. JSON is common because both software and people can read it.

In this REST API example, the billing software requests a customer record and receives the response below:

Request and responseBilling software and CRM

GET https://crm.example.com/api/customers/1042
{"name": "Example Workshop LLC", "ein": "00-0000000", "city": "Columbus"}

GET retrieves information. Each API's documentation specifies which methods its operations accept, such as POST to create an invoice and DELETE to remove one. Roy Fielding described REST in his 2000 doctoral dissertation. An API that follows the constraints in his definition of REST is called RESTful. In everyday development, people often use REST and RESTful with the same meaning when describing an API. A REST API delivered over HTTP, the web's protocol, is a web API.

SOAP vs REST is a comparison of two ways to build an API. SOAP is the older protocol, which exchanges XML messages in a strict format. API is the broader term, while REST describes one architectural style. In the United States, the IRS's Modernized e-File system, or MeF, uses SOAP for XML transmissions of electronic tax returns. Its application-to-application channel lets registered transmitters send returns directly from their software. See the IRS's technical description of MeF and system overview.

Endpoint, payload, and other terms a developer uses

When a developer talks about connecting your software, these terms describe the address, the data exchanged, and how the connection is documented and tested.

  • EndpointAn API endpoint is an address that receives requests. Developers define endpoints for the resources or operations other software can access. For example, there can be separate endpoints for customers, invoices, and inventory.
  • PayloadThe payload is the data carried in a request or response. The JSON block with the customer's name, EIN, and city is the response payload in this example.
  • ConsumeTo consume an API means to use another program's API. Reading CRM customer records from the billing software is an example.
  • SwaggerWhen connecting two programs, a developer will often ask for the API's Swagger document. It describes the available operations, required data, and possible responses. The standard began as the Swagger specification and became a separate project called OpenAPI in 2016. Today, Swagger is the name of tools for displaying and testing APIs described with OpenAPI. Developers also use platforms such as Postman to send test requests and document how they work before writing the integration. See the OpenAPI Initiative's specification and FAQ, and Postman's product documentation in Sources.

What is an API key, and what access does it provide?

An API key is a long secret code, much like a password, that identifies the application making a request. In the provider's settings, it may just be labeled "key." The receiving service uses it to check the caller's access and track usage for billing.

Keep it out of emails, chats, and spreadsheets. Anyone who has the key can use the access it provides. If it belongs to an AI service, they can also run up charges on your account. For the automations we build with n8n, we store keys in its credential manager, where they stay separate from the workflow steps. Each key should have only the permissions its task needs. For example, an automated quoting process can use a credential that allows it to read the catalog and create a draft quote. A person then sends the quote to the customer.

You create keys in the provider's API platform. With OpenAI, your ChatGPT subscription and API usage are billed separately. A key used to display Google Maps on your website is a Google API key. Google recommends restricting it to the websites and specific APIs that need it, so another website cannot use it at your expense.

Before you make your company's application programming interface available externally, review its security and key permissions. Check who can call it, which data each credential can access, and what the system logs.

Public APIs, external APIs, gateways, and other names

There are several types of application programming interfaces, depending on who can use them. A public API is available to outside developers under the provider's terms. Google Maps is one example. You register a project, and charges depend on the service and usage. An API that developers can access without a separately negotiated agreement is often called an open API. You still need to check its pricing and permitted uses.

Your bank's API and your shipping carrier's API are external APIs from your company's perspective because another company maintains them. The ones your company builds for its own programs are internal APIs.

Google has APIs for many of its services. For example, the Google Calendar API lets other programs create and reschedule events in your calendar.

The WhatsApp API lets software send and receive messages using your business number. Meta provides it through the WhatsApp Business Platform. Another API used by online stores is Meta's Conversions API, which can send purchase events from the store's server to Meta to help measure advertising results. Both services are documented in Sources.

API management controls who can use an application programming interface and sets limits on that use. When a company has many APIs, it can put a common entry point in front of them: an API gateway. It receives requests, checks credentials, limits request rates, and routes each request to the right application.

Application programming interfaces explained beyond business software

In computing, an application programming interface has a broader meaning, with examples that include operating system functions for opening files or accessing a printer and graphics APIs such as OpenGL and DirectX. Games use these graphics APIs to draw on the screen.

This definition of an application programming interface (API) also applies to code libraries. A library exposes functions with rules for what you can ask it to do, what data you need to supply, and what it returns. When someone asks about an API in Python or Java, they may mean a library's interface. As with business software, those rules let one component use another without knowing how it works inside.

How AI connects to your software through an API

Your software can also use an AI API from a provider such as OpenAI or Anthropic to send text, a document, or a question to a model and receive its response. Text models are generally billed by the number of tokens, or chunks of text, they process as input and output. Some features have additional charges.

Choose a model that fits the task. A fast, inexpensive model can classify email, while reviewing a contract may call for a more capable one. If you need to run a model on your own server, you can use an open-weight model from a family such as DeepSeek or GLM. Services such as OpenRouter give you access to multiple models through one API.

An API lets your software send work to an AI model and use its response.

When you open ChatGPT in a browser and paste in an invoice, you handle the exchange yourself. In an integration, your invoice-processing software calls the model through its API. It sends each invoice, receives the extracted data, and puts that data in the accounting system for someone to review. For customer data, we recommend calling the model from the company's system rather than using an individual app account. The provider still receives whatever you send, under the API's data terms.

OpenAI does not train on API data unless you opt in. Its default abuse-monitoring retention is up to 30 days, with legal and safety exceptions; some stored files and application state remain until deleted. Anthropic also requires express permission for training. Its standard commercial policy generally deletes API inputs and outputs within 30 days, with exceptions for features such as file storage, agreed arrangements, legal requirements, and policy enforcement. Retention also depends on the feature and model. Check the providers' data documentation in Sources for the integration you use.

The credentials, review history, and extracted data stay in the company's system. If certain data must stay inside the company, use a suitable open-weight model on an internal server. Once the model is chosen, we at DelegIA prefer to buy access directly from its provider to avoid an intermediary's fee.

You connect an AI API to the rest of your software with code or an automation tool such as n8n, which calls each API in the configured order. To let an AI assistant use a tool when needed, you can make the tool available through MCP, a standard for connecting AI applications to external systems. You can limit the operations the assistant is allowed to request, and use MCP alongside automated API calls in the same integration.

If someone in your company copies data between programs, visit Custom software development to see how we connect your systems and request a free introductory call.

Sources

  1. Roy Fielding, Architectural Styles and the Design of Network-based Software Architectures, chapter 5, University of California, Irvine, 2000. Accessed November 26, 2026.ics.uci.edu
  2. OpenAPI Initiative, OpenAPI Specification and FAQ on OpenAPI and Swagger. Accessed November 26, 2026.spec.openapis.org
  3. IRS, Internal Revenue Manual 3.42.4, MeF system benefits, section 3.42.4.6.1 and Modernized e-File overview. Accessed November 26, 2026. SOAP, XML, and the application-to-application channel.www.irs.gov
  4. OpenAI, Managing billing for ChatGPT and the API platform. Accessed November 26, 2026.help.openai.com
  5. OpenAI, Data controls in the OpenAI platform. Accessed November 26, 2026. Training defaults and retention by feature.developers.openai.com
  6. Anthropic, API and data retention and How long do you store my organization's data?. Accessed November 26, 2026. Training permission, standard policy, and feature-specific arrangements.platform.claude.com
  7. Google, Google Maps Platform security guidance. Accessed November 26, 2026.developers.google.com
  8. Meta, WhatsApp Business Platform. Accessed November 26, 2026.whatsappbusiness.com
  9. Meta, Conversions API. Accessed November 26, 2026.developers.facebook.com
  10. Google, Create events with Google Calendar. Accessed November 26, 2026.developers.google.com
  11. n8n, Create and edit credentials. Accessed November 26, 2026.docs.n8n.io
  12. Postman, API platform capabilities. Accessed November 26, 2026.www.postman.com
  13. Model Context Protocol, Introduction. Accessed November 26, 2026.modelcontextprotocol.io
  14. OpenRouter, Quickstart. Accessed November 26, 2026.openrouter.ai
  15. DeepSeek, DeepSeek-V3 repository and Z.ai, GLM-4.5 repository. Accessed November 26, 2026. Examples of models available for local deployment.github.com
  16. IRS, Employer identification number. Accessed November 26, 2026. Business identification terminology.www.irs.gov
  17. AWS, What is an API?. Accessed November 26, 2026. English terminology for APIs and gateways.aws.amazon.com
Albert López

Albert López

Founder of DelegIA

He helps small and midsize businesses in Spain decide where AI makes sense, puts the agreed systems in place, and supports the teams that use them. These glossary entries draw on his work with those businesses.

Last reviewed: