TOPIC 21/3615 MINNOT STARTED

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.

  1. Send with a key
  2. Read a page
  3. Follow the cursor
  4. Meet the limit
  5. Wait and retry
Three behaviours to write down

HOW THE PICTURE MAPS

How each part of the picture matches the work
In the pictureIn the work
Posting the same pizza order twiceA repeated request with the same key
The shop sending only one pizzaAn idempotent reply
A huge parcel sent in small envelopesPagination with a cursor
The post office saying slow downThe rate limit and the too-many-requests answer
Checking the delivery against the orderChecking 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.

What each part of the trick stands for
In the trickWhat it stands for
PaginationA huge parcel sent in small envelopes
Idempotent requestPosting the same pizza order twice and getting one pizza
Rate limitThe 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
  1. 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)

    Per the search excerpt, defines 429 Too Many Requests for rate limiting; a response may include a Retry-After header; the response must not be stored by a cache. · Checked 2026-11-08

    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.

  2. 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)

    The definition of what an idempotent request method is, alongside safe methods, the status-code semantics an API contract is built on, and conditional requests.

    Used here for the systems-design questions a Payments Software Engineer and a Payments Solution Architect are asked, where the question turns on HTTP's own guarantees rather than on a scheme's rules. · Checked 2026-08-18

    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.

  3. 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)

    The proposed convention for an Idempotency-Key request header: how a client marks a retry, what a server is expected to do with a repeated key, and the error responses for a reused or malformed one.

    Used here only where a systems-design question is about the proposal, and always alongside a scheme document that actually binds. · Checked 2026-11-23

    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.

  4. 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)

    Per the search excerpt, a test is written with a name and a function; the test fails if any check inside fails. Checks use the Chai expect style. Practitioner guidance, not a standard. · Checked 2026-10-18

    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.

  5. 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)

    Standard text. Describes paths, operations, parameters, schemas, required properties and responses; the Responses Object holds at least one response code. Search excerpt only. · Checked 2026-11-08

    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.

  6. Simplified educational illustration

    Payments Signal editorial teaching models — Payments Signal

    This site's own simplified teaching models. · Checked 2026-07-12

    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.

  7. 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)

    Practitioner tutorial: status-code check first, collections. · Checked 2026-10-19

    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. 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.

    Vendor documentation. Per the search excerpt, it shows a named test that checks the response status code, and a test that reads the body as JSON and checks a field. Vendor documentation for one tool. · Checked 2026-10-18

    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.