Skip to main content
Use an idempotency key to retry a run or build without acting on the website twice. A lost answer doesn’t tell you whether the website already changed; the key makes the retry safe either way.

Send a key with every run

Choose your own key of 1 to 200 letters, digits, _ or -; a UUID fits. Send it as the idempotency_key argument through MCP, or the Idempotency-Key header over REST.
Send one with a read too. If a call drops before you get its job back, repeat it unchanged with the same key: it rejoins the same job instead of starting another, and reading the job then gives you its result.

Retry with the same key

Resend the same request with the same key. While that key’s job is running, or once it has finished, Pomerado answers that job and runs nothing again; REST answers 200 with Idempotent-Replayed: true instead of 202. If the job failed with an error whose Retry line on Errors says to repeat the same request with its key, such as worker_lost or website_sign_in_unavailable, the same key starts it again as a new job (202), and later resends answer that new job.
  • The same key with a different request is refused with idempotency_conflict.
  • Use a new key only when you mean a new action.
  • If the job already delivered its result, the retry answers the job with result null. Run again with a new key for a fresh result.
When you have the job’s id, don’t resubmit: wait for it.

Read the error

An error with retryable true may succeed if you send the request again. Keep the same key unless the code’s Retry line on Errors says to use a new one, as it does for a read a CAPTCHA stopped. Back off on repeated failures. A write that may have happened without a confirmed result reads write_status may_have_applied. Its error is outcome_unknown, or execution_failed with reason_code stopped_before_final_step when it stopped before its last website step and earlier steps may have saved changes on the website. Check the website before starting another. While Pomerado repairs its tool, such a write reads running with write_status null instead, because the repair may still complete it, and it says which once the repair ends.
  • A write sent without a key whose failure may follow an accepted write carries write_possibly_accepted: true beside its error. Check for its job and the website before calling again.
  • write_status reads not_attempted, applied, not_applied, may_have_applied or pending.
  • Every error code is in Errors.