capabilities.work

Inventory a Space and Its Page Labels

A 5-step recipe with Confluence. We can help you get access.

Recipe · 5 steps

Inventory a Space and Its Page Labels

Works with AI assistants

Produce a read-only inventory of a Confluence space, its pages, and its labels.

  1. Resolve the supplied space key to the numeric space id that the rest of the inventory hangs off, and confirm a space actually matched.
  2. Read the full space record to capture the homepage id, author, and the description that a bare listing does not return.
  3. List the current pages in the space, sorted by last modification so the most recently touched content leads the inventory.
  4. Read the labels attached to the first page in the inventory, which is how most Confluence taxonomies are actually expressed.
  5. Resolve one label id to its canonical name and prefix so the inventory records the taxonomy term rather than an opaque id.
What you'll need to have ready
  • spaceKey: The space key to inventory (e.g. "ENG").
  • pageLimit: Maximum number of pages to return per inventory call, 1-250.
  • depth: Use "root" for top-level pages only, or "all" for the whole tree.
For your developer

Arazzo workflow confluence:inventory-space-content, 5 operations: getSpaces → getSpaceById → getPagesInSpace → getPageLabels → getLabelById. Specs on APIs.io.