Create a Page in a Space and Read It Back
A 3-step recipe with Confluence. We can help you get access.
Recipe · 3 steps
Create a Page in a Space and Read It Back
with Confluence
Works with AI assistants
Create a Confluence page in a space identified by key and confirm it stored.
- Resolve the supplied space key to the numeric space id that the v2 API requires on write, and confirm exactly one space matched.
- Create the page in the resolved space using the storage representation. The parentId is optional; without it the page is created at the space root.
- Read the created page back in storage format to confirm it persisted and to capture the authoritative version number for later optimistic updates.
What you'll need to have ready
- spaceKey: The human-facing space key (e.g. "ENG") to create the page in.
- title: The title of the new page.
- body: The page body in Confluence storage format (XHTML).
- parentId: Optional id of the parent page; omit to create at the space root.
- status: The status to create the page in, either draft or current.
For your developer
Arazzo workflow confluence:create-page-read-back, 3 operations: getSpaces → createPage → getPageById. Specs on APIs.io.