Skip to main content
POST
Create document

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 Document"

description
string
Example:

"Document description"

content
object

Initial document content following the Autype document JSON schema. If omitted, a default document is created.

Response

Document created

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