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
apiKeybearer
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
Show child attributes
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.
Show child attributes
markdown
string
a string at most 1000000 character(s) long
Maximum string length: 1000000
draft
object | null
Show child attributes
publish
object | null
Where a Slack canvas's draft stands against Slack.
Show child attributes
context
object
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Avazal","description":"Avazal is a shared workspace for mail, Slack, calendar, contacts and documents. Agents reach all of it through one API and MCP server.","colors":{"primary":"#2F6BFF","light":"#5B8CFF","dark":"#2F6BFF"},"logo":{"light":"https://mintcdn.com/avazal-9edf8e01/5KeYYwrO_zgXt3I5/logo/light.svg?fit=max\u0026auto=format\u0026n=5KeYYwrO_zgXt3I5\u0026q=85\u0026s=ac226dfd9ad7d67c7ab3a678c01d23ac","dark":"https://mintcdn.com/avazal-9edf8e01/5KeYYwrO_zgXt3I5/logo/dark.svg?fit=max\u0026auto=format\u0026n=5KeYYwrO_zgXt3I5\u0026q=85\u0026s=04b0290561436d1a3ebc6907921bec7b","href":"https://www.avazal.com"},"favicon":"https://mintcdn.com/avazal-9edf8e01/UXXX8gYT-hZf8vtV/favicon.svg?fit=max\u0026auto=format\u0026n=UXXX8gYT-hZf8vtV\u0026q=85\u0026s=5146533bf90ed509bde3db2c89e0b504","api":{"openapi":"api-reference/openapi.json","playground":{"display":"interactive"},"examples":{"languages":["curl","javascript","python"]}},"background":{"color":{"light":"#FCFCFC","dark":"#141415"}},"navbar":{"links":[{"href":"mailto:hello@avazal.com","label":"Talk to us"}],"primary":{"type":"button","label":"Sign in","href":"https://www.avazal.com/login"}},"footer":{"socials":{"website":"https://www.avazal.com"}},"seo":{"metatags":{"canonical":"https://docs.avazal.com"}},"icons":{"library":"lucide"},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"avazal-9edf8e01","hasAudioNarration":false,"actualSubdomain":"avazal-9edf8e01","customDomains":["docs.avazal.com"],"gitSource":{"type":"github","owner":"charlietlamb","repo":"avazal","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":"","_id":"6b1104059ffae5051c41f03c"},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6b11624430285f058a180823","clientVersion":"0.0.4428","searchFilterCounts":[{"language":"default","tag":"API reference","count":73},{"language":"default","tag":"Documentation","count":17},{"language":"default","tag":"Documents","count":8},{"language":"default","tag":"Guides","count":7},{"language":"default","tag":"Triggers","count":7},{"language":"default","tag":"Messages","count":6},{"language":"default","tag":"Get started","count":5},{"language":"default","tag":"Events","count":5},{"language":"default","tag":"Tasks","count":5},{"language":"default","tag":"Concepts","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#footer a[href*=\"mintlify.com\"]{display:none}"}]}
{"page":{"pagePath":"api-reference/documents/save-something-a-run-made","slug":"/api-reference/documents/save-something-a-run-made","pageMetadata":{"title":"Save Document","description":"Save something a run made","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/documents.save","href":"/api-reference/documents/save-something-a-run-made","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Save something a run made\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={p:`p`,..._provideComponents(),...props.components};return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`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.`}),`\n`,_jsx(_components.p,{children:`Any valid credential may call this.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Save Document","description":"Save something a run made","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/documents.save","href":"/api-reference/documents/save-something-a-run-made","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["documents"],"operationId":"documents.save","parameters":[],"security":["0a31e26a-3587-4b7a-9dce-0fa2b06fa580","937ec1b4-5a83-4aac-8530-eccc763acc86"],"responses":{"200":"20803e3c-dd2c-4716-b4eb-4120d693a8d8","400":"b1233793-4a4b-4084-ae34-bb59dff71dad","401":"56a3c3e2-439e-4cf3-8814-54e3201e4ac2","403":"f9201436-6494-46ae-a07e-b9a790347acd","409":"6c992fde-ec10-4d84-a4fd-79ea3c9cb1ba","422":"61b193d0-dba8-49f1-9b4b-1f59b338b7f8"},"description":"Save something a run made","summary":"Save something a run made","requestBody":"0570e834-9aae-40f4-ac79-8bc6eded7ab5","x-mint":{"metadata":{"title":"Save Document","description":"Save something a run made"},"content":"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.\n\nAny valid credential may call this."},"method":"post","type":"path","servers":["d22b970d-3858-4d0a-9708-cc701772ab8f"],"path":"/v1/documents.save","baseUrlOptions":["https://api.avazal.com"],"title":"Save something a run made","codeSamples":[],"requestExampleLanguages":["bash","javascript","python"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["kind","title","files"],"properties":{"kind":{"type":"string","enum":["page","images","report","file"],"description":"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.","isRequired":true,"uniqueKey":"kind","typeLabel":"enum\u003cstring>"},"title":{"type":"string","title":"maxLength(120)","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"description":"a string at most 120 character(s) long","maxLength":120,"isRequired":true,"uniqueKey":"title","typeLabel":"string"},"files":{"type":"array","items":{"type":"object","required":["name","mimeType","data"],"properties":{"name":{"type":"string","title":"maxLength(200)","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"description":"a string at most 200 character(s) long","maxLength":200,"isRequired":true,"uniqueKey":"files.items.[INDEX].name","typeLabel":"string"},"mimeType":{"type":"string","description":"a string at most 120 character(s) long","pattern":"^[a-z]+\\/[a-z0-9.+-]+$","title":"maxLength(120)","maxLength":120,"isRequired":true,"uniqueKey":"files.items.[INDEX].mimeType","typeLabel":"string"},"data":{"type":"string","description":"The file's bytes, base64 encoded.","title":"maxLength(6666668)","minLength":1,"maxLength":6666668,"pattern":"^[A-Za-z0-9+/]+={0,2}$","isRequired":true,"uniqueKey":"files.items.[INDEX].data","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"files.items.[INDEX]","typeLabel":"object"},"description":"an array of at most 12 item(s)","title":"maxItems(12)","minItems":1,"maxItems":12,"isRequired":true,"uniqueKey":"files","typeLabel":"maxItems(12) · object[]"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"title":"\u003cstring>","files":[{"name":"\u003cstring>","mimeType":"\u003cstring>","data":"\u003cstring>"}]}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"20803e3c-dd2c-4716-b4eb-4120d693a8d8":{"description":"A document, folder, Slack canvas or something a run saved. A read adds its markdown, your canvas draft and publish state.","content":{"application/json":{"schema":{"type":"object","required":["id","url","source","title","kind","parentId","revisionId","version","updatedAt","conversation"],"properties":{"id":{"type":"string","description":"The object's id. Every operation that takes it accepts it.","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"url":{"oneOf":[{"type":"string","description":"A link that opens the object where it lives.","isRequired":true,"uniqueKey":"url.oneOf.0","typeLabel":"string"},{"type":"null","description":"A link that opens the object where it lives.","isRequired":true,"uniqueKey":"url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"url","typeLabel":"string | null"},"source":{"type":"string","enum":["avazal","slack","gmail","google-calendar","google-drive","linear","github","contacts"],"description":"Where the object lives. Avazal is the source of its own objects.","isRequired":true,"uniqueKey":"source","typeLabel":"enum\u003cstring>"},"title":{"type":"string","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"kind":{"type":"string","enum":["file","folder","page","images","report"],"description":"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.","isRequired":true,"uniqueKey":"kind","typeLabel":"enum\u003cstring>"},"parentId":{"oneOf":[{"type":"string","title":"`doc_${string}`","description":"Document or folder","pattern":"^doc_[\\s\\S]*?$","isRequired":true,"uniqueKey":"parentId.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"parentId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"parentId","typeLabel":"string | null"},"revisionId":{"oneOf":[{"type":"string","title":"`drev_${string}`","description":"Document revision","pattern":"^drev_[\\s\\S]*?$","isRequired":true,"uniqueKey":"revisionId.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"revisionId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"revisionId","typeLabel":"string | null"},"version":{"oneOf":[{"type":"integer","title":"int","isRequired":true,"uniqueKey":"version.oneOf.0","typeLabel":"integer"},{"type":"null","isRequired":true,"uniqueKey":"version.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"version","typeLabel":"integer | null"},"updatedAt":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"updatedAt.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"updatedAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"updatedAt","typeLabel":"string | null"},"conversation":{"oneOf":[{"type":"string","title":"`chcv_${string}`","description":"The channel or DM a Slack canvas belongs to.","pattern":"^chcv_[\\s\\S]*?$","isRequired":true,"uniqueKey":"conversation.oneOf.0","typeLabel":"string"},{"type":"null","description":"The channel or DM a Slack canvas belongs to.","isRequired":true,"uniqueKey":"conversation.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"conversation","typeLabel":"string | null"},"run":{"type":"string","title":"`arun_${string}`","description":"The run that saved it with documents_save.","pattern":"^arun_[\\s\\S]*?$","uniqueKey":"run","typeLabel":"string"},"files":{"type":"array","items":{"type":"object","required":["name","mimeType","size"],"properties":{"name":{"type":"string","title":"maxLength(200)","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"description":"a string at most 200 character(s) long","maxLength":200,"isRequired":true,"uniqueKey":"files.items.[INDEX].name","typeLabel":"string"},"mimeType":{"type":"string","description":"a string at most 120 character(s) long","pattern":"^[a-z]+\\/[a-z0-9.+-]+$","title":"maxLength(120)","maxLength":120,"isRequired":true,"uniqueKey":"files.items.[INDEX].mimeType","typeLabel":"string"},"size":{"type":"integer","title":"int","minimum":0,"isRequired":true,"uniqueKey":"files.items.[INDEX].size","typeLabel":"integer"},"width":{"type":"integer","title":"int","uniqueKey":"files.items.[INDEX].width","typeLabel":"integer"},"height":{"type":"integer","title":"int","uniqueKey":"files.items.[INDEX].height","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"files.items.[INDEX]","typeLabel":"object"},"description":"The files a run saved, in order.","uniqueKey":"files","typeLabel":"object[]"},"markdown":{"type":"string","description":"a string at most 1000000 character(s) long","title":"maxLength(1000000)","maxLength":1000000,"uniqueKey":"markdown","typeLabel":"string"},"draft":{"oneOf":[{"type":"object","required":["revisionId","baseRevisionId","generation","markdown"],"properties":{"revisionId":{"type":"string","title":"`drev_${string}`","description":"Document revision","pattern":"^drev_[\\s\\S]*?$","isRequired":true,"uniqueKey":"draft.oneOf.0.revisionId","typeLabel":"string"},"baseRevisionId":{"type":"string","title":"`drev_${string}`","description":"Document revision","pattern":"^drev_[\\s\\S]*?$","isRequired":true,"uniqueKey":"draft.oneOf.0.baseRevisionId","typeLabel":"string"},"generation":{"type":"integer","title":"int","isRequired":true,"uniqueKey":"draft.oneOf.0.generation","typeLabel":"integer"},"markdown":{"type":"string","description":"a string at most 1000000 character(s) long","title":"maxLength(1000000)","maxLength":1000000,"isRequired":true,"uniqueKey":"draft.oneOf.0.markdown","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"draft.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"draft.oneOf.1","typeLabel":"null"}],"uniqueKey":"draft","typeLabel":"object | null"},"publish":{"oneOf":[{"type":"object","description":"Where a Slack canvas's draft stands against Slack.","required":["unpublished","generation","canWrite","operation"],"properties":{"unpublished":{"type":"boolean","description":"Whether you have a draft that Slack does not have yet.","isRequired":true,"uniqueKey":"publish.oneOf.0.unpublished","typeLabel":"boolean"},"generation":{"type":"integer","description":"The draft's generation, 0 when there is no draft.","title":"int","isRequired":true,"uniqueKey":"publish.oneOf.0.generation","typeLabel":"integer"},"canWrite":{"type":"boolean","isRequired":true,"uniqueKey":"publish.oneOf.0.canWrite","typeLabel":"boolean"},"operation":{"oneOf":[{"type":"object","description":"The publish asked about with operationId, or the one documents_publish just made. state is queued or applying while it runs, verified once Slack has it, conflict when the canvas changed in Slack first, failed or unknown otherwise.","required":["id","documentId","state","nextStep","revisionId","updatedAt"],"properties":{"id":{"type":"string","title":"`dop_${string}`","description":"Document edit","pattern":"^dop_[\\s\\S]*?$","isRequired":true,"uniqueKey":"publish.oneOf.0.operation.oneOf.0.id","typeLabel":"string"},"documentId":{"type":"string","title":"`doc_${string}`","description":"Document or folder","pattern":"^doc_[\\s\\S]*?$","isRequired":true,"uniqueKey":"publish.oneOf.0.operation.oneOf.0.documentId","typeLabel":"string"},"state":{"type":"string","enum":["queued","applying","unknown","conflict","verified","failed"],"isRequired":true,"uniqueKey":"publish.oneOf.0.operation.oneOf.0.state","typeLabel":"enum\u003cstring>"},"nextStep":{"type":"integer","title":"int","isRequired":true,"uniqueKey":"publish.oneOf.0.operation.oneOf.0.nextStep","typeLabel":"integer"},"revisionId":{"type":"string","title":"`drev_${string}`","description":"Document revision","pattern":"^drev_[\\s\\S]*?$","isRequired":true,"uniqueKey":"publish.oneOf.0.operation.oneOf.0.revisionId","typeLabel":"string"},"updatedAt":{"type":"string","isRequired":true,"uniqueKey":"publish.oneOf.0.operation.oneOf.0.updatedAt","typeLabel":"string"},"replacedRevisionId":{"oneOf":[{"type":"string","title":"`drev_${string}`","description":"Document revision","pattern":"^drev_[\\s\\S]*?$","uniqueKey":"publish.oneOf.0.operation.oneOf.0.replacedRevisionId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"publish.oneOf.0.operation.oneOf.0.replacedRevisionId.oneOf.1","typeLabel":"null"}],"uniqueKey":"publish.oneOf.0.operation.oneOf.0.replacedRevisionId","typeLabel":"string | null"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"publish.oneOf.0.operation.oneOf.0","typeLabel":"object"},{"type":"null","description":"The publish asked about with operationId, or the one documents_publish just made. state is queued or applying while it runs, verified once Slack has it, conflict when the canvas changed in Slack first, failed or unknown otherwise.","isRequired":true,"uniqueKey":"publish.oneOf.0.operation.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"publish.oneOf.0.operation","typeLabel":"object | null"}},"additionalProperties":false,"uniqueKey":"publish.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"publish.oneOf.1","typeLabel":"null"}],"uniqueKey":"publish","typeLabel":"object | null"},"context":{"type":"object","required":["folders","workItems"],"properties":{"folders":{"type":"array","items":{"type":"object","required":["id","parentId","name","kind","revisionId","version","updatedAt"],"properties":{"id":{"type":"string","title":"`doc_${string}`","description":"Document or folder","pattern":"^doc_[\\s\\S]*?$","isRequired":true,"uniqueKey":"context.folders.items.[INDEX].id","typeLabel":"string"},"parentId":{"oneOf":[{"type":"string","title":"`doc_${string}`","description":"Document or folder","pattern":"^doc_[\\s\\S]*?$","isRequired":true,"uniqueKey":"context.folders.items.[INDEX].parentId.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"context.folders.items.[INDEX].parentId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"context.folders.items.[INDEX].parentId","typeLabel":"string | null"},"name":{"type":"string","isRequired":true,"uniqueKey":"context.folders.items.[INDEX].name","typeLabel":"string"},"kind":{"type":"string","enum":["file","folder"],"isRequired":true,"uniqueKey":"context.folders.items.[INDEX].kind","typeLabel":"enum\u003cstring>"},"revisionId":{"oneOf":[{"type":"string","title":"`drev_${string}`","description":"Document revision","pattern":"^drev_[\\s\\S]*?$","isRequired":true,"uniqueKey":"context.folders.items.[INDEX].revisionId.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"context.folders.items.[INDEX].revisionId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"context.folders.items.[INDEX].revisionId","typeLabel":"string | null"},"version":{"type":"integer","title":"int","isRequired":true,"uniqueKey":"context.folders.items.[INDEX].version","typeLabel":"integer"},"updatedAt":{"type":"string","isRequired":true,"uniqueKey":"context.folders.items.[INDEX].updatedAt","typeLabel":"string"},"source":{"type":"object","required":["provider","conversationId","channel"],"properties":{"provider":{"type":"string","isRequired":true,"uniqueKey":"context.folders.items.[INDEX].source.provider","typeLabel":"string"},"conversationId":{"oneOf":[{"type":"string","title":"`chcv_${string}`","description":"Slack channel or DM","pattern":"^chcv_[\\s\\S]*?$","isRequired":true,"uniqueKey":"context.folders.items.[INDEX].source.conversationId.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"context.folders.items.[INDEX].source.conversationId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"context.folders.items.[INDEX].source.conversationId","typeLabel":"string | null"},"channel":{"oneOf":[{"type":"object","required":["name","kind"],"properties":{"name":{"type":"string","isRequired":true,"uniqueKey":"context.folders.items.[INDEX].source.channel.oneOf.0.name","typeLabel":"string"},"kind":{"type":"string","enum":["channel","private","dm","group","self"],"isRequired":true,"uniqueKey":"context.folders.items.[INDEX].source.channel.oneOf.0.kind","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"context.folders.items.[INDEX].source.channel.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"context.folders.items.[INDEX].source.channel.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"context.folders.items.[INDEX].source.channel","typeLabel":"object | null"}},"additionalProperties":false,"uniqueKey":"context.folders.items.[INDEX].source","typeLabel":"object"}},"additionalProperties":false,"description":"A document or folder in the file tree.","uniqueKey":"context.folders.items.[INDEX]","typeLabel":"object"},"description":"The folders it sits in, outermost first.","isRequired":true,"uniqueKey":"context.folders","typeLabel":"object[]"},"workItems":{"type":"array","items":{"type":"object","required":["id","workspaceId","conversationId","listId","rowId","title"],"properties":{"id":{"type":"string","description":"A Slack List item that Avazal tracks, its work.id. From tasks_get.","isRequired":true,"uniqueKey":"context.workItems.items.[INDEX].id","typeLabel":"string"},"workspaceId":{"type":"string","title":"`chws_${string}`","description":"Connected Slack workspace","pattern":"^chws_[\\s\\S]*?$","isRequired":true,"uniqueKey":"context.workItems.items.[INDEX].workspaceId","typeLabel":"string"},"conversationId":{"type":"string","title":"`chcv_${string}`","description":"Slack channel or DM","pattern":"^chcv_[\\s\\S]*?$","isRequired":true,"uniqueKey":"context.workItems.items.[INDEX].conversationId","typeLabel":"string"},"listId":{"type":"string","description":"A Slack file id, such as F0123ABCD, for a file, List or canvas. From files_list, lists_list or documents_list.","title":"minLength(1)","minLength":1,"isRequired":true,"uniqueKey":"context.workItems.items.[INDEX].listId","typeLabel":"string"},"rowId":{"type":"string","description":"A row in a Slack List. From tasks_list.","title":"minLength(1)","minLength":1,"isRequired":true,"uniqueKey":"context.workItems.items.[INDEX].rowId","typeLabel":"string"},"title":{"type":"string","isRequired":true,"uniqueKey":"context.workItems.items.[INDEX].title","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"context.workItems.items.[INDEX]","typeLabel":"object"},"description":"Slack List items it is attached to. Read one with tasks_get.","isRequired":true,"uniqueKey":"context.workItems","typeLabel":"object[]"}},"additionalProperties":false,"uniqueKey":"context","typeLabel":"object"}},"additionalProperties":false,"description":"A document, folder, Slack canvas or something a run saved. A read adds its markdown, your canvas draft and publish state.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"\u003cstring>","url":"\u003cstring>","source":"avazal","title":"\u003cstring>","kind":"file","parentId":"\u003cstring>","revisionId":"\u003cstring>","version":123,"updatedAt":"\u003cstring>","conversation":"\u003cstring>","run":"\u003cstring>","files":[{"name":"\u003cstring>","mimeType":"\u003cstring>","size":1,"width":123,"height":123}],"markdown":"\u003cstring>","draft":{"revisionId":"\u003cstring>","baseRevisionId":"\u003cstring>","generation":123,"markdown":"\u003cstring>"},"publish":{"unpublished":true,"generation":123,"canWrite":true,"operation":{"id":"\u003cstring>","documentId":"\u003cstring>","state":"queued","nextStep":123,"revisionId":"\u003cstring>","updatedAt":"\u003cstring>","replacedRevisionId":"\u003cstring>"}},"context":{"folders":[{"id":"\u003cstring>","parentId":"\u003cstring>","name":"\u003cstring>","kind":"file","revisionId":"\u003cstring>","version":123,"updatedAt":"\u003cstring>","source":{"provider":"\u003cstring>","conversationId":"\u003cstring>","channel":{"name":"\u003cstring>","kind":"channel"}}}],"workItems":[{"id":"\u003cstring>","workspaceId":"\u003cstring>","conversationId":"\u003cstring>","listId":"\u003cstring>","rowId":"\u003cstring>","title":"\u003cstring>"}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"b1233793-4a4b-4084-ae34-bb59dff71dad":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The request did not match the expected schema","required":["issues","message","_tag"],"properties":{"issues":{"type":"array","items":{"type":"object","required":["_tag","path","message"],"properties":{"_tag":{"type":"string","enum":["Pointer","Unexpected","Missing","Composite","Refinement","Transformation","Type","Forbidden"],"description":"The tag identifying the type of parse issue","isRequired":true,"uniqueKey":"oneOf.0.issues.items.[INDEX]._tag","typeLabel":"enum\u003cstring>"},"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"oneOf.0.issues.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"oneOf.0.issues.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"object","required":["_tag","key"],"properties":{"_tag":{"type":"string","enum":["symbol"],"isRequired":true,"uniqueKey":"oneOf.0.issues.items.[INDEX].path.items.[INDEX].oneOf.2._tag","typeLabel":"enum\u003cstring>"},"key":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.issues.items.[INDEX].path.items.[INDEX].oneOf.2.key","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"oneOf.0.issues.items.[INDEX].path.items.[INDEX].oneOf.2","typeLabel":"object"}],"uniqueKey":"oneOf.0.issues.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number | object"},"description":"The path to the property where the issue occurred","isRequired":true,"uniqueKey":"oneOf.0.issues.items.[INDEX].path","typeLabel":"(string | number | object)[]"},"message":{"type":"string","description":"A descriptive message explaining the issue","isRequired":true,"uniqueKey":"oneOf.0.issues.items.[INDEX].message","typeLabel":"string"}},"additionalProperties":false,"description":"Represents an error encountered while parsing a value to match the schema","uniqueKey":"oneOf.0.issues.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.issues","typeLabel":"object[]"},"message":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.message","typeLabel":"string"},"_tag":{"type":"string","enum":["HttpApiDecodeError"],"isRequired":true,"uniqueKey":"oneOf.0._tag","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","required":["id","message","_tag"],"properties":{"id":{"type":"string","description":"The id that was passed and could not be read.","isRequired":true,"uniqueKey":"oneOf.1.id","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.message","typeLabel":"string"},"_tag":{"type":"string","enum":["InvalidId"],"isRequired":true,"uniqueKey":"oneOf.1._tag","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"issues":[{"_tag":"Pointer","path":["\u003cstring>"],"message":"\u003cstring>"}],"message":"\u003cstring>","_tag":"HttpApiDecodeError"}}},"exampleType":"generated"}},"exampleType":"generated"},"56a3c3e2-439e-4cf3-8814-54e3201e4ac2":{"description":"KeyRequired","content":{"application/json":{"schema":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"_tag":{"type":"string","enum":["KeyRequired"],"isRequired":true,"uniqueKey":"_tag","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","_tag":"KeyRequired"}}},"exampleType":"generated"}},"exampleType":"generated"},"f9201436-6494-46ae-a07e-b9a790347acd":{"description":"AccessPending","content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["AccessPending"],"isRequired":true,"uniqueKey":"oneOf.0._tag","typeLabel":"enum\u003cstring>"},"message":{"type":"string","uniqueKey":"oneOf.0.message","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","required":["scope","message","_tag"],"properties":{"scope":{"type":"string","enum":["messages:read","messages:write","messages:send","tasks:read","tasks:write","documents:read","documents:write","events:read","events:write","people:read","people:write","automations:read","automations:write","settings:read","settings:write","search:read"],"description":"A concept and the action an agent may take on it.","isRequired":true,"uniqueKey":"oneOf.1.scope","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.message","typeLabel":"string"},"_tag":{"type":"string","enum":["ScopeRequired"],"isRequired":true,"uniqueKey":"oneOf.1._tag","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"oneOf.1","typeLabel":"object"},{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.message","typeLabel":"string"},"_tag":{"type":"string","enum":["OutsideRun"],"isRequired":true,"uniqueKey":"oneOf.2._tag","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"oneOf.2","typeLabel":"object"},{"type":"object","required":["tool","message","_tag"],"properties":{"tool":{"type":"string","isRequired":true,"uniqueKey":"oneOf.3.tool","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"oneOf.3.message","typeLabel":"string"},"_tag":{"type":"string","enum":["ToolNotGranted"],"isRequired":true,"uniqueKey":"oneOf.3._tag","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"oneOf.3","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"_tag":"AccessPending","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"6c992fde-ec10-4d84-a4fd-79ea3c9cb1ba":{"description":"AskFirst","content":{"application/json":{"schema":{"type":"object","required":["action","message","_tag"],"properties":{"action":{"type":"object","required":["tool","input"],"properties":{"tool":{"type":"string","description":"An Avazal tool name, e.g. messages_send.","pattern":"^[a-z]+_[a-z_]+$","isRequired":true,"uniqueKey":"action.tool","typeLabel":"string"},"input":{"type":"object","required":[],"properties":{},"additionalProperties":{"oneOf":[{"$id":"/schemas/unknown","title":"unknown"}],"uniqueKey":"action.input.additionalProperties","typeLabel":"any"},"isRequired":true,"uniqueKey":"action.input","typeLabel":"object"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"action","typeLabel":"object"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"_tag":{"type":"string","enum":["AskFirst"],"isRequired":true,"uniqueKey":"_tag","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"action":{"tool":"\u003cstring>","input":{}},"message":"\u003cstring>","_tag":"AskFirst"}}},"exampleType":"generated"}},"exampleType":"generated"},"61b193d0-dba8-49f1-9b4b-1f59b338b7f8":{"description":"Unsupported","content":{"application/json":{"schema":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"_tag":{"type":"string","enum":["Unsupported"],"isRequired":true,"uniqueKey":"_tag","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","_tag":"Unsupported"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"0a31e26a-3587-4b7a-9dce-0fa2b06fa580":{"apiKey":{"type":"apiKey","in":"header","name":"x-api-key","description":"An Avazal API key (avz_…) created in Settings → API keys.","scopes":[],"schemeName":"apiKey"}},"937ec1b4-5a83-4aac-8530-eccc763acc86":{"bearer":{"type":"http","scheme":"bearer","description":"The same API key sent as `Authorization: Bearer avz_…`.","scopes":[],"schemeName":"bearer"}}},"servers":{"d22b970d-3858-4d0a-9708-cc701772ab8f":{"url":"https://api.avazal.com","description":"Avazal"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","description":"An Avazal API key (avz_…) created in Settings → API keys.","scopes":[],"schemeName":"apiKey"},"schema":{"title":"x-api-key","type":"string","description":"An Avazal API key (avz_…) created in Settings → API keys.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKey","name":"x-api-key"}],"title":"apiKey"},{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"The same API key sent as `Authorization: Bearer avz_…`.","scopes":[],"schemeName":"bearer"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"The same API key sent as `Authorization: Bearer avz_…`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearer","name":"Authorization"}],"title":"bearer"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"avazal-9edf8e01","siteName":"Avazal","title":"Save Document - Avazal","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-02T14:46:43.455Z","originalFileLocation":"api-reference/documents/save-something-a-run-made.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Save something a run made\">\u003cmeta data-mint-head name=\"application-name\" content=\"Avazal\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/avazal-9edf8e01/skDmRkgLYrCxYNIy/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/avazal-9edf8e01/skDmRkgLYrCxYNIy/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/avazal-9edf8e01/skDmRkgLYrCxYNIy/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/avazal-9edf8e01/skDmRkgLYrCxYNIy/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/avazal-9edf8e01/skDmRkgLYrCxYNIy/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/avazal-9edf8e01/skDmRkgLYrCxYNIy/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/avazal-9edf8e01/skDmRkgLYrCxYNIy/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/avazal-9edf8e01/skDmRkgLYrCxYNIy/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/avazal-9edf8e01/skDmRkgLYrCxYNIy/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Save Document - Avazal\">\u003cmeta data-mint-head property=\"og:description\" content=\"Save something a run made\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Avazal\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.avazal.com/api-reference/documents/save-something-a-run-made\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://avazal-9edf8e01.mintlify.site/_mintlify/api/og/v2?division=Documents\u0026amp;title=Save+Document\u0026amp;description=Save+something+a+run+made\u0026amp;theme=ec70f842ea1ef1eb667e5137\u0026amp;signature=3d2acd9906a0c45f00f010bb8f84b0c8eeb583c683bfeaab1cb54fcb4f4ad2b0\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Save Document - Avazal\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Save something a run made\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://avazal-9edf8e01.mintlify.site/_mintlify/api/og/v2?division=Documents\u0026amp;title=Save+Document\u0026amp;description=Save+something+a+run+made\u0026amp;theme=ec70f842ea1ef1eb667e5137\u0026amp;signature=3d2acd9906a0c45f00f010bb8f84b0c8eeb583c683bfeaab1cb54fcb4f4ad2b0\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/avazal-9edf8e01/skDmRkgLYrCxYNIy/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Avazal\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2F6BFF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.avazal.com/api-reference/documents/save-something-a-run-made\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/documents/save-something-a-run-made.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.avazal.com/#organization\",\"name\":\"Avazal\",\"url\":\"https://docs.avazal.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/avazal-9edf8e01/5KeYYwrO_zgXt3I5/logo/light.svg?fit=max\u0026auto=format\u0026n=5KeYYwrO_zgXt3I5\u0026q=85\u0026s=ac226dfd9ad7d67c7ab3a678c01d23ac\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.avazal.com#website\",\"name\":\"Avazal\",\"url\":\"https://docs.avazal.com\",\"publisher\":{\"@id\":\"https://docs.avazal.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.avazal.com/api-reference/documents/save-something-a-run-made#webpage\",\"url\":\"https://docs.avazal.com/api-reference/documents/save-something-a-run-made\",\"name\":\"Save Document\",\"description\":\"Save something a run made\",\"dateModified\":\"2026-12-02T14:46:43.455Z\",\"isPartOf\":{\"@id\":\"https://docs.avazal.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.avazal.com/api-reference/documents/save-something-a-run-made#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.avazal.com/api-reference/documents/save-something-a-run-made#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Documents\",\"item\":\"https://docs.avazal.com/api-reference/documents/list-documents-folders-and-canvases\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Save Document\",\"item\":\"https://docs.avazal.com/api-reference/documents/save-something-a-run-made\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.avazal.com/api-reference/documents/save-something-a-run-made#apireference\",\"headline\":\"Save Document\",\"name\":\"Save Document\",\"description\":\"Save something a run made\",\"url\":\"https://docs.avazal.com/api-reference/documents/save-something-a-run-made\",\"mainEntityOfPage\":{\"@id\":\"https://docs.avazal.com/api-reference/documents/save-something-a-run-made#webpage\"},\"dateModified\":\"2026-12-02T14:46:43.455Z\",\"publisher\":{\"@id\":\"https://docs.avazal.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.avazal.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Avazal\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Avazal\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/documents/save-something-a-run-made.md","siteName":"Avazal","nav":{"global":null,"tabs":[{"tab":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API reference","icon":"code","groups":[{"group":"Get started","pages":[{"title":"Avazal API reference","sidebarTitle":"Overview","icon":"compass","href":"/api-reference/overview"}]},{"group":"Profile","pages":[{"title":"Get Profile","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/me.get","href":"/api-reference/me/who-am-i"},{"title":"Update Profile","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/me.update","href":"/api-reference/me/change-my-profile-status-or-presence"}]},{"group":"Accounts","pages":[{"title":"List Accounts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/accounts.list","href":"/api-reference/accounts/list-connected-accounts"}]},{"group":"Settings","pages":[{"title":"Get Settings","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/settings.get","href":"/api-reference/settings/read-my-settings"},{"title":"Update Settings","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/settings.update","href":"/api-reference/settings/change-my-settings"}]},{"group":"Search","pages":[{"title":"Search","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/search.query","href":"/api-reference/search/search-everything"},{"title":"Resolve Links","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/search.resolve","href":"/api-reference/search/open-links"}]},{"group":"Inbox","pages":[{"title":"Next Prompt","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/inbox.next","href":"/api-reference/inbox/wait-for-chat-prompts"}]},{"group":"Conversations","pages":[{"title":"List Conversations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/conversations.list","href":"/api-reference/conversations/list-channels-dms-and-email-threads"},{"title":"Get Conversation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/conversations.get","href":"/api-reference/conversations/read-a-conversation"},{"title":"Create Conversation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/conversations.create","href":"/api-reference/conversations/create-a-channel-or-open-a-dm"},{"title":"Update Conversation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/conversations.update","href":"/api-reference/conversations/change-a-conversation"}]},{"group":"Messages","pages":[{"title":"List Messages","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/messages.list","href":"/api-reference/messages/list-or-search-messages"},{"title":"Get Message","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/messages.get","href":"/api-reference/messages/read-a-message"},{"title":"Create Message","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/messages.create","href":"/api-reference/messages/post-reply-write-or-forward-a-message"},{"title":"Update Message","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/messages.update","href":"/api-reference/messages/edit-a-message-or-change-its-state"},{"title":"Delete Message","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/messages.delete","href":"/api-reference/messages/delete-a-message-draft-or-scheduled-send"},{"title":"Send Message","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/messages.send","href":"/api-reference/messages/send-a-draft-or-scheduled-message-now"}]},{"group":"Reactions","pages":[{"title":"Create Reaction","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/reactions.create","href":"/api-reference/reactions/react-to-a-message"},{"title":"Delete Reaction","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/reactions.delete","href":"/api-reference/reactions/remove-your-reaction"}]},{"group":"Emoji","pages":[{"title":"List Emoji","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/emoji.list","href":"/api-reference/emoji/list-a-workspaces-custom-emoji"}]},{"group":"Files","pages":[{"title":"List Files","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/files.list","href":"/api-reference/files/list-shared-files"},{"title":"Get File","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/files.get","href":"/api-reference/files/read-a-file"},{"title":"Create File","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/files.create","href":"/api-reference/files/upload-a-file-to-attach"},{"title":"Delete File","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/files.delete","href":"/api-reference/files/delete-an-uploaded-file"}]},{"group":"People","pages":[{"title":"List People","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/people.list","href":"/api-reference/people/list-people"},{"title":"Get Person","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/people.get","href":"/api-reference/people/read-a-person"},{"title":"Update Person","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/people.update","href":"/api-reference/people/pin-hide-or-rename-a-contact"}]},{"group":"Lists","pages":[{"title":"List Lists","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/lists.list","href":"/api-reference/lists/list-task-lists"},{"title":"Get List","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/lists.get","href":"/api-reference/lists/read-a-list"},{"title":"Create List","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/lists.create","href":"/api-reference/lists/create-a-slack-list"}]},{"group":"Tasks","pages":[{"title":"List Tasks","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/tasks.list","href":"/api-reference/tasks/list-tasks"},{"title":"Get Task","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/tasks.get","href":"/api-reference/tasks/read-a-task"},{"title":"Create Task","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/tasks.create","href":"/api-reference/tasks/create-a-task"},{"title":"Update Task","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/tasks.update","href":"/api-reference/tasks/update-a-task"},{"title":"Delete Task","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/tasks.delete","href":"/api-reference/tasks/delete-a-slack-list-task"}]},{"group":"Comments","pages":[{"title":"List Comments","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/comments.list","href":"/api-reference/comments/list-comments"},{"title":"Create Comment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/comments.create","href":"/api-reference/comments/comment"}]},{"group":"Links","pages":[{"title":"List Links","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/links.list","href":"/api-reference/links/list-links"},{"title":"Create Link","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/links.create","href":"/api-reference/links/create-a-link"},{"title":"Update Link","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/links.update","href":"/api-reference/links/change-a-bookmark"},{"title":"Delete Link","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/links.delete","href":"/api-reference/links/delete-a-link"}]},{"group":"Shares","pages":[{"title":"Get Share","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/shares.get","href":"/api-reference/shares/read-a-public-link"},{"title":"Update Share","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/shares.update","href":"/api-reference/shares/turn-a-public-link-on-or-off"}]},{"group":"Documents","pages":[{"title":"List Documents","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/documents.list","href":"/api-reference/documents/list-documents-folders-and-canvases"},{"title":"Get Document","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/documents.get","href":"/api-reference/documents/read-a-document"},{"title":"Create Document","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/documents.create","href":"/api-reference/documents/create-a-document-folder-or-canvas"},{"title":"Update Document","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/documents.update","href":"/api-reference/documents/edit-rename-move-or-restore-a-document"},{"title":"Delete Document","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/documents.delete","href":"/api-reference/documents/delete-a-document-or-folder"},{"title":"List Revisions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/documents.revisions","href":"/api-reference/documents/list-a-documents-revisions"},{"title":"Publish Document","description":"Publish a canvas draft to Slack","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/documents.publish","href":"/api-reference/documents/publish-a-canvas-draft-to-slack"},{"title":"Save Document","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/documents.save","href":"/api-reference/documents/save-something-a-run-made"}]},{"group":"Events","pages":[{"title":"List Events","description":"List calendar events and huddles","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/events.list","href":"/api-reference/events/list-calendar-events-and-huddles"},{"title":"Get Event","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/events.get","href":"/api-reference/events/read-an-event-or-booked-meeting"},{"title":"Update Event","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/events.update","href":"/api-reference/events/accept-decline-or-tentatively-accept-an-invite"},{"title":"Create Event","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/events.create","href":"/api-reference/events/book-a-meeting-someone-accepted"},{"title":"Find Time","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/events.find_time","href":"/api-reference/events/find-free-times-for-a-meeting"}]},{"group":"Notifications","pages":[{"title":"Create Notification","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/notifications.create","href":"/api-reference/notifications/remind-or-notify-someone-about-a-message"}]},{"group":"Triggers","pages":[{"title":"List Triggers","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/triggers.list","href":"/api-reference/triggers/list-triggers"},{"title":"Get Trigger","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/triggers.get","href":"/api-reference/triggers/read-a-trigger"},{"title":"Describe Trigger","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/triggers.describe","href":"/api-reference/triggers/turn-plain-words-into-a-trigger"},{"title":"Create Trigger","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/triggers.create","href":"/api-reference/triggers/create-a-trigger"},{"title":"Update Trigger","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/triggers.update","href":"/api-reference/triggers/change-a-trigger"},{"title":"Delete Trigger","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/triggers.delete","href":"/api-reference/triggers/delete-a-trigger"},{"title":"Run Trigger","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/triggers.run","href":"/api-reference/triggers/try-a-trigger-now"}]},{"group":"Runs","pages":[{"title":"Create Run","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/runs.create","href":"/api-reference/runs/start-an-agent-on-an-ask"},{"title":"Update Run","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/runs.update","href":"/api-reference/runs/report-what-you-did"},{"title":"Ask Person","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/runs.ask","href":"/api-reference/runs/ask-the-person-who-handed-you-this-run"},{"title":"Answer Ask","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/runs.answer","href":"/api-reference/runs/answer-an-agents-ask"}]},{"group":"Asks","pages":[{"title":"List Asks","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/asks.list","href":"/api-reference/asks/list-what-you-owe"},{"title":"Update Ask","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/asks.update","href":"/api-reference/asks/mark-claim-or-link-an-ask"},{"title":"Reply to Ask","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/asks.reply","href":"/api-reference/asks/send-a-drafted-reply"}]}]}]},"basePath":"","title":"Save Document - Avazal","deploymentId":"dpl_4dgnk6TA5fUgboKHTvWWyeqm3idh","buildId":"dpl_4dgnk6TA5fUgboKHTvWWyeqm3idh","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-5zXlUUV6.js","snippetPresets-D3m2eL-0.js","utils-u8TSWPiZ.js","style-to-object-BY3JEAdk.js","utils-D3TDKJCH.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Om0Y4Ijd.js","conditional-requirements-CFM0id0Q.js","cloneDeep-Cyl7LOol.js","_Uint8Array-BuOv0f5_.js","isObject-FP1Yky1u.js","ApiExamples-BnqLE2Kf.js","usePlaygroundInputsStore-DhQKVH9n.js","shallow-BOCfJNQU.js","isEqual-BrbSa25D.js","CodeSnippets-DUGBlB-S.js","CodeSnippet-CuGpPhIN.js","use-playground-group-access-DYZiRN3l.js","Page-DdEXfHxg.js","api-description-markdown-DDasI_tu.js","DynamicMarkdown-DoPsKgYC.js","SectionHeading-CKObOTcn.js","MethodPill-D_DqPuJw.js","getPastedJson-DWfa7n0M.js","Check2Icon-CEquKboc.js","axios-CsQoIw0U.js","Markdown-CIbHOmUi.js","AssistantPageLink-C0oSAXp0.js","dist-Bp7AI3M8.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}