Errors
Every API error arrives as aDocondaError:
The full list is in errors.
A document that fails during processing is not an exception:
create returns it with status: "failed" and
doc.error. There is no charge.
Retries
The SDK only retries network failures,429 and 5xx, waiting a little longer each time (or as long as the API says).
Errors in your request (4xx) are not retried: repeating them would give the same result.
Never the same document twice
Every creation carries anIdempotency-Key: if a retry arrives after the first attempt actually succeeded, the API
returns the same document instead of creating (and charging for) another one.
If your program can repeat the operation on its own (a job that retries, a user who clicks twice), pass your own
key, stable for that operation: