DocsOverviewGetting startedPricingAuthentication & conceptsPostsDiagramsBrand & assetsTools & batchErrorsMCP server

Errors

Every error response is JSON: { "error": "machine_code", "message": "human-readable", "issues"?: [...] }. issues is present only on validation_error, one entry per invalid field.

HTTPerror codeMeaning
400validation_errorRequest body failed validation — check issues for which field.
401missing_api_key / invalid_api_keyNo x-api-key header, or the key doesn't match a live account.
403plan_requiredYour account doesn't have an active Developer plan.
403forbiddenThat job/batch id exists but belongs to a different account.
404diagram_not_foundDiagram id doesn't exist, or belongs to a different account.
404not_foundJob or batch id doesn't exist (or has been cleaned up).
402insufficient_credits/logo only — your credit balance can't cover this generation.
429rate_limitedToo many requests — see Authentication & concepts, retry after RateLimit-Reset.
503image_service_unavailable / batch_unavailableGeneration is temporarily unavailable — retry shortly.
500various *_failed codesAn unexpected server-side failure. Safe to retry; contact support if it persists.

Full field-by-field spec: /api/v1/openapi.json