Skip to main content
POST
Save something a run made
Save a page, screenshots, a markdown report or a file from this run as a document. It shows on the run card and opens in Avazal beside the chat, visible to the workspace. Pages render sandboxed with no network, so inline every script, style and image. Any valid credential may call this.

Authorizations

x-api-key
string
header
required

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

Body

application/json
kind
enum<string>
required

page: one self-contained text/html file, shown sandboxed with inline scripts and styles only. images: one to twelve PNG, JPEG, GIF or WebP screenshots. report: one text/markdown file. file: any one file, offered as a download.

Available options:
page,
images,
report,
file
title
string
required

a string at most 120 character(s) long

Required string length: 1 - 120
Pattern: ^\S[\s\S]*\S$|^\S$|^$
files
maxItems(12) · object[]
required

an array of at most 12 item(s)

Required array length: 1 - 12 elements

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