Idempotency
Safely retry POST requests with the Idempotency-Key header without sending an envelope twice.
On this page
Networks fail. If a request to create or send an envelope times out, you can’t tell whether it went through. Send an Idempotency-Key header with every POST request and you can simply retry: Signkoi performs the action once and returns the same response to every retry.
How it works
- Generate a unique key for each operation — a UUID v4 is ideal — and send it in the Idempotency-Key header.
- Signkoi stores the first response (success or 4xx error) for 24 hours.
- A retry with the same key and the same request returns that stored response with the header
Idempotent-Replayed: true, without doing anything again.
Example
POST /v1/envelopes/{id}/send
curl -X POST https://signkoi.com/api/v1/envelopes/9b2f4c1e-7a3d-4e8b-9c51-2d6f8a0b3e47/send \
-H "Authorization: Bearer $SIGNKOI_API_KEY" \
-H "Idempotency-Key: 5f1d7c1e-0b8a-4c2e-9f3d-61a2b7e4c905"Retrying the same request with the same key returns the original response:
Replayed response
HTTP/1.1 201 Created
Content-Type: application/json
Idempotent-Replayed: true
X-Request-Id: 7d0e1c2b-5f4a-4b3e-8d9c-0a1b2c3d4e5fRules
Keys are per account
Keys are scoped to your account, not to one API key, so two integrations of the same account should not share key values.