Book a call

Trend

n8n API rate limits and retries without duplicates

n8n API rate limits now return a 429 with Retry-After and rate-limit headers, letting a CRM sync back off instead of failing quietly. Idempotency keys make a retried POST return the first response rather than a duplicate lead. Here is the retry table and about 90 minutes of work.

By 4 min read

What changed in the n8n API rate limits

A request that goes over the n8n public API's rate limit now returns a 429, replacing a guessed error. The documented headers are X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset, and n8n's announcement adds Retry-After.

The limit is set per API key, so two keys for the same user are counted separately. That matters if you issue one key per tool: a noisy reporting script cannot eat the budget your lead sync needs.

The second half is idempotency. A POST sent with an Idempotency-Key header returns the first successful response on a retry rather than running again, and n8n stores that response for 12 hours. Idempotency keys have been available since n8n 2.45.0.

What this means for a small team

For a 10 to 60 person business, the scripts that read and write through your n8n API can now tell "slow down" apart from "broken," and a retried write stops creating a second contact.

The callers are the usual suspects: a dashboard that lists executions, a nightly script that creates workflows per location, a monitor like the one in my n8n lead pipeline monitoring plan. Each one holds a key, and each one is where a 429 gets read or gets swallowed.

The retry contract, in words

What you get back What the caller should do Why
A success response Record the response, retire the key The write landed
429 with Retry-After Sleep for that many seconds, retry with the same key The limit is time based, the key makes the retry safe
429 with no Retry-After Back off 2, 4, 8 seconds, read X-RateLimit-Reset The reset header says when the window turns over
5xx Retry with the same key, cap the attempts The first call may have landed
Timeout on a POST Retry with the same key, never a fresh one A fresh key creates a duplicate

That last row is the one people skip. A timeout is not a failure, it is an unknown, and the only safe move is to retry under the key you already used.

How do I retry an n8n API POST without creating a duplicate

Retry the POST with the same Idempotency-Key header you used the first time. n8n stores the first successful response for 12 hours, and a retry inside that window gets the stored response back instead of running again.

Fixing this across the integrations you already own takes about 90 minutes, my estimate, not a measured run:

  • Inventory every caller and every API key: about 20 minutes.
  • Honour Retry-After with a backoff in your shared HTTP helper: about 40 minutes.
  • Add Idempotency-Key to every POST and persist it with the job: about 30 minutes.

What most coverage leaves out

These limits govern calls into the n8n public API, the one you hit at /api/v1, not the requests your workflows send out to your CRM. Two things follow. First, that direction is where most coverage goes wrong. Second, the combination is the story, not the cap: per key counting, readable headers and idempotent retries together turn a hard failure into a controlled wait, which is what bolting n8n onto the CRM you already have has always needed.

Limitations

  • The numbers are configurable per instance, so I cannot quote a universal cap. Check yours.
  • I have not tested this myself; everything above comes from n8n's documentation and announcement.
  • Idempotency covers POST. A duplicate webhook into a workflow, or an agent writing twice, is a different problem and needs guardrails on CRM writes.
  • The 12 hour store is not a safety net for a retry the next morning, and none of it protects the writes your workflow makes into the CRM. That still needs its own deduplication.

My take

Patch the callers, not the workflows. A 429 nobody reads is the same silent failure, just better labelled.

My guess: most owner-run setups have two or three scripts holding an API key, and none look at a header. Find those this month, give them one shared retry helper, and the next busy morning costs a delay instead of a lead.

Questions people ask

Does the n8n public API have rate limits?

Yes. n8n's documentation says the public API can limit how many requests each API key makes, and a request over that limit returns a 429. The exact numbers are configured on the instance, so check your own setup rather than assuming a figure.

What does a 429 from the n8n API mean?

It means the request went over a configured public API rate limit. The response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset, and n8n's announcement says 429 responses include Retry-After, so your client can wait the stated time and retry.

How do I retry an n8n API POST without creating a duplicate?

Retry it with the same Idempotency-Key header you used on the first attempt. n8n's documentation says a retried POST with that header returns the first successful response instead of running the request again, so no duplicate is created. The stored response is kept for 12 hours, after which a retry runs for real.

How long does n8n store an idempotency key?

n8n's docs say idempotency keys are stored for 12 hours for successful responses. Inside that window, a retry with the same key and the same body returns the stored response instead of running the request again.

Have a process like this leaking time or leads?Thirty minutes, no deck, and you leave with a plan.

Book a call