POST /v1/generations accepts an Idempotency-Key header. Sending the same key twice (within your organization) returns the original generation with a 200 instead of creating a new one — safe to retry on network failures.
Behavior
- First call:
202 Accepted— creates and queues the generation. - Repeat call with same key:
200 OK— returns the original generation object, no new work is queued. - Same key, different body: still returns the original generation. The new body is ignored. Pick a fresh key per logical request (e.g.
order-12345-attempt-1→order-12345-attempt-2).
Choosing keys
A good idempotency key is unique per logical action, not per HTTP request:- Order ID + attempt counter:
order-12345-attempt-1 - UUID per user action:
f3c8d1a4-... - Job ID from your queue:
job-9a8b7c