AI Dictionary › Fondamenti AI
API REST
A REST API is a web interface that exposes resources through URLs and manipulates them with HTTP's standard verbs: GET to read, POST to create, PUT to update, DELETE to remove. REST (Representational State Transfer) is the architectural style that made web APIs simple, predictable and universal: nearly every online service exposes one.
A REST API is a web interface that exposes resources through URLs and manipulates them with HTTP's standard verbs: GET to read, POST to create, PUT to update, DELETE to remove. REST (Representational State Transfer) is the architectural style that made web APIs simple, predictable and universal: nearly every online service exposes one.
The key principles: every resource has a unique address (say /users/42), operations use HTTP methods with their semantics, responses typically arrive as JSON with standard status codes (200 OK, 404 not found, 429 too many requests), and every request is stateless, that is self-sufficient: the server remembers nothing between calls, which makes the system scalable and reliable.
In AI, REST APIs are the door to the models: OpenAI's chat completions, Anthropic's messages and Hugging Face endpoints are REST APIs accepting prompts as JSON and returning generations. Anyone integrating AI into products almost always goes through here. Beyond AI, payments, maps, weather and social platforms expose their functions via REST.
REST was defined by Roy Fielding, co-author of the HTTP specification, in his 2000 doctoral dissertation at the University of California, Irvine: an after-the-fact systematization of the principles that had made the web scalable. The name describes the mechanism: transferring representations of resource state. During the 2000s REST displaced the more complex SOAP to become the lingua franca of web integration.
Una API REST è un'interfaccia web che espone risorse tramite URL e le manipola con i verbi standard di HTTP: GET per leggere, POST per creare, PUT per aggiornare, DELETE per eliminare. REST (Representational State Transfer) è lo stile architetturale che ha reso le API del web semplici, prevedibili e universali: quasi ogni servizio online ne espone una.
I principi chiave: ogni risorsa ha un indirizzo univoco (ad esempio /utenti/42), le operazioni usano i metodi HTTP con la loro semantica, le risposte arrivano tipicamente in JSON con codici di stato standard (200 OK, 404 non trovato, 429 troppe richieste) e ogni richiesta è senza stato, cioè autosufficiente: il server ricorda niente tra una chiamata e l'altra, il che rende il sistema scalabile e affidabile.
Nell'AI le API REST sono la porta d'accesso ai modelli: le chat completions di OpenAI, i messages di Anthropic e gli endpoint di Hugging Face sono API REST che accettano prompt in JSON e restituiscono generazioni. Chi integra l'AI nei prodotti passa quasi sempre da qui. Fuori dall'AI, pagamenti, mappe, meteo e social espongono le loro funzioni via REST.
REST fu definito da Roy Fielding, coautore della specifica HTTP, nella sua tesi di dottorato del 2000 all'Università della California, Irvine: una sistematizzazione a posteriori dei principi che avevano reso il web scalabile. Il nome descrive il meccanismo: trasferimento di rappresentazioni dello stato delle risorse. Negli anni 2000 REST soppiantò il più complesso SOAP diventando la lingua franca delle integrazioni web.
From our network
AGORÀ Intelligence — Enterprise AI Governance Platform
Govern AI at scale: policies, adoption and measurable results on your data. Built for boards and C-suite.
Visit agora-intelligence.com →From the Agora Intelligence blog
📱 Download the Android app (beta) iOS coming soon
Say what you mean. Get what you need.
Grace Certified — the AI coach that trains and certifies your prompt engineering — by Agora Intelligence.