Read Confluence pages from a script
Confluence only
Scenario: an intranet or a documentation build needs to read pages from Confluence, and must not be able to edit them.
Setup
-
Click Add Key.
-
Description:
Docs site – page reader. -
HTTP Methods:
GET. -
Endpoints:
/wiki/rest/api/content/wiki/rest/api/content/{id}/wiki/rest/api/content/{id}/child/page
Each line is matched against the whole path, see Endpoints, so every endpoint the script uses needs its own line.
Call it
{
"options": { "method": "GET", "headers": { "Accept": "application/json" } },
"url": "/wiki/rest/api/content/12345?expand=body.storage"
}
Query strings such as ?expand=body.storage are fine, they do not take part in endpoint matching.