---
title: "Enqueue a workspace export"
method: POST
path: "/v1/spaces/{space_id}/exports"
tags: ["Admin API"]
---

# Enqueue a workspace export

`POST /v1/spaces/{space_id}/exports`

## Path parameters

- `space_id` string, required — UUID of the workspace (space) to export.

## Headers

- `Notion-Version` '2026-03-11', required

## Request body

- object
  - `export_type` 'html' | 'markdown' | 'pdf', required
  - `on_behalf_of_user_email` string, required
  - `collection_view_export_type` 'all' | 'currentView'
  - `flatten_export_filetree` boolean
  - `include_comments` boolean
  - `include_contents` 'everything' | 'no_files'
  - `locale` string
  - `pdf_format` 'A3' | 'A4' | 'Legal' | 'Letter' | 'Tabloid'
  - `teamspace_ids` string[]
  - `time_zone` string

## Response `200`

- object
  - `export_job_id` string, required
  - `status` string, required

## Other responses

- `400` — The request body, path parameters, or query parameters are invalid.
- `401` — The request is missing a valid bearer token.
- `403` — The authenticated bot does not have access to the requested resource or scope.
- `404` — The requested resource could not be found.
- `429` — The request was rate limited.
- `500` — An unexpected server error occurred.

---

[API](https://skmtc.net/notion/apis/notion-admin-api.md) · [All operations](https://skmtc.net/notion/apis/notion-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/notion/notion-admin-api/revisions/62d8d95d51e0/schema)
