Collections

Export all collections

Changed on

Triggers a bulk export of multiple collections and their documents. The endpoint returns a FileOperation that can be queried through the fileOperations endpoint to track the progress of the export and get the url for the final file.

post/collections.export_all

Request

  • Base URL
    https://app.getoutline.com/api
  • URL
    https://app.getoutline.com/api/collections.export_all
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization code: https://app.getoutline.com/oauth/authorize
      Token URL: https://app.getoutline.com/oauth/token scopes: read, write

Request body

format'outline-markdown' | 'json' | 'html' | 'okf'
includeAttachmentsboolean

Whether to include attachments in the export.

includePrivateboolean

Whether to include private collections in the export.

Response

OK

Example response

{
  "data": {
    "fileOperation": {
      "type": "export",
      "format": "outline-markdown",
      "state": "complete",
      "size": "2048",
      "user": {
        "name": "Jane Doe"
      }
    }
  }
}

Changes