Klipper StudioDevelopers

Idempotency

POST /clip-plans and PATCH /clip-plans/{planId} accept an Idempotency-Key header (8-128 characters of [A-Za-z0-9._:-], a UUID v4 is ideal).

  • Same key, same body, within 24 hours: the first response is replayed with Idempotent-Replayed: true. No second plan is created.
  • Same key, different body: 409 idempotency_key_reused. Use a new key for a new request.
  • No key: every request is executed.
KEY=$(uuidgen)
curl -X POST https://klipperstudio.com/api/v1/clip-plans -H "Idempotency-Key: $KEY" \
  -H "Content-Type: application/json" -d '{"videos_per_month":10,"minutes_per_video":30}'
# a retry after a timeout returns the same plan id

The SDK, CLI and MCP tools send a fresh key on every create and reuse it on their own retries.