Idempotency-Key header
Include anIdempotency-Key header on every POST request. This prevents duplicate submissions, so retrying with the same key and body is safe.
Behavior
| Scenario | Response |
|---|---|
| First request with a given key | 202 Accepted — submission created, submissionId returned |
| Retry with same key and same body | 202 Accepted — original submissionId returned (no duplicate created) |
| Same key with different body | 409 Conflict — key collision detected |
Key generation
Use a sufficiently unique string — a UUID v4 is recommended:Retry strategy
When a network error or5xx response occurs, you may safely retry with the same Idempotency-Key. The platform deduplicates on the server side.
Recommended exponential back-off:
| Attempt | Wait before retry |
|---|---|
| 1st retry | 1 second |
| 2nd retry | 2 seconds |
| 3rd retry | 4 seconds |
| 4th retry | 8 seconds |
4xx response — these indicate a problem with the request itself, not a transient server issue.