The Markdown Exporter REST API lets you export Confluence pages to Markdown from any external system — CI/CD pipelines, scheduled backups, content migration scripts, or custom integrations.
Authentication is handled via OAuth 2.0 (3LO) using a custom scope (export:markdown:custom) issued specifically for this app.
| Endpoint | Use case |
|---|---|
POST …/bulkExport |
Export a space, or a page and all its descendants |
POST …/singleExport |
Export a single page only |
export:markdown:custom scope at developer.atlassian.comcurl --request POST \
--url "https://api.atlassian.com/svc/confluence/{cloudId}/apps/{appId}_{envId}/singleExport" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--data '{"pageId": "123456"}' \
> my-page.md