Glossary · Updated November 24, 2026

What is an idempotency key?

Quick answer

An idempotency key is a unique value, often a UUID, that a client sends in the Idempotency-Key header so a retried request runs only once. If a rent receipt or bill payment request times out and the client retries with the same key, the server returns the first result instead of posting twice. Darcy's API requires the header on every write that moves money: 180 of 2,266 operations on November 24, 2026.

An idempotency key is a unique value, often a UUID, that a client sends in the Idempotency-Key header so a retried request runs only once. If a rent receipt or bill payment request times out and the client retries with the same key, the server returns the first result instead of posting twice. Darcy's API requires the header on every write that moves money: 180 of 2,266 operations on November 24, 2026.

✓

$2 per unit, every feature included

✓

You approve every AI action

✓

Data moved and checked to the cent

Soft evening sky
Darcy month-end close checklist with blocking checks

The month-end close checklist blocks the close until every check passes.

An idempotency key is a unique value that a client sends with a request so the server runs that request only once. If the client sends the same request again with the same key, the server returns the first result. It does not run the request a second time.

Definition

RFC 9110, the HTTP standard, calls a method idempotent when repeating it has the same effect as sending it once. GET, PUT, and DELETE are idempotent. POST and PATCH are not. A POST that records a payment can post twice if the client retries it.

The IETF draft "The Idempotency-Key HTTP Header Field" (draft 09, dated November 21, 2026) defines a header that fixes this for POST and PATCH. It is still a draft, not an RFC. The draft recommends a UUID or a similar random value. It says a server should publish how long it keeps keys. The draft lists Stripe and Adyen among the APIs that use the header.

How it works

  1. The client makes a new key, such as a UUID, for one business action.

  2. The client sends the request with the Idempotency-Key header.

  3. The server stores the key with the result, in the same step as the write.

  4. If the response is lost, the client sends the same request with the same key.

  5. The server finds the key and returns the stored result.

Situation

The draft recommends

Darcy's API

A required key is missing

400

400 idempotency_key_required

Same key, same request, after it finished

Return the first result

Returns the stored response for 24 hours

Same key, different request

422

409 idempotency_conflict

If the first request fails, Darcy stores nothing, so a retry with the same key runs again.

Why it matters for rent and bill payments

Networks drop responses. A client often cannot tell if a write failed or only the answer was lost. For money, a blind retry is a real cost.

Example. An integration records a $1,850.00 rent check. The server posts it, but the response times out, so the client retries.

  • Without a key: the lease ledger shows two receipts, $3,700.00 in all. Someone must find the duplicate and reverse it, and trust accounting reports are wrong until then.

  • With a key: the retry returns the first response. The ledger shows one receipt of $1,850.00.

The same risk applies to a bill payment. A retried request can pay a vendor twice.

How Darcy requires it

In Darcy's API, every write that moves money requires an Idempotency-Key. On November 24, 2026, 180 of the 2,266 operations required it. Examples are POST /v1/receipts/record_manual, POST /v1/bills/create, POST /v1/bills/pay, POST /v1/receipts/{id}/refund, and POST /v1/hap_payments/record. Other writes accept the header as an option. A key can be up to 255 characters.

curl -X POST https://api.usedarcy.com/v1/receipts/record_manual \
  -H "Authorization: Bearer pmk_live_..." \
  -H "Idempotency-Key: 3f6c1b2e-8d4a-4c1e-9b7f-2a5d6e8c0f11" \
  -H "Content-Type: application/json" \
  -d '{"lease_id": "LEASE_ID", "amount_cents": 185000, "method": "check", "received_on": "2026-11-03", "reference": "Check 1042"}'
curl -X POST https://api.usedarcy.com/v1/receipts/record_manual \
  -H "Authorization: Bearer pmk_live_..." \
  -H "Idempotency-Key: 3f6c1b2e-8d4a-4c1e-9b7f-2a5d6e8c0f11" \
  -H "Content-Type: application/json" \
  -d '{"lease_id": "LEASE_ID", "amount_cents": 185000, "method": "check", "received_on": "2026-11-03", "reference": "Check 1042"}'
curl -X POST https://api.usedarcy.com/v1/receipts/record_manual \
  -H "Authorization: Bearer pmk_live_..." \
  -H "Idempotency-Key: 3f6c1b2e-8d4a-4c1e-9b7f-2a5d6e8c0f11" \
  -H "Content-Type: application/json" \
  -d '{"lease_id": "LEASE_ID", "amount_cents": 185000, "method": "check", "received_on": "2026-11-03", "reference": "Check 1042"}'

The key and LEASE_ID are placeholders. Money is in integer cents, so 185000 is $1,850.00. These writes use the same functions as the app, so ledger rules hold and posted journal rows are never edited.

Over the MCP server, the call_operation tool takes an idempotency_key, required for a money operation. The assistant must also get your yes for each money write, with the amount or the recipients named.

Where software helps

As of October 2026, MagicDoor's API uses an idempotency key when it pays invoices, and Property Meld's docs cover idempotency keys. See what you can automate with the Darcy API.

Related terms

  • API: the interface that receives the key.

  • Trust accounting: the books a duplicate payment would throw off.

  • Webhook: a request a system sends to you. Receivers use the message ID to skip duplicates.

To see how Darcy posts payments through the API, book a demo.

Darcy

One system, one price, and AI agents that prepare the work

Darcy is a complete property management system. Its agents prepare collections, renewals, maintenance triage, and the month-end close, and a person approves each step.

  • $2 per unit per month, with every module and AI agent included.

  • Imports from AppFolio, Buildium, Yardi, and Rent Manager, reconciled to the cent.

  • No unit minimum, and a 14-day free trial with no credit card.

Pale sand texture
Darcy dashboard with occupancy, past due, open work orders, and net operating income

The Darcy dashboard: occupancy, past due balances, open work orders, and net operating income in one view.

Questions, answered

What value should I use as an idempotency key?

Use a new random value, such as a UUID, for each business action. Reuse it only when you retry that same action. Do not reuse a key for a different payment.

How long does Darcy keep an idempotency key?

24 hours. A retry with the same key and the same request inside that window gets the first response. After that, Darcy deletes the key.

Does a test key need an idempotency key?

No. Darcy test keys only read, so every write refuses a test key. Money writes need a live key or a full-access OAuth connection.

Is an idempotency key the same as a duplicate check?

No. A duplicate check looks for similar records, such as two bills with the same amount. An idempotency key stops the same request from running twice. Darcy's month-end close agent also flags duplicate bills for a person to review.

Sources and method

We read each vendor’s own pricing and product pages, then review sites and news. Prices and features change, so confirm details with the vendor before you buy.

See Darcy run on a portfolio like yours

Tell us how many units you manage and which system you use today. We’ll show you which parts of your team’s week Darcy can take on.

Step 1

Tell us about your portfolio

Your unit count and the system you use today.

Step 2

See Darcy on data like yours

We walk through the jobs your team does every week.

Step 3

Load your data in setup mode

Nothing is charged, posted, or sent until you select Go live.