Detect if page been created by new or old editor through the REST API

We want to handle pages in our app differently depending on if they’ve been created with the old or new Confluence editor. We would need to get this information through the Confluence REST API. Does anyone know if this is possible?

You can use the API /wiki/rest/api/content/{content-id}?expand=metadata.properties.editor. If the value is ‘v2’, it’s the new editor. If it’s not present or ‘v1’, then it’s the old editor.

Cheers.

2 Likes

This works for created pages, but what if this is a new page (not yet saved) and you want to detect if v2 or v1 editor is used (we want macro editor to behave differently). How to do that?

Alex

This is how you can do this - /wiki/rest/api/content?status=draft&expand=metadata.properties.editor. You will get all the pages in draft status along with their editor info.

1 Like