Skip to main content

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​

  1. Click Add Key.

  2. Description: Docs site – page reader.

  3. HTTP Methods: GET.

  4. 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.