Skip to main content
POST
Create a document, folder or canvas
An Avazal document or folder (kind) in parentId, or with conversation a Slack canvas that is added as a tab there and posted to it. markdown is a document’s first content. Requires the documents:write scope.

Authorizations

x-api-key
string
header
required

An Avazal API key (avz_…) created in Settings → API keys.

Body

application/json
name
string
required

a string at most 255 character(s) long

Required string length: 1 - 255
Pattern: ^\S[\s\S]*\S$|^\S$|^$
kind
enum<string>
Available options:
file,
folder
parentId
string | null

Document or folder

Pattern: ^doc_[\s\S]*?$
markdown
string

a string at most 1000000 character(s) long

Maximum string length: 1000000
conversation
string

Create a Slack canvas in this channel or DM, from conversations_list.

Pattern: ^chcv_[\s\S]*?$

Response

A document, folder, Slack canvas or something a run saved. A read adds its markdown, your canvas draft and publish state.

A document, folder, Slack canvas or something a run saved. A read adds its markdown, your canvas draft and publish state.

id
string
required

The object's id. Every operation that takes it accepts it.

url
string | null
required

A link that opens the object where it lives.

source
enum<string>
required

Where the object lives. Avazal is the source of its own objects.

Available options:
avazal,
slack,
gmail,
google-calendar,
google-drive,
linear,
github,
contacts
title
string
required
kind
enum<string>
required

file is a markdown document or a file a run saved, folder holds documents, and page, images and report are what a run saved with documents_save.

Available options:
file,
folder,
page,
images,
report
parentId
string | null
required

Document or folder

Pattern: ^doc_[\s\S]*?$
revisionId
string | null
required

Document revision

Pattern: ^drev_[\s\S]*?$
version
integer | null
required
updatedAt
string | null
required
conversation
string | null
required

The channel or DM a Slack canvas belongs to.

Pattern: ^chcv_[\s\S]*?$
run
string

The run that saved it with documents_save.

Pattern: ^arun_[\s\S]*?$
files
object[]

The files a run saved, in order.

markdown
string

a string at most 1000000 character(s) long

Maximum string length: 1000000
draft
object | null
publish
object | null

Where a Slack canvas's draft stands against Slack.

context
object