What is an API: how it works, types and systems integration examples
An API is the set of rules a system publishes so others can request data or actions from it. See how it works, the types (REST, GraphQL, SOAP), how it differs from a webhook and from integration, its role in AI agents, security and examples.
Published on November 26, 2026. 10 min read
An API (application programming interface) is the set of rules a system publishes so that other systems can request data or trigger actions in it, without direct access to its code or database. An API is how an online store checks shipping rates, how a banking app shows the balance and how an e-commerce order reaches the ERP on its own.
This is a term in the UEEK glossary of technology, AI and security. Here you will find the short definition, how an API works, the most common types, how it differs from a webhook and from systems integration, the role of APIs in AI agents and the security precautions, with links to the longer guides.
What is an API, in simple terms?
A common comparison is a service counter. Whoever arrives does not walk into the kitchen or touch the stock: they place the order at the counter, in the agreed way, and get what they asked for. The API is that counter. It defines what can be requested, in which format, who is allowed and what comes back as the answer.
This brings two advantages. The system that offers the API controls what it exposes and can change what happens inside without breaking whoever uses it. And whoever consumes the API does not need to know the internal details of the other system, only the published rules.
APIs show up in almost every piece of modern software:
- third-party APIs, offered by services such as payment providers, carriers, invoicing services, maps and social networks;
- the company's own APIs, which let the website, the app and internal systems use the same data and the same rules;
- APIs between companies, when a customer, supplier or partner needs to exchange information automatically.
How does an API work?
In the most common form, a system sends a request over the internet to an API address, stating what it wants, for example "look up order 1234". The API checks who is asking, validates the request, reads or changes the data and returns an answer in a standard format, often JSON, a structured text that any programming language can read.
- Request: A system sends a request to the API address, for example to look up a sales order.
- Credential: The API checks who is asking, with a key or an access token, and what that credential is allowed to do.
- Rules and validation: The API checks that the request has the right format and follows the business rules.
- Data: The system reads or changes the information in its own database.
- Response: The API returns the result in a standard format, with a code that signals success or the type of error.
The requesting system never touches the other system's database. Everything goes through the API rules.
Every serious API comes with documentation: the list of available addresses, what each one accepts and returns, the error codes and the usage limits, such as the number of requests per minute. Without documentation, every integration turns into trial and error.
What are the most common types of API?
- REST: the most widely used model on the web. Each resource (customer, order, product) has an address, and actions follow standard verbs such as read, create, update and delete.
- GraphQL: the requesting system describes exactly which fields it wants back, which helps screens that combine a lot of information in a single query.
- SOAP: an older, XML-based standard, still common in banking, government and legacy systems.
- Internal and public APIs: the difference here is who can use them. An internal API serves only the company's systems; a public one is open to partners or to any registered developer.
The choice depends on who will consume the API, the expected volume and what the systems involved already support. It is part of the product's software architecture.
What is the difference between an API, a webhook and systems integration?
The three terms go together but describe different things. The API is the door: the rules for requesting data or actions from a system. A webhook is a notice: the system itself calls another system's address when something happens, such as "payment approved", without waiting to be asked. Systems integration is the project that uses APIs, webhooks and other forms of communication to make two or more systems work together.
- API
- The system asks: Whoever needs the data makes the request when they want, for example every time a customer looks something up.
- The API answers: The source system returns the data right away, within the published rules.
- Webhook
- Something happens: A payment is approved or an order changes status in the source system.
- The system notifies: The source system calls an agreed address and the other side reacts right away.
In practice, a well-built integration usually combines both: the webhook signals that something changed and the API is used to fetch the details. The systems integration guide explains the types, the challenges and a step-by-step approach to connecting ERP, CRM and other systems.
What do companies use APIs for?
- Connecting existing systems, such as e-commerce, ERP, CRM and finance, so data is typed in only once.
- Linking the website and the app to the same system, with the same rules and information in both.
- Using ready-made services, such as payments, shipping, invoicing, social login and notifications, without building everything from scratch.
- Opening data to partners, such as resellers, sales reps or customers, with controlled access.
- Automating tasks, when a process depends on information spread across different tools. The process automation guide shows how this is organized.
How do APIs relate to AI agents?
An AI agent can act on a company's systems through APIs. When an agent checks the status of an order, opens a ticket or updates a record, it is calling an API with its own credential. Recent standards such as MCP (Model Context Protocol) organize how these tools are described to the model, but underneath they are still API calls.
That is why the quality of the APIs sets how far an agent can go. Well-documented APIs, with permissions split by task and a log of every call, make it possible to give the agent only the access it needs and to review afterwards what it did. Without that, the agent is either too limited or gets more access than it should.
AI also helps with the API work itself. In a squad's daily routine, it suggests documentation from the code, generates software test cases for success and error responses and helps read a third-party API's documentation before an integration starts. The team reviews everything before it goes to production.
What security precautions does an API need?
An API is a door open to the internet, so it deserves the same care as any other entry point to the system:
- authentication on requests that require restricted access, with keys or tokens that can be rotated and revoked;
- least privilege, so each system or agent accesses only what it needs;
- validation of incoming data, so a malformed request does not corrupt information;
- rate limits, to prevent abuse and spikes that bring the system down;
- logging and monitoring, to know who called what and to spot unusual behavior;
- versioning, to change the API without breaking the systems that depend on it.
These precautions start in the code and continue in the delivery pipeline, as the DevSecOps guide describes. Once the API is live, software maintenance takes care of updates, alerts and changes in third-party APIs, which happen often.
Examples of APIs in UEEK projects
- Itaú: on the new Itaú Mulher Empreendedora platform, security was handled in three layers, in the code, the infrastructure and the delivery, with CI/CD to banking-sector standards. It is the same care any API exposed to the internet needs.
- Bom Controle: the ERP's Android and iOS app was integrated with the client's APIs, with documentation and versioning designed for the in-house team to take over maintenance.
- Magazord: the new website, built with React and Next, has API integrations with the marketing tools and a custom CMS.
- GTS: lead capture automations take structured WhatsApp information straight into the sales system, integrating the entry channels. In the same project, AI helped cut the time spent on requirements by 80%.
- Wellu: the group challenge app connects to Apple Health, Health Connect, Samsung Health and Strava to import workouts, always with the person's confirmation, and the subscription is integrated with the App Store and Google Play.
Frequently asked questions
Is an API a system?
Not exactly. The API is the part of a system that is exposed for other systems to use. The system still exists behind it, with its screens, database and rules; the API is the agreed way to talk to it.
Does every system have an API?
No. Many older systems do not, or have a limited one. In those cases you can build an API layer around the system, exchange files at set times or, as a last resort, read the data straight from the database, with more care and more risk.
Does using a third-party API cost anything?
It depends on the provider. Some APIs are free up to a certain volume, others charge by usage or are part of a plan. Check the limits and terms in the documentation before designing the integration.
How long does it take to build an API?
It depends on how many operations it will offer, the business rules involved and the systems behind it. A simple API that exposes a little data is ready quickly; one that connects several systems and serves external partners needs more design, testing and documentation.
Is an API secure?
It can be, if it is built with authentication, least privilege, data validation, rate limits and monitoring. Most problems come from APIs built in a hurry without these precautions, or from credentials left in the wrong places.
Can I give an AI agent access to the company's APIs?
Yes, with a dedicated credential for the agent, permissions only for its tasks, a log of every call and a person's approval for sensitive actions. The AI Map is free and helps you see which processes this makes sense for.
How UEEK can help
UEEK designs, builds and documents APIs and integrations between your systems as part of custom development, with AI speeding up documentation and testing and the team reviewing every delivery. After launch, maintenance looks after the integrations, security updates and changes in third-party APIs. When the goal is to put AI agents to work with those systems, the path goes through AI agents in production. The other solutions in the systems area are on the solutions page. UEEK has 14 years in the market, more than 200 clients in 6 countries and more than 500 projects delivered, from local businesses to Itaú.
More terms and guides on systems, AI and security are in the UEEK glossary.
Topics
- API
- what is an API
- systems integration
- glossary