Outline Wiki icon

Outline Wiki

Interact with the Outline Wiki API — documents, collections, comments, attachments, users, shares

Document → Export

AI-generated

Summary

Export a document from the Outline Wiki as a Markdown file and store the exported content as binary data on the workflow item.

Inputs

  • Document ID (required) — The UUID or URL slug of the document to export.
  • Output Binary Property — The name of the binary property on the output to store the exported Markdown file; defaults to 'data'.
  • Additional Fields — Additional optional settings, including 'Output Filename' to specify the filename for the exported Markdown file; defaults to 'document.md'.

Output shape

an array of items each containing JSON metadata (id, filename, MIME type, and size in bytes) and binary data under the specified output binary property

The operation posts to the /documents.export endpoint with the document ID, receives the Markdown data response, encodes it as UTF-8, and returns it as binary data. The binary output is paired to the input item. The output filename defaults to 'document.md' if not overridden. Errors are handled per n8n standard.

Examples

Example 1: Export document with ID '1234-5678' storing markdown in the default binary property

Document ID set to '1234-5678', Output Binary Property left as 'data', no additional fields used.

Links

Discussion