Get pages
The Confluence Get pages action retrieves a paginated list of pages in a space, with optional filters for author, labels, status, title, and type. Use this read-only action to discover existing content and identify the right page for follow-up actions such as updating, reviewing, or exploring page hierarchies.
The action returns only pages the connected account can access, respecting Confluence permissions.
Limitations
- Pagination is required for large result sets.
Prerequisites
-
Glean action must be enabled for your instance and the Confluence action pack must be available.
-
A connected Confluence account must exist for the user with permission to view pages in the target space.
Supported parameters
| Parameter | Type | Description |
|---|---|---|
| Body format | String | Format of the content body to return, for example, view, export_view, or storage. |
| Cursor | String | Opaque cursor token used for pagination to fetch the next page of results. |
| Page limit | Integer | Maximum number of results to return per page. Defaults to 25. |
| Sort by | String | Field and direction to sort results by (for example, created_desc or modified_asc). |
| Space ID | Integer | Numeric identifier of the space to filter results to. |
| Status | String | Status to filter results by (for example, current, draft, or archived). |
| Subtype | String | More specific content subtype to filter by (for example, a page template or specialized content). |
| Title | String | Title or title filter used to match content items (typically a full or partial title string). |
Usage example
You want to find all current API documentation pages in the Engineering space that were updated recently to prepare for a review meeting.
Instruction to an agent:
"Find all pages in the Engineering space with the label api-docs that have status current. Sort them by most recently modified and show me the top 10 results."
Resulting behavior:
-
Calls the Get pages action with:
-
Space IDset to the Engineering space ID. -
Statusfilter set tocurrentto exclude drafts and archived pages. -
Sort byset tomodified_descto show most recently updated pages first. -
Page limitset to 10 to return the top 10 results. -
Returns a list of matching pages with their titles, IDs, and metadata that can be used in follow-up actions.
-
Workflow tip: Use the returned page IDs with other actions like Get child pages to explore page hierarchies or Update page to modify content.