This page provides information on how to connect to Confluence. It enables users to perform actions such as creating pages, updating content, searching spaces, managing blog posts, and retrieving content by various criteria.
To connect to Confluence, you need to authenticate using your Confluence credentials. This authentication provides secure access to your Confluence workspace and content.
To authenticate with Confluence, you need to provide your Confluence domain and API token:
- Log in to your Confluence instance (e.g.,
https://your-domain.atlassian.net) - Generate an API token:
- Go to Atlassian Account Settings
- Click "Create API token"
- Give your token a name (e.g., "Appsmith Integration")
- Copy the generated token
- In the Appsmith Confluence datasource configuration:
- Enter your Confluence domain (e.g.,
your-domain.atlassian.net) - Enter your email address associated with your Atlassian account
- Paste the API token in the password/token field
- Enter your Confluence domain (e.g.,
The following section provides a reference guide describing available commands and their parameters for interacting with Confluence.
Creates a new page in a specified Confluence space. This command allows you to define page details such as title, content, and parent page, and returns the created page's information including its ID for future reference.
To find a space ID:
- In Confluence, navigate to the space
- Look at the URL:
https://your-domain.atlassian.net/wiki/spaces/[SPACE_KEY] - The space key in the URL is the space ID
- Alternatively, use the "Get Space By Id" or "Search Spaces" commands to retrieve space IDs
Space IDs are typically short alphanumeric codes (e.g., TEAM, DOCS, HR).
Example:
DOCS
Valid values:
current- The page will be published and visible to users with appropriate permissionsdraft- The page will be saved as a draft and only visible to the creator
Example for publishing immediately:
current
Example for saving as draft:
draft
The title is required if the page status is not set to draft. It should be descriptive and concise.
Example:
Project Requirements Documentation
To find a parent page ID:
- Open the parent page in Confluence
- Look at the URL:
https://your-domain.atlassian.net/wiki/spaces/[SPACE_KEY]/pages/[PAGE_ID] - The numeric value after "/pages/" is the page ID
- Alternatively, use the "Get Page By Id" or "Get Pages In Space" commands to retrieve page IDs
If omitted, the page will be created at the root level of the space.
Example:
123456789
Confluence storage format uses HTML-like tags with specific Confluence macros. For basic content, you can use standard HTML tags like <p>, <h1>, <ul>, etc.
Example for simple content:
<p>This is a new project requirements document.</p>
<h1>Overview</h1>
<p>This project aims to improve customer experience by...</p>
Example with a Confluence macro:
<p>Project timeline:</p>
<ac:structured-macro ac:name="timeline" />
Updates an existing page in Confluence. This command allows you to modify page details such as title, content, and status, and returns the updated page information.
To find a page ID:
- Open the page in Confluence
- Look at the URL:
https://your-domain.atlassian.net/wiki/spaces/[SPACE_KEY]/pages/[PAGE_ID] - The numeric value after "/pages/" is the page ID
- Alternatively, use the "Get Page By Id" or "Get Pages In Space" commands to retrieve page IDs
Page IDs are numeric values that uniquely identify pages within your Confluence instance.
Example:
123456789
To find a space ID:
- In Confluence, navigate to the space
- Look at the URL:
https://your-domain.atlassian.net/wiki/spaces/[SPACE_KEY] - The space key in the URL is the space ID
Example:
DOCS
Valid values:
current- The page is published and visibledraft- The page is a draft
Example:
current
Example:
Updated Project Requirements Documentation
The version object requires:
number: The new version number (typically current version + 1)message: A description of the changes made (optional)
To find the current version number:
- Use the "Get Page By Id" command to retrieve the page details
- Look for the
version.numberfield in the response
Example:
{
"number": 2,
"message": "Updated project timeline and requirements"
}
Example:
<p>This is the updated project requirements document.</p>
<h1>Overview</h1>
<p>This project aims to improve customer experience by implementing new features...</p>
<h1>Timeline</h1>
<p>The project will be completed in three phases...</p>
Retrieves detailed information about a specific page using its unique Confluence page ID. This command returns comprehensive data about the page, including its title, content, version, and space information.
To find a page ID:
- Open the page in Confluence
- Look at the URL:
https://your-domain.atlassian.net/wiki/spaces/[SPACE_KEY]/pages/[PAGE_ID] - The numeric value after "/pages/" is the page ID
Example:
123456789
Valid values:
storage- Returns the content in Confluence storage format (XHTML variant)view- Returns the content in HTML format as it would be viewed in Confluenceexport_view- Returns the content in a format suitable for exportingstyled_view- Returns the content with additional styling informationanonymous_export_view- Returns the content in a format suitable for anonymous export
Example:
view
Example to get draft version:
true
Example to get published version:
false
To find available version numbers:
- In Confluence, view the page
- Click on "..." (more actions) in the top right
- Select "Page History" to see all versions
Example to get version 3:
3
Common additional fields:
body.export_view- Include the export view of the bodyversion- Include version informationancestors- Include information about parent pageschildren.page- Include information about child pagesdescendants.page- Include information about all descendant pages
Example:
version,ancestors,children.page
Retrieves a list of pages from a specified Confluence space. This command returns page details including their IDs, titles, and content based on the specified criteria.
To find a space ID:
- In Confluence, navigate to the space
- Look at the URL:
https://your-domain.atlassian.net/wiki/spaces/[SPACE_KEY] - The space key in the URL is the space ID
Example:
DOCS
Valid values:
current- Published pagesdraft- Draft pagesany- Both published and draft pages
Example to get published pages:
current
Valid values:
storage- Returns the content in Confluence storage format (XHTML variant)view- Returns the content in HTML format as it would be viewed in Confluenceexport_view- Returns the content in a format suitable for exportingstyled_view- Returns the content with additional styling informationanonymous_export_view- Returns the content in a format suitable for anonymous export
Example:
view
Use this parameter to control the size of the response, especially when you expect a large number of pages.
Example:
25
The pagination parameters typically include:
start- The starting index of the returned records (integer)limit- The maximum number of records to return per page (integer)
Example:
{
"start": 0,
"limit": 25
}
For subsequent pages:
{
"start": 25,
"limit": 25
}
Retrieves a list of pages that have a specific label. This command returns page details including their IDs, titles, and content for all pages with the specified label.
To find a label ID:
- In Confluence, click on a label on any page
- Look at the URL:
https://your-domain.atlassian.net/wiki/label/[LABEL_ID] - The value after "/label/" is the label ID
- Alternatively, labels are visible at the bottom of pages that have them
Label IDs are case-sensitive and should match exactly as they appear in Confluence.
Example:
project-requirements
Valid values:
storage- Returns the content in Confluence storage format (XHTML variant)view- Returns the content in HTML format as it would be viewed in Confluenceexport_view- Returns the content in a format suitable for exportingstyled_view- Returns the content with additional styling informationanonymous_export_view- Returns the content in a format suitable for anonymous export
Example:
view
Example:
version,ancestors,children.page
Example:
25
Example:
{
"start": 0,
"limit": 25
}
Searches for pages in Confluence based on specified criteria. This command returns page details including their IDs, titles, and content for all pages matching the search criteria.
Example:
25
The filter formula uses Confluence Query Language (CQL) syntax, which allows you to search by various attributes like title, content, creator, space, and more.
Common filter attributes:
title- Search by page titletext- Search in page contentcreator- Search by page creatorspace- Search in specific spacescreated- Search by creation datemodified- Search by modification date
Example to search for pages with "project" in the title:
title ~ "project"
Example to search for pages in a specific space with "requirements" in the content:
space = "DOCS" AND text ~ "requirements"
Example to search for pages created by a specific user in the last month:
creator = "john.doe@example.com" AND created >= now("-30d")
Example:
{
"start": 0,
"limit": 25
}
Deletes a page from Confluence. This command permanently removes the specified page and its content.
To find a page ID:
- Open the page in Confluence
- Look at the URL:
https://your-domain.atlassian.net/wiki/spaces/[SPACE_KEY]/pages/[PAGE_ID] - The numeric value after "/pages/" is the page ID
Example:
123456789
Retrieves detailed information about a specific Confluence space using its unique space ID. This command returns comprehensive data about the space, including its name, description, and permissions.
To find a space ID:
- In Confluence, navigate to the space
- Look at the URL:
https://your-domain.atlassian.net/wiki/spaces/[SPACE_KEY] - The space key in the URL is the space ID
Example:
DOCS
Valid values:
plain- Returns the description in plain text formatview- Returns the description in HTML format as it would be viewed in Confluencestorage- Returns the description in Confluence storage format (XHTML variant)
Example:
view
Searches for spaces in Confluence based on specified criteria. This command returns space details including their IDs, names, and descriptions for all spaces matching the search criteria.
Example:
25
The filter formula uses Confluence Query Language (CQL) syntax, which allows you to search by various attributes like name, description, type, and more.
Common filter attributes:
name- Search by space namedescription- Search in space descriptiontype- Search by space type (e.g., "global", "personal")creator- Search by space creatorcreated- Search by creation date
Example to search for spaces with "project" in the name:
name ~ "project"
Example to search for global spaces created after a specific date:
type = "global" AND created >= "2025-01-01"
Example:
{
"start": 0,
"limit": 25
}
Retrieves a list of blog posts from Confluence based on specified criteria. This command returns blog post details including their IDs, titles, and content for all posts matching the criteria.
Example:
25
The filter formula uses Confluence Query Language (CQL) syntax, which allows you to search by various attributes like title, content, creator, space, and more.
Common filter attributes:
title- Search by blog post titletext- Search in blog post contentcreator- Search by blog post creatorspace- Search in specific spacescreated- Search by creation datemodified- Search by modification date
Example to search for blog posts with "announcement" in the title:
title ~ "announcement"
Example to search for blog posts in a specific space created in the last week:
space = "BLOG" AND created >= now("-7d")
Example:
{
"start": 0,
"limit": 25
}
Executes a custom action against the Confluence API. This command allows for advanced operations not covered by the standard commands.
When using Custom Action, you'll need to refer to the Confluence REST API documentation for specific endpoint details and required parameters.
Example for a custom query to get content properties:
GET /wiki/rest/api/content/{id}/property
Example for a custom query to get all content in a space:
GET /wiki/rest/api/space/{spaceKey}/content
Custom actions require appropriate authentication and permissions for the endpoints being accessed.