Dispra Docs

Safe retries

For: Developers

Every write takes an Idempotency-Key, so retrying after a timeout never does a thing twice.

The problem

A network error mid-request leaves you unsure whether the deploy started.

How it works

  1. Send a new random Idempotency-Key with every write.
  2. Retry with the same key: you get the first answer back instead of a second deployment. (Create a deployment)

Limits

  • Keys are kept for 24 hours
  • Reusing a key for a different request is refused (422 idempotency_key_reused)

API