POST endpoint accepts an Idempotency-Key header. If you send the same key + same body within 24 hours, the server returns the cached response instead of creating a duplicate.
Use it
What counts as “same”
- Same
workspace_id(auth) + sameIdempotency-Key: lookup hit. - Same body (SHA-256 of the raw request body): cached response returned with the original status code.
- Different body:
422 idempotency_key_mismatch. Don’t retry — pick a new key.
In-flight requests
If two requests with the same key arrive at the same time, the first proceeds and the second returns409 idempotency_in_flight. Wait a moment and retry the second.