API behaviour: idempotency, pagination, rate limits and checking an API in Postman
Learn what happens when a request is sent twice, when a list is long and when a caller asks too often, and how to check a real reply against the written description in Postman.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: Posting a letter. Suppose you post a letter asking a shop to deliver one pizza. If the post office loses the receipt and you post the letter again, will two pizzas arrive? A good shop would notice the repeat and send one. Now think of a huge parcel: the post office hands it over in small envelopes, a few pages at a time. And if you post a hundred letters in a minute, the post office may say "slow down".
An does all three. An application programming interface (API) is a doorway through which one program asks another to do something. The answers matter to an analyst because they decide what the user sees when things go wrong.
Sam, the for Daily List, is writing the rules for the task API. Tom, the tester, will check them in a tool called Postman, which sends requests and shows the replies.
Three ideas carry the lesson. An gives the same result when repeated. Pagination returns a long list in pages. An caps how often a caller may ask.
The picture has a limit. A post office never says "too many letters today", but an API can.
PLAIN WORDS · 2 in this section
- idempotent
- repeating it has the same effect as doing it once
- pagination
- splitting a long report into numbered pages
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the work.
THE REAL JOB The picture helps a newcomer remember three behaviours that cause real bugs: repeats, long lists and too many calls.
- Send with a key
- Read a page
- Follow the cursor
- Meet the limit
- Wait and retry
HOW THE PICTURE MAPS
| In the picture | In the work |
|---|---|
| Posting the same pizza order twice | A repeated request with the same key |
| The shop sending only one pizza | An idempotent reply |
| A huge parcel sent in small envelopes | Pagination with a cursor |
| The post office saying slow down | The rate limit and the too-many-requests answer |
| Checking the delivery against the order | Checking a reply against the description |
WHERE THIS PICTURE STOPS
- A post office never refuses letters for being too frequent, but an application programming interface (API) can.
- A shop remembers your face, but a server remembers only the key.
- Envelopes arrive in order by post, but pages can shift when new items arrive.
HOOK
Same key, same result; next page, then wait.
REMEMBER IT THIS WAY
A contrast: two neighbours told apart by one test.
Each idea answers one question: pagination, how much at once; , what if I send it twice; rate limit, how often.
| In the trick | What it stands for |
|---|---|
| Pagination | A huge parcel sent in small envelopes |
| Idempotent request | Posting the same pizza order twice and getting one pizza |
| Rate limit | The post office saying slow down |
TELL A FRIEND
A repeated request with the same key must not create a second task. A long list comes in pages, and a caller who asks too often is told to wait.
OFTEN MIXED UP WITH REST and JSON basics. That topic explains requests, methods and the data format. This one covers repeats, pages, limits and how to check a reply.
PRACTISE AND KEEP
Sources for this topic — 8 sources
- Market practice
Additional HyperText Transfer Protocol (HTTP) status codes (Request for Comments 6585) ↗ — IETF · RFC 6585, additional HTTP status codes: the 429 status code says too many requests and may carry a Retry-After header (registry source; page not opened in this batch)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
RFC6585, April2012, Standards Track; complete section4/429 read 8 November2026. Rate-limit response MAY contain Retry-After; user identity and counting policy are not fixed. Not an all-HTTP-error retry rule.
- Market practice
RFC 9110 — HTTP Semantics ↗ — IETF · RFC 9110, HTTP Semantics: the standard marks GET, PUT and DELETE as idempotent and POST as not, and lists the status codes (registry source; page not opened in this batch)
Internet Standard, June 2022, obsoleting RFC 7230 through 7235.
Cited for method semantics only. "Idempotent" in RFC 9110 is a property of a method: that repeating the request has the same intended effect on the origin server. It is not the same claim as "this payment cannot be duplicated", which is a scheme-level guarantee with its own documents.
Read through a mirror, because the publisher's own domain could not be fetched (a reachability gap, not a statement about the publisher). A 403 there is a policy refusal and says nothing about whether the document exists or is reachable elsewhere.
Anyone on an unrestricted network should open the canonical URL above and confirm the section and page numbers cited against it. Every claim drawn from this entry is written so that it can be checked against a numbered page.
Read in full from the HTTP Working Group's own publication mirror at httpwg.github.io.
- Market practiceDraft, not in force09, 21 November 2026; expires 25 May 2027
The Idempotency-Key HTTP Header Field — draft-ietf-httpapi-idempotency-key-header-09 ↗ — IETF HTTPAPI Working Group · The Idempotency-Key HTTP header field (draft): a client sends a unique key so a repeated request is not run twice (registry source; page not opened in this batch)
Primary IETF revision 09 §§2.2–2.7 and Appendix A checked 23 November 2026. It is an active Internet-Draft. Section 2.6 describes a response consistent with completion according to user intent. Revision 09 clarifies optional fingerprints, lets each resource define uniqueness, and recommends that resources document behaviour and expiry. The provider contract determines actual payment retry behaviour.
- Market practice
Write scripts to test API response data in Postman (Postman Learning Center) ↗ — Postman · Postman Learning Center, write scripts to test API response data: a test script checks the status, headers and body of a reply (registry source; page not opened in this batch)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
OpenAPI Specification v3.1.0 ↗ — OpenAPI Initiative · OpenAPI Specification v3.1.0: an interface description states paths, parameters and responses (registry source; page not opened in this batch)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
8 November2026 bounded primary-source update: OpenAPI3.1.0 Introduction actually read 8 November2026: interface description for HTTP APIs. Not full OpenAPI audit or a generic live-message contract.
- Simplified educational illustration
Payments Signal editorial teaching models — Payments Signal
What this simplifies: Daily List, Sam, Tom and Leo are invented. The requests in this lesson were run against a small local stand-in server written for the lesson, with curl and a short script, because Postman was not installed here. Postman sends the same kind of request and its Tests tab runs the same kind of checks. Real interfaces differ in names and numbers.
Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.
- Market practice
API Testing with Postman: A Beginner's Guide ↗ — DEV Community · Practitioner tutorial on collections, variables and starting with the status code. (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Postman test script examples (Postman Learning Center) ↗ — Postman · Postman Docs Latest(v12),test-examples,Scripts/Post-response,accessed6November2026. Opened actual pm.test/pm.expect examples. Tool checks compare observation to explicit contract; they cannot decide which artefact is authoritative.
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.