All API requests must include your API key in the Authorization header.
Authorization: Bearer diq_live_xxxxxxxxxxxxxxxxxxx
API keys can be generated in Settings → API Keys. Keep your key secret — it has full access to your workspace.
https://api.diagramiq.io
/v1/diagramsList all architecture diagrams in the workspace/v1/diagramsCreate a new architecture diagram/v1/diagrams/{id}Get a specific diagram by ID/v1/diagrams/{id}Update diagram metadata or content/v1/diagrams/{id}Delete a diagram/v1/resourcesList discovered cloud resources/v1/scanTrigger an on-demand cloud scan/v1/driftList current drift events/v1/anomaliesList detected anomalies/v1/policy/resultsGet policy validation results/v1/policy/validateValidate a diagram against policy rules/v1/costs/estimateGet cost estimate for a diagram/v1/workspaceGet workspace details and usage/v1/integrationsList configured integrationsA GraphQL API with full schema introspection is available at https://api.diagramiq.io/graphql. It supports the same authentication and rate limits as the REST API. An interactive playground is available in the DiagramIQ dashboard under Developer Tools → API Playground.