Diagram Diagrams API
The Diagrams API from Diagram — 2 operation(s) for diagrams.
The Diagrams API from Diagram — 2 operation(s) for diagrams.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/diagram-la:diagram-la-diagrams-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Diagram La Diagrams API
version: 1.0.0
description: 'Operations tagged Diagrams across 2 of this provider''s published API definitions: diagram-la-openapi.json, diagram-la-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://diagram.la/api/v1
security:
- bearer: []
tags:
- name: Diagrams
paths:
/diagrams/{id}:
get:
operationId: getDiagram
summary: A diagram, with its HTML when html=1
parameters:
- name: id
in: path
required: true
schema:
type: string
- name: html
in: query
required: false
schema:
type: string
enum:
- '1'
responses:
'200':
description: '{ diagram, html? }'
content:
application/json:
schema:
type: object
tags:
- Diagrams
put:
operationId: updateDiagram
summary: New HTML (a new version at the same url), title, visibility, or project (moves…
parameters:
- name: id
in: path
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$schema: https://json-schema.org/draft/2020-12/schema
type: object
properties:
title:
type: string
minLength: 1
maxLength: 200
html:
type: string
minLength: 1
visibility:
type: string
enum:
- public
- private
kind:
type: string
enum:
- flowchart
- sequence
- architecture
- data_flow
- data_model
- state
- mind_map
- tree
- timeline
- gantt
- wireframe
- chart
- comparison
- exploded_view
- map
- infographic
- other
description: 'What kind of diagram this is (its form, not its subject): flowchart (process or decision flow, user journey); sequence (sequence diagram: messages between parts over time); architecture (system, cloud, component, C4 or network diagram); data_flow (data flow, pipeline, ETL); data_model (ER diagram, database schema, class diagram); state (state machine or lifecycle); mind_map (mind map or concept map); tree (org chart, hierarchy, decision tree, sitemap); timeline (timeline or roadmap); gantt (Gantt chart or project schedule); wireframe (UI mockup, wireframe, screen flow); chart (bar, line or pie chart, dashboard); comparison (comparison table, matrix, quadrant, Venn); exploded_view (exploded view, assembly, cutaway of a physical object); map (map, floor plan, layout of a place); infographic (infographic, poster, explainer page); other (none of these)'
project:
description: Move the diagram to another project you own; the link stays the same
type: string
pattern: ^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$
publish:
description: Publish a draft, so everyone who can see its project can see it
type: boolean
const: true
responses:
'200':
description: '{ diagram, changed }'
content:
application/json:
schema:
type: object
tags:
- Diagrams
delete:
operationId: deleteDiagram
summary: Delete a diagram and its versions
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: '{ deleted }'
content:
application/json:
schema:
type: object
tags:
- Diagrams
servers:
- url: https://diagram.la/api/v1
/diagrams/{id}/versions:
get:
operationId: listVersions
summary: A diagram's versions
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: '{ versions }'
content:
application/json:
schema:
type: object
tags:
- Diagrams
servers:
- url: https://diagram.la/api/v1
components:
securitySchemes:
bearer:
type: http
scheme: bearer
description: Diagram API key (dgm_...)
x-refined-from:
- diagram-la-openapi.json
- diagram-la-openapi.yml