# REST API

- **Canonical URL:** https://getaimath.com/dictionary/rest-api/
- **Topics:** [AI APIs, Protocols & Integration](https://getaimath.com/dictionary/category/ai-apis-protocols-and-integration/)
- **Last updated:** 2026-11-25

## What is REST API?

**In one sentence:** A REST API is a common style of web API where programs send requests to web addresses using standard actions like GET and POST.

Each address represents something, like "/messages," and the request says what to do with it. Data is usually sent as JSON.

![APIs, JSON & MCP: The Drive-Thru Window & Universal Plug — Simple cartoon showing an App handing a neat checklist order slip (JSON) through a drive-thru window (API) to the AI, while a universal USB-C plug (MCP) connects the AI to Google Drive, Slack, and Email.](https://getaimath.com/diagrams/ai-apis-protocols-and-integration.png)
*Napkin Diagram (AI APIs, Protocols & Integration): An API is the drive-thru window apps use to talk to AI; JSON keeps replies neat; MCP is the universal plug for tools.*

## What is an example of REST API?

Sending a POST request with your prompt to a model provider's "/v1/messages" address is using a REST API.

## Why does REST API matter?

Most AI services offer REST APIs because they work with almost any programming language.

## Related Concepts

- [API](https://getaimath.com/dictionary/api/): An API, or Application Programming Interface, is a set of rules that lets one program talk to another.
- [API Endpoint](https://getaimath.com/dictionary/api-endpoint/): An API endpoint is a specific web address where an API accepts requests for a particular function.
- [API Key](https://getaimath.com/dictionary/api-key/): An API key is a secret code that identifies you to an API and gives you permission to use it.
- [SDK](https://getaimath.com/dictionary/sdk/): An SDK, or Software Development Kit, is a ready-made set of code libraries and tools that make it easier to use a platform or API.
- [JSON](https://getaimath.com/dictionary/json/): JSON is a simple text format for storing and sending structured data, using keys and values.
- [Structured Output](https://getaimath.com/dictionary/structured-output/): Structured output means getting an AI's answer in a fixed, machine-readable format, like JSON that follows a schema.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/rest-api/)
