Appearance
Errors and retries
Handle HTTP status and the operation result separately. HTTP success can represent a recorded request, an unapplied decision, or a billing preview.
| Status | Handling |
|---|---|
400 | Correct malformed input or invalid field values |
401 / 403 | Check credentials, account context, site binding, and permissions |
404 | Check the ID and whether it belongs to the credential's account/site |
409 | Re-read current state; resolve a stale revision or conflicting operation |
429 | Respect Retry-After when supplied; back off before retrying |
500 / 502 / 503 / 504 | Treat completion as uncertain; inspect state before retrying writes |
Preserve the response body and any request identifier when reporting a failure. Avoid logging authorization headers or customer message content.
Idempotency
Use a stable idempotencyKey for one logical write when the operation supports it. Task creation requires one. Message sending and change decisions accept one. Keys contain 1–64 letters, digits, underscores, or hyphens.
Reuse the same key and payload after a network timeout. Generate a new key for a new customer action. Do not assume an arbitrary Idempotency-Key header is supported: the documented operations take the key in their input.
Operations have their own replay behavior; inspect deduplicated and the returned resource. Site creation has an optional caller-supplied ULID, but no documented idempotency key: reconcile an uncertain create before trying again.
Retry strategy
For reads, use exponential backoff with jitter and a maximum elapsed time. For writes, first establish whether the operation completed. Retry automatically only when the operation's replay semantics make it safe. Never automatically confirm a launch charge or approve a newer change revision to resolve a conflict.
MCP failures
Transport errors, protocol errors, and tool execution errors are separate. Inspect the MCP client's error result even when the underlying HTTP request succeeds. Preserve the original operation input and retry identity when a retry is appropriate.

