Skip to main content
POST
Read a document
A document’s markdown, version, your canvas draft and, for a Slack canvas, its publish state. A run’s report reads as markdown. The first read of a canvas brings it into Avazal. revisionId reads an earlier revision from documents_revisions. operationId adds the publish documents_publish started. context adds its folders and the tasks it is attached to. refresh pulls the canvas again from Slack. Requires the documents:read scope.

Authorizations

x-api-key
string
header
required

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

Body

application/json
id
string
required

A doc_ or aart_ id from documents_list, or a Slack canvas as chcv_…/.

revisionId
string

Document revision

Pattern: ^drev_[\s\S]*?$
operationId
string

Document edit

Pattern: ^dop_[\s\S]*?$
context
boolean
refresh
boolean

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