A REST API is a web API that follows the REST architectural style: it exposes data as resources at URLs and lets clients read and change them with standard HTTP methods such as GET, POST, PUT and DELETE.

Definition
REST stands for representational state transfer, an architectural style for networked applications described by Roy Fielding. A REST API, often called a RESTful API, applies that style to web services. Each kind of thing the API manages, such as customers, orders or invoices, is a resource with its own URL, and clients interact with those resources using the methods HTTP already defines.
REST APIs usually exchange JSON, are stateless so each request carries everything the server needs to handle it, and rely on HTTP features such as status codes, headers and caching. That use of familiar web building blocks is a big part of why REST became the most common way for web apps, mobile apps and third-party integrations to talk to backend systems.

How it works
Resources are identified by URLs. A collection might live at /customers and an individual item at /customers/42, with related resources nested where it makes sense, such as /customers/42/orders. Clients use HTTP methods to express intent: GET reads, POST creates, PUT replaces, PATCH updates part of a resource and DELETE removes it. GET requests should never change data, which lets browsers, proxies and CDNs cache them safely.
The server answers with a representation of the resource, usually JSON, and a status code that summarizes the result: 200 for success, 201 when something was created, 400 for a bad request, 401 or 403 for authentication and permission problems, 404 when a resource does not exist and 500 for server errors. Clients authenticate each request, typically with an access token in the Authorization header, since the server does not keep session state between calls.
Well-designed REST APIs add consistent conventions on top: pagination for large collections, filtering and sorting through query parameters, clear error bodies, versioning so changes do not break existing clients, and rate limits to protect the service. Many teams describe the API in an OpenAPI specification, which drives documentation, client SDK generation and contract tests.
Keep learning
Put it into practice
Well-designed APIs and dependable third-party integrations that connect your products, partners and internal systems.
Explore serviceFast, secure and accessible web applications built with React and Next.js, designed for real users and real traffic.
Explore servicePurpose-built software engineered around how your business actually operates, with clean architecture and full code ownership.
Explore serviceFAQ
An API is any defined interface that lets software talk to other software. A REST API is one specific style of web API that uses resources, URLs and HTTP methods. Other styles include GraphQL, gRPC and SOAP, and APIs also exist inside code libraries and operating systems.
No. REST does not prescribe a data format, and an API can return XML, CSV, images or other types, with the Content-Type header telling the client what it received. JSON became the common default because it is compact, readable and native to JavaScript.
Strictly, REST has several constraints: client-server separation, statelessness, cacheability, a uniform interface, a layered system and, in its fullest form, hypermedia links that tell clients what they can do next. Most APIs called RESTful follow the first few and skip hypermedia, which is a practical rather than pure reading of the style.
Talk to a solution architect about where it fits in your roadmap.
