Base URL

All endpoints require a bearer API key (see Authentication) and return JSON.

Conventions

  • Auth: send Authorization: Bearer dgz_live_YOUR_API_KEY on every request.
  • Content type: use application/json for request bodies.
  • IDs: every diagram has an id. Pass it between endpoints.
  • Cost: reads are free. Generate, edit, fix, re-layout, and fork cost credits, and each billable response includes a usage block.
  • Errors: a consistent envelope with code, message, and request_id. See Errors.
  • Rate limits: per key and per IP. A 429 means slow down. See Rate limits.
  • Idempotency: send Idempotency-Key on billable create calls. See Idempotency.

All endpoints

Diagrams Async and versions Warnings, gallery, prompts Usage, meta, account That is the complete surface: 27 operations.