Skip to main content

Idempotency-Key

Every generation request needs an Idempotency-Key header: any unique string up to 255 characters, such as a UUID.
  • Retry with the same key and body to get the original generation back. It is never sent or charged twice, even after a timeout or a dropped connection.
  • Reuse a key with a different body and you get 409 idempotency_conflict.
  • Keys are scoped to your organization and the route.

Quotes

POST /quotes validates a request exactly as its route would, then prices it. It generates nothing and holds no money.
To bind that price, send the quote’s id as a Quote-Id header within ten minutes. If the body or route differs, or Studio changed its rates (the quote’s rate_version) since the quote was made, the request returns 409 quote_mismatch; request a new quote. If the quote is older than ten minutes, it returns 409 quote_expired. Both happen before anything is held or sent. After a quote expires, a retry with the same Idempotency-Key and the same body still gets the original generation, but only if the first attempt went through. If it didn’t, there is nothing to return: get a new quote and submit again. A changed body with the same key is not a replay: it gets 409 idempotency_conflict.