Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I export spaces using REST API for confluence?

SDLC Support August 25, 2022

I am trying to export confluence spaces in pdf format but in bulk.

So, I need the REST API for doing these exports.

Can someone help?

 

Thanks,

Saurabh

1 answer

0 votes
WW
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 26, 2022

The bad news:

You can't using the REST API.

The good news:

You can using XML-RPC, which is like old REST API.

See Remote Confluence method under Spaces -> Retrieval:

String exportSpace(String token, String spaceKey, String exportType) - exports a space and returns a String holding the URL for the download. The export type argument indicates whether or not to export in XML or HTML format - use "TYPE_XML" or "TYPE_HTML" respectively. (Note: In Confluence 3.0, the remote API specification for PDF exports changed. You can no longer use this 'exportSpace' method to export a space to PDF. Please refer to Remote API Specification for PDF Export for current remote API details on this feature.)

Oh, and disregard the token parameter. Pretend it doesn't exist.

K-IT Team
Contributor
July 7, 2025

Note that XML-RPC function exportSpace was removed in Confluence 9.

And REST API does not have a replacement. :-(

https://jira.atlassian.com/browse/CONFSERVER-92629

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events