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.
How it works
The first request with a key runs normally. When it succeeds with a2xx 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
4xxor5xxresponse 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
400withcode: "INVALID_IDEMPOTENCY_KEY". - Reads ignore it.
GETrequests and the unauthenticated feedback URL ignore the header.
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