Mermaid
Create Mermaid Diagram
Generate a Mermaid flowchart from a natural language description and auto-save it.
AUTHENTICATION REQUIRED - Must include valid JWT token in Authorization header.
Args: diagram_request: DiagramRequest containing the description request: FastAPI Request object (required for rate limiting) current_user: Authenticated user (injected by Auth0 middleware) db: Database session
Returns: MermaidResponse with Mermaid syntax code and saved diagram ID
Rate limit: Configurable via RATE_LIMIT_PER_MINUTE env var (default: 10/minute)
post/api/generate-mermaid
Request
- Base URLhttps://api.makeaviz.com (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"description": "User login flow with authentication and error handling",
"diagram_type": "flowchart"
}Response
Successful Response
Example response
{
"mermaidCode": "flowchart TB\n start([Start])\n finish([End])\n start --> finish",
"savedDiagramId": 123,
"title": "User login flow with authentication..."
}Changes
No recorded changes to this operation across all 1 revision of this API.