# Stateless API

> An API that keeps no memory between requests. Each one carries all it needs.

**Field:** Software Development  
**Category:** APIs  
**Also known as:** Statelessness, Stateless Request, Stateless (REST)

## Think of it like

Think of it like a shop where nobody remembers you. Each time, you show your card and say what you want.

## Definition

A stateless API keeps no memory of past requests. Each request carries everything the server needs, like a token and the data. The server answers it and then forgets it. This is a key rule of REST. Because no server holds your session, any server can answer any request.

## Example

Each request from Lucy's app carries her token. Any of her four servers can answer it, so the load is easy to share.

## Why it matters

It is easy to add more servers. No request needs one special server.

## Common mistake

Thinking stateless means no data is saved. The database still keeps data; only requests are not linked.

## Three principles

- **No memory.** Each request stands alone.
- **Carry it all.** Send the token every time.
- **Easy to scale.** Any server can answer.

## Related terms

- [REST API](https://learn.benibix.com/term/development/rest-api)
- [Access Token](https://learn.benibix.com/term/development/access-token)
- [Horizontal Scaling](https://learn.benibix.com/term/development/horizontal-scaling)
- [Session (Web)](https://learn.benibix.com/term/development/session)
- [REST Resource](https://learn.benibix.com/term/development/rest-resource)
- [Stateless Service](https://learn.benibix.com/term/development/stateless-service)

![Three resources drawn as folders, users, orders and products, each with an address such as /orders/42. Four verbs point at the orders folder: GET reads it, POST adds one, PUT or PATCH changes it, DELETE removes it. Beside them, two requests arrive one after the other, each carrying its own token, with a note that the server keeps no memory between them, which is what stateless means.](https://learn.benibix.com/diagrams/dev3-rest-resources.svg)

---

Source: https://learn.benibix.com/term/development/stateless-api
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
