Idempotency-Key header with POST /uploads and POST /dubs, and you can simply send the request again:
- The same request sent again with the same key gets the first answer back, with the header
Idempotent-Replayed: true, instead of doing the work twice. - Use a value that is unique to the thing you’re doing, such as a UUID or your own order id. Up to 255 characters.
- Keys are kept for 24 hours, per API key.
- A different request under a key already used is refused with
422 IDEMPOTENCY_MISMATCH. - If the first request is still running, a repeat gets
409 IDEMPOTENCY_IN_PROGRESS. Wait a moment and send it again. - A request that was refused keeps nothing, so you can fix it and send it again with the same key.
- If the first request was cut off after its dubs had started, a repeat gets
409 ALREADY_STARTED. Find the dubs withGET /dubs.
GET and DELETE requests can always be repeated safely and don’t need a key.