---
title: "Text To Diagram"
method: POST
path: "/api/ai/text-to-diagram"
tags: ["ai"]
---

# Text To Diagram

`POST /api/ai/text-to-diagram`

## Request

- Base URL: `https://draw.noddle.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://draw.noddle.dev/api/ai/text-to-diagram`
- Auth: none declared

## Request body

- DiagramBody: Request body for POST /api/ai/text-to-diagram.
  - `text` string, required
  - `format` 'text' | 'mermaid'

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/noddle/apis/noddle-board-2.md) · [All operations](https://skmtc.dev/noddle/apis/noddle-board-2/llms.txt) · [OpenAPI document](https://skmtc.dev/noddle/apis/noddle-board-2/revisions/619d69255d70?raw)
