Skip to main content
POST
/
api
/
v1
/
dev
/
documents
Create document
curl --request POST \
  --url https://api.autype.com/api/v1/dev/documents \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "projectId": "<string>",
  "title": "My Document",
  "description": "Document description",
  "content": {}
}
'
{
  "id": "<string>",
  "title": "<string>",
  "projectId": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "description": {}
}

Authorizations

X-API-Key
string
header
required

API Key (starts with ak_...)

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
description
object

Document description