What can you do with it?
The Confluence API allows you to create and manage documentation, share knowledge, and collaborate on content. You can create pages and spaces, update existing content, search for information, manage page hierarchies, add comments, and handle user permissions across your Confluence workspace.How to use it?
Basic Command Structure
Parameters
Required:action
- The action to perform (create, update, get, search, etc.)spaceKey
- The space key for most operationspageId
- The page ID for page-specific operations
title
- Page or space titlecontent
- Page content in storage formatversion
- Version number for updatesquery
- Search query for content searchexpand
- Fields to expand in responses
Tools
Create Page
Create a new page in a Confluence space. Parameters:spaceKey
(required) - The space key where the page will be createdtitle
(required) - Page titlecontent
(required) - Page content in HTML storage formatparentId
(optional) - Parent page ID for hierarchical structure
Update Page
Update an existing Confluence page. Parameters:pageId
(required) - The page ID to updatetitle
(required) - Updated page titlecontent
(required) - Updated page content in storage formatversion
(required) - Version number (increment from current)
Get Page Content
Retrieve content and metadata for a specific page. Parameters:pageId
(required) - The page ID to retrieveexpand
(optional) - Fields to expand (body.storage, version, space, ancestors)
Search Content
Search for pages and content within Confluence. Parameters:query
(required) - CQL (Confluence Query Language) search querystart
(optional) - Starting index for resultslimit
(optional) - Maximum number of results
Get Spaces
Retrieve all spaces in the Confluence instance. Parameters:start
(optional) - Starting index for resultslimit
(optional) - Maximum number of results
Create Space
Create a new Confluence space. Parameters:key
(required) - Space key (unique identifier)name
(required) - Space namedescription
(optional) - Space descriptiontype
(optional) - Space type (global, personal)
Get Page Children
Retrieve child pages of a specific page. Parameters:pageId
(required) - Parent page IDstart
(optional) - Starting index for resultslimit
(optional) - Maximum number of results
Add Comment
Add a comment to a Confluence page. Parameters:pageId
(required) - Page ID to comment oncomment
(required) - Comment content in storage format
Get User Information
Retrieve user information by account ID. Parameters:accountId
(required) - User account ID