Create Mermaid Diagram in New Document

Creates a new Lucidchart or Lucidspark document containing one Mermaid diagram.
The diagram is placed on the document's first page. This is a shortcut for
creating a document with Lucid Standard Import content. When product is omitted,
the document is a Lucidchart document.

Valid Authentication Methods

API Key Grants:

  • DocumentEdit

OAuth 2.0 User Token Scopes:

  • lucidchart.document.content
  • lucidchart.document.app.folder
  • lucidspark.document.content
  • lucidspark.document.app.folder
  • lucid.document.content
Body Params
string
required
length ≤ 300

Title of the new document.

string

Title of the first page. Defaults to Page 1.

string
required
length between 1 and 50000

Mermaid markup to place in the new document.

boolean

When true, renders the diagram as SVG. When omitted, rendering follows the native Mermaid feature flag.

string
enum

The Lucid Suite product types that can be created.

Allowed:
number

Folder ID for the new document.

position
object

Position on the first page. Defaults to the page origin.

Responses

400

Bad Request if the body or Mermaid markup is invalid.

403

Forbidden if the token cannot create the requested document.

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json