# API

> An API, or application programming interface, is a defined way for one piece of software to request data or actions from another, such as fetching a customer record, sending a message or calling an AI model, without a person using a screen.

Also called: application programming interface, APIs, web API, endpoint. Category: Agents and automation. Source: https://aibuildindex.com/glossary/api

## In the index

- API integration: median $2,500, middle half $500 to $7,680, 11,407 priced briefs (https://aibuildindex.com/skills/api-integration)
- AI API integration: median $2,500, middle half $500 to $6,400, 1,993 priced briefs (https://aibuildindex.com/cost/ai-api-integration)

An API is a doorway that lets software talk to software. When an automation creates a contact in a CRM, when a website takes a card payment, or when an app sends a prompt to a language model, an API carries the request and returns the answer. For a business buyer whether a system has a good API decides how easily it can be automated, connected to AI, or replaced later.

## How it works

An API publishes a list of operations it supports, such as "get customer", "create invoice" or "generate text", and the exact format for calling each one. A program sends a request to an address, called an endpoint, with any required data and a credential proving it is allowed. The API checks the request, does the work and returns a response, usually in JSON.

Most web APIs follow the [REST](https://aibuildindex.com/glossary/rest-api) style, though GraphQL and other styles exist. Access is controlled by API keys or by [OAuth](https://aibuildindex.com/glossary/oauth), which lets a user grant an app limited access to their account. Providers also set [rate limits](https://aibuildindex.com/glossary/rate-limit) on how many requests can be made in a period.

AI models are mostly reached through APIs. An app sends the conversation and settings to a model provider's API and receives the model's reply, billed by the tokens processed. A builder connecting a support inbox to a language model, for example, uses the helpdesk's API to read tickets, the model's API to draft answers, and the helpdesk's API again to post the draft for an agent to review.

## What it means for cost

APIs shape both build and running costs:

- **API quality.** Well-documented APIs with test environments are quick to integrate. Poorly documented or partial APIs add days of trial and error.
- **Coverage.** If the API does not expose the data or action you need, the build may need workarounds such as exports or [browser automation](https://aibuildindex.com/glossary/browser-automation).
- **Usage fees.** Some APIs, including AI models, charge per request or per unit processed.
- **Limits and changes.** Rate limits shape design for high volumes, and providers change or retire versions, which creates maintenance work.

Ask a builder whether every system in scope has an API that covers what you need, and whether any API access needs a higher plan from the vendor.

## Common questions

### Does every software product have an API?

No. Most modern cloud software does, but coverage varies widely, and some API access is limited to higher-priced plans. Older desktop and on-premise systems often have none, which is where RPA or database connections come in.

### Is calling an AI model through an API safe for company data?

It depends on the provider's terms and settings. Check whether data sent through the API is stored, for how long, and whether it is used for training, and choose a region and plan that match your data protection needs.

## Related terms

- [API integration](https://aibuildindex.com/glossary/api-integration): API integration is the work of connecting two or more software systems through their APIs so that data and actions flow between them automatically, for example syncing orders to accounting or sending CRM records to an AI model.
- [REST API](https://aibuildindex.com/glossary/rest-api): A REST API is a web API that follows the REST style, exposing data as resources at URLs and using standard HTTP methods such as GET, POST, PUT and DELETE to read and change them, usually exchanging data as JSON.
- [Webhook](https://aibuildindex.com/glossary/webhook): A webhook is an automatic message one system sends to another over the web when an event happens, such as a payment succeeding or a form being submitted, so the receiving system can react immediately without repeatedly checking for changes.
- [OAuth](https://aibuildindex.com/glossary/oauth): OAuth is an open standard that lets a user give an application limited access to their account on another service, such as reading their calendar or CRM, without sharing their password, by issuing scoped and revocable access tokens.
- [Rate limit](https://aibuildindex.com/glossary/rate-limit): A rate limit is a cap set by a service on how many requests, or how much data, an application can send in a given period, which AI and software providers use to share capacity and protect their systems.
- [OpenAI API](https://aibuildindex.com/glossary/openai-api): The OpenAI API is the paid developer interface to OpenAI's models, letting software send text, images or audio and receive generated text, embeddings, speech or images, billed by usage rather than by seat.
