---
title: "A diagram, with its HTML when html=1"
method: GET
path: "/diagrams/{id}"
---

# A diagram, with its HTML when html=1

`GET /diagrams/{id}`

## Request

- Base URL: `https://diagram.la/api/v1`
- URL: `https://diagram.la/api/v1/diagrams/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Query parameters

- `html` '1'

## Response `200`

{ diagram, html? }

- object

---

[API](https://skmtc.dev/diagram/apis/diagram-api.md) · [All operations](https://skmtc.dev/diagram/apis/diagram-api/llms.txt) · [OpenAPI document](https://skmtc.dev/diagram/apis/diagram-api/revisions/c9d438df70b7?raw)
