Skip to main content
A network error during a write leaves you unsure whether it ran. Send an Idempotency-Key header on any authenticated POST, PUT, PATCH or DELETE request and you can retry it without running it twice. This matters most for writes that start paid work, such as POST /v1/posts/generate or a GEO scan.
Generate one key per operation, for example a UUID, and reuse it only for retries of that operation.

How it works

The first request with a key runs normally. When it succeeds with a 2xx status, Notra stores the response for 24 hours. A retry with the same key and the same request gets that stored response back without running the write again, and carries Idempotent-Replayed: true.
  • Scope. Keys belong to the API key (or OAuth user) and workspace that sent them, so two keys never share a stored response.
  • Same request. A retry must use the same method, path, query string and body. Anything else is a different request and gets 422.
  • Failures are not stored. A 4xx or 5xx response is not kept, so you can fix the problem and retry with the same key.
  • Format. 1 to 255 visible ASCII characters, without spaces. Anything else returns 400 with code: "INVALID_IDEMPOTENCY_KEY".
  • Reads ignore it. GET requests and the unauthenticated feedback URL ignore the header.
Streamed responses, such as agent chat sessions, and responses larger than 512 KiB are not stored, so retries of those run again.

Errors

POST /v1/feedback also accepts an idempotencyKey body field with its own deduplication rules. See Agent feedback.

Next steps

Rate limits

Limits and the headers that report them

Versioning

Deprecation policy and breaking changes
Last modified on November 30, 2026