1. Make a key and register it
2. Sign each request
Build this message: six lines joined by\n, with no trailing newline.
Sign it with Ed25519 and send these headers:
3. Retry without paying twice
TheIdempotency-Key makes each operation happen once, however many times you send it:
- The same key and the same request returns the first answer again, with the header
Idempotency-Replayed: true. Nothing new is sent. Retry after any timeout or5xxwith the same key and a fresh timestamp and signature. - The same key with a different request is refused with
409. - While the first attempt is still running, a repeat gets
409(“still being processed”). Wait a moment and retry.
Refusals
Webhooks from Rach to you also carry a header called
X-Rach-Signature. That one goes the other
way: an HMAC that Rach computes with your webhook secret. The two are unrelated.
