How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Fix Kits · Agent Readiness · 9 of 159 points

Fix Kit: Idempotency

Declare an idempotency key on your write operations, so an agent's retry never charges a card or sends a message twice.

$149
One check · 9 points
  • Effort: A contract change if your API already de-duplicates; the kit's first step tells you which.
  • Who needs it: 41,070 of the 42,356 providers it applies to don't get full credit (apis.io, scored 2026-11-21, rubric 0.28.1). 1,286 do, and 1,097 more get partial credit.
  • You get: the full kit (PDF and Markdown): how to find what your API really does, step-by-step fix, starter schemas, an OpenAPI Overlay that applies it across your contract, a script that checks your work exactly the way the scorer does, and docs-platform notes.

What the check measures

Agents retry. A network blip, a timeout or a 502, and the agent sends the request again. Without idempotency, that retry charges a card twice, sends a message twice or opens a duplicate ticket. With an idempotency key, the client attaches a unique value to the request; if the same key arrives again, the API returns the original result instead of acting twice.

The check asks: does your contract declare an idempotency key on your write operations?

Grade What earns it
Verified (full 9 points) At least one POST, PUT, PATCH or DELETE operation in your OpenAPI declares either: a header whose name contains idempoten (e.g. Idempotency-Key); a request-body field whose name contains idempoten (e.g. idempotency_key, one level of nesting allowed); or a field named client_token, client_request_token, dedup_key/deduplication_id or unique_token whose own description says it prevents duplicates
Documented (0.5, 4.5 points) No declared field, but your docs describe idempotency
Derived (0.125, 1.1 points) The only OpenAPI that passes, or the only idempotency file, is one API Evangelist wrote (under openapi/_ae-authored/, or marked x-authored-by: API Evangelist, x-generated-from, or an x-provenance/x-method of generated, derived or modeled). Since rubric 0.28 our documents can’t make you verified
None Neither

The rule is in signals/score.rb (idempotency_key_param) and the vocabulary in scoring.yml (key_names). Parameters shared at the path level count too.

What doesn’t count: the word “idempotent” in a description. A description saying “this endpoint is NOT idempotent” used to earn credit; it no longer does (roadmap#289).

The rule above is the public rubric (rubric page). The kit sells the working method: the steps, starters, overlay and check script.

What a kit does and doesn't do. A kit teaches the fix. Your score changes only when you publish the change and the public apis.io pipeline reads it, so ask for a re-check from your provider page once it's live. Buying never moves a score. Want it applied to your own contract instead? Use Ask about this on your apis.io provider page for a tailored fix plan; the kit price is credited against it.