Skip to main content
Every error has the same shape; issues appears on invalid_request.
Decision diagram for a response: wait for it on 202 (poll GET /api/v1/diagrams/{id}?wait=60) and 409 conflict (wait for the current change); retry it on 429 rate_limited and 503 unavailable, with the same Idempotency-Key, which never charges twice; get a new link on 401 or 410 invalid_link by downloading again with your key; fix before sending on 402 no_credits (add credits), 403 plan_required (upgrade or use PNG or JPEG), 400 invalid_request and 422 not_applied (fix the request) and 401 unauthorized (fix or replace the key).

What to do with each response: wait for it, retry it, get a new link, or fix something before sending again.