Skip to main content
POST
Create document from Extended Markdown

Authorizations

Authorization
string
header
required

Short-lived, Developer-API-audience token obtained by the trusted MCP service through token exchange (mcp_at_...). Raw MCP resource tokens are rejected.

Body

application/json
projectId
string
required

Project ID to create the document in

title
string
required

Document title

Example:

"My Markdown Document"

content
string
required

Extended Markdown content. This is the preferred authoring format for API and MCP agents; Autype stores it as validated document JSON internally.

Example:

"# Report\n\nHello {{companyName}}.\n\n| Name | Amount |\n| --- | ---: |\n| Item | 42 |\n"

document
object
required

Document settings. Must include type.

Example:
description
string
Example:

"Document description"

stylePresetId
string | null

Optional workspace style UUID or immutable built-in system:. Inline defaults override the referenced preset during rendering.

variables
object

Variables for template substitution

abbreviations
object

Abbreviation map

defaults
object

Inline defaults. Prefer stylePresetId for reusable workspace or built-in styles.

citations
string[]

Citations array in CSL-JSON format

style
object

Additional style metadata

Response

Document created from Markdown

id
string
required

Document ID

title
string
required

Document title

projectId
string
required

Project ID the document belongs to

createdAt
string<date-time>
required
updatedAt
string<date-time>
required
stylePresetId
string | null

Referenced workspace or built-in system style preset, if any

description
object | null

Document description