Skip to content

Idempotency key

published · September 10, 2026

An idempotency key is a caller-chosen string sent with a create request so that a retry of the same request returns the original result instead of creating a second one.

An idempotency key is a caller-chosen string sent with a create request so that a retry of the same request returns the original result instead of creating a second one. It exists because a network timeout tells you nothing about whether the server acted.

What Spaw answers

Send Idempotency-Key (1 to 128 printable ASCII characters) when creating a bulk job. A retry carrying the same key and the same request answers 200 with the same body — the same job, the same webhook secret — and the header Idempotent-Replayed: true. The same key with a different request answers 409 IDEMPOTENCY_KEY_REUSED rather than quietly returning the wrong job.

The request is fingerprinted as the lookup will read it, with a list-level country already folded into each item, so a retry that spells the same request differently still replays rather than being refused.

Where it does not apply

Single lookups have no idempotency key and do not need one: a repeat of the same value inside seven days is free anyway, which gives a retried lookup the same billing outcome without any bookkeeping.

Related

markdown version: /glossary/idempotency-key.md

Verify addresses the same way

The Spaw API runs every check described here on each lookup, with an SMTP handshake that never sends mail. 10 free lookups a month, no card required.

Get your API key

More glossary

  • Area-code overlay

    An area-code overlay is a new area code added over the same area as an existing one, instead of splitting it, so neighbours can hold different codes and local calls need ten digits.

  • Calling window

    A calling window is the span of local hours a sender contacts people in. Spaw answers in_call_window from the number's time zones: clock arithmetic, not compliance advice.

  • Fictional number

    A fictional number sits in a range kept out of service for films, TV and other fiction: 555-0100 to 555-0199 in North America, and ranges Ofcom, ARCEP, ACMA and ComReg reserve elsewhere.

  • International (exit) prefix

    An international prefix is what is dialled to leave a country before the calling code: 00 in most of the world, 011 in North America. Spaw reads it and suggests a fix in did_you_mean.

  • International network number

    An international network number sits under a calling code the ITU gives a global service rather than a country, such as +870, +881, +882 or +883, so its country is null.

  • Live carrier check (HLR lookup)

    A live carrier check asks the mobile networks, at the moment of the lookup, whether a number is in service, which network serves it and whether it is roaming. On Spaw it is not enabled.

  • Number pooling (thousands-blocks)

    Number pooling splits a North American central office code into ten blocks of a thousand numbers, each assigned to a carrier separately, so one code can hold several carriers' numbers.

  • Number portability

    Number portability lets a subscriber keep a phone number when changing carrier. The number's block stays listed under the carrier it was issued to, so block data names the original holder.