Skip to main content

Confluence Connector

Confluence Confluence is an open and shared workspace platform provided by Atlassian. Use the Confluence component to manage spaces, pages, and content properties.

Connections

Confluence Basic

Confluence Basic

Basic Authentication can be used to connect to both Confluence Cloud and self-hosted Confluence instances.

  • For Confluence Cloud: Use the account email and an API token
  • For Self-hosted Confluence: Use the account email and password
API Token vs Password

For Confluence Cloud, API tokens are required. Passwords are only accepted for self-hosted instances.

Prerequisites

Setup Steps

To generate an API token for Confluence Cloud:

  1. Log in to Atlassian API Token Management
  2. Select Create API token
  3. Enter a descriptive Label for the token and select Create
  4. Select Copy to clipboard to copy the generated token

For additional information on generating an API token, refer to the Atlassian documentation.

Configure the Connection

Add a Confluence action to the integration to automatically create a connection configuration variable.

Configure the Basic Auth connection:

  • Email: Enter the email address associated with the Confluence account (e.g., example.user@confluence.com)
  • API Token: Enter the API token generated from the Atlassian account management page, or for self-hosted instances, enter the account password
  • Host: Enter the Confluence site URL (e.g., your-domain.atlassian.net for Cloud or the server hostname for self-hosted instances)
Self-Hosted Credentials

For self-hosted Confluence instances, API tokens may not be available. Use the account password instead.

InputCommentsDefault
EmailYour Confluence account email address used for authentication.
API TokenYour Confluence API token for authentication. Generate this from your Atlassian account settings.
HostYour Confluence site URL. Only enter your domain without the protocol.

Confluence OAuth 2.0

Confluence OAuth 2.0

To connect to Confluence using OAuth 2.0, create an OAuth 2.0 integration in the Atlassian Developer Console and configure the appropriate scopes.

For more information on developing Confluence applications, refer to the Confluence Security Overview.

Prerequisites

  • An Atlassian account with access to the Developer Console
  • Admin access to the Confluence site to be connected

Setup Steps

  1. Navigate to the Atlassian Developer Console and select Create to create a new OAuth 2.0 (3LO) integration
  2. Provide a name for the integration
  3. Under the Settings tab, locate the Client ID and Client Secret values - copy these for later use
  4. Navigate to the Authorization section and select Configure under OAuth 2.0 (3LO)
  5. Add https://oauth2.integrations.acme.com/callback as the Callback URL
  6. Navigate to the Permissions section and configure the required scopes:
    • Select the Confluence API tab
    • Choose either Classic scopes or Granular scopes based on requirements
    • Add the necessary scopes for the actions to be used (see scope recommendations below)
  7. Save the integration configuration

Configure the Connection

Add a Confluence action to the integration to automatically create a connection configuration variable.

Configure the OAuth 2.0 connection:

  • Enter the Client ID and Client Secret obtained from the Atlassian Developer Console
  • For Scopes, enter the space-separated list of scopes. The default scopes (Granular) provide access to most Confluence actions:
    offline_access delete:attachment:confluence read:attachment:confluence write:attachment:confluence read:custom-content:confluence write:custom-content:confluence delete:custom-content:confluence read:page:confluence write:page:confluence delete:page:confluence read:space:confluence
  • Refer to the Confluence Scopes Documentation for additional scope information
  • (Optional) If connecting to a specific Confluence site when multiple sites are available, enter the site name or full URL in API Site Override (e.g., example or https://example.atlassian.net)
Scope Consistency

Ensure the scopes configured in the connection match the scopes granted in the Atlassian Developer Console. Mismatched scopes will result in authentication failures.

Save the integration to connect and authenticate to Confluence.

This connection uses OAuth 2.0, a common authentication mechanism for integrations. Read about how OAuth 2.0 works here.

InputCommentsDefault
Authorize URLThe OAuth 2.0 Authorization URL for Confluence.https://auth.atlassian.com/authorize?audience=api.atlassian.com&prompt=consent
Token URLThe OAuth 2.0 Token URL for Confluence.https://auth.atlassian.com/oauth/token
ScopesA space-delimited set of one or more scopes to get the user's permission to access. See Confluence OAuth 2.0 Scopes for details.offline_access delete:attachment:confluence read:attachment:confluence write:attachment:confluence read:custom-content:confluence write:custom-content:confluence delete:custom-content:confluence read:page:confluence write:page:confluence delete:page:confluence read:space:confluence
Client IDThe OAuth 2.0 Client ID. Obtain this from your Atlassian Developer Console.
Client SecretThe OAuth 2.0 Client Secret. Obtain this from your Atlassian Developer Console.
API Site OverrideBy default this connector connects to the first Confluence site this user has access to. If you have multiple Confluence sites, specify which one you would like to connect to using the site name or the full URL.

Triggers

New and Updated Pages

Checks for new and updated pages on a configured schedule.

InputCommentsDefault
ConnectionThe Confluence connection to use.

New Spaces

Checks for new spaces on a configured schedule.

InputCommentsDefault
ConnectionThe Confluence connection to use.

Actions

Create Content Property for Attachment

Creates a new content property for an attachment.

InputCommentsDefault
ConnectionThe Confluence connection to use.
Attachment IdThe unique identifier of the attachment.
Body DataThe content property data to create or update.
{
"key": "my-property-key",
"value": "property-value"
}

Create Content Property for Custom Content

Creates a new content property for a Custom Content.

InputCommentsDefault
ConnectionThe Confluence connection to use.
Custom Content IdThe unique identifier of the custom content.
Body DataThe content property data to create or update.
{
"key": "my-property-key",
"value": "property-value"
}

Create Content Property for Page

Creates a new content property for a page.

InputCommentsDefault
ConnectionThe Confluence connection to use.
Page IdThe unique identifier of the page.
Body DataThe content property data to create or update.
{
"key": "my-property-key",
"value": "property-value"
}

Create Page

Creates a page in the space.

InputCommentsDefault
ConnectionThe Confluence connection to use.
Space IdThe unique identifier of the space.
StatusThe status of the page.
TitleThe title of the page.
Parent IdThe unique identifier of the parent page.
BodyThe body of the page.
{
"representation": "storage",
"value": ""
}
EmbeddedWhen true, tags the content as embedded and creates content in NCS.false
PrivateWhen true, the page will be private and only the user who creates the page will have permission to view and edit it.false
Query ParametersQuery parameters to pass in to your request. Ex. Key: include-versions Value: true

Delete Attachment

Deletes a specific attachment.

InputCommentsDefault
ConnectionThe Confluence connection to use.
Attachment IdThe unique identifier of the attachment.
PurgeWhen true, permanently deletes the attachment instead of moving it to trash.false

Delete Content Property for a Custom Content

Deletes a content property for a Custom Content by its id.

InputCommentsDefault
ConnectionThe Confluence connection to use.
Custom Content IdThe unique identifier of the custom content.
Property IdThe unique identifier of the content property.

Delete Content Property for an Attachment

Deletes a content property for an attachment by its id.

InputCommentsDefault
ConnectionThe Confluence connection to use.
Attachment IdThe unique identifier of the attachment.
Property IdThe unique identifier of the content property.

Delete Content Property for Page

Deletes a content property for a page by its id.

InputCommentsDefault
ConnectionThe Confluence connection to use.
Page IdThe unique identifier of the page.
Property IdThe unique identifier of the content property.

Delete Page

Delete a page by id.

InputCommentsDefault
ConnectionThe Confluence connection to use.
Page IdThe unique identifier of the page.
PurgeWhen true, permanently deletes the page instead of moving it to trash.false
DraftWhen true, deletes a page that is in draft status.false

Get Attachment

Returns a specific attachment.

InputCommentsDefault
ConnectionThe Confluence connection to use.
Attachment IdThe unique identifier of the attachment.
Query ParametersQuery parameters to pass in to your request. Ex. Key: include-versions Value: true

Get Attachments for Page

Returns the attachments of specific page.

InputCommentsDefault
ConnectionThe Confluence connection to use.
Page IdThe unique identifier of the page.
LimitMaximum number of pages per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results.25
CursorUsed for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results.
Query ParametersQuery parameters to pass in to your request. Ex. Key: include-versions Value: true

Get Content Properties for Custom Content

Retrieves a specific Content Property by ID that is attached to a specified custom content.

InputCommentsDefault
ConnectionThe Confluence connection to use.
Custom Content IdThe unique identifier of the custom content.
Property IdThe unique identifier of the content property.

Get Content Property for Attachment

Retrieves a specific Content Property by ID that is attached to a specified attachment.

InputCommentsDefault
ConnectionThe Confluence connection to use.
Attachment IdThe unique identifier of the attachment.
Property IdThe unique identifier of the content property.

Get Content Property for Page

Retrieves a specific Content Property by ID that is attached to a specified page.

InputCommentsDefault
ConnectionThe Confluence connection to use.
Page IdThe unique identifier of the page.
Property IdThe unique identifier of the content property.

Get Page

Returns a specific Page.

InputCommentsDefault
ConnectionThe Confluence connection to use.
Page IdThe unique identifier of the page.
Body FormatThe content format types to be returned in the body field of the response.
Get DraftRetrieve the draft version of this page.
VersionAllows you to retrieve a previously published version. Specify the previous version's number to retrieve its details.
Include LabelsWhen true, includes labels associated with this page in the response. The number of results will be limited to 50 and sorted in the default sort order.false
Include PropertiesWhen true, includes content properties associated with this page in the response. The number of results will be limited to 50 and sorted in the default sort order.false
Include OperationsWhen true, includes operations associated with this page in the response. The number of results will be limited to 50 and sorted in the default sort order.false
Include LikesWhen true, includes likes associated with this page in the response. The number of results will be limited to 50 and sorted in the default sort order.false
Include VersionsWhen true, includes versions associated with this page in the response. The number of results will be limited to 50 and sorted in the default sort order.false
Include VersionWhen true, includes the current version associated with this page in the response.true
Include Favorited By Current User StatusWhen true, includes whether this page has been favorited by the current user.false

Get Space

Returns a specific space.

InputCommentsDefault
ConnectionThe Confluence connection to use.
Space IdThe unique identifier of the space.
Query ParametersQuery parameters to pass in to your request. Ex. Key: include-versions Value: true

List Attachments

Returns all attachments.

InputCommentsDefault
ConnectionThe Confluence connection to use.
Fetch AllWhen enabled, fetches all results by automatically paginating through all pages. When disabled, returns a single page of results.false
LimitMaximum number of pages per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results.25
CursorUsed for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results.
Query ParametersQuery parameters to pass in to your request. Ex. Key: include-versions Value: true

List Content Properties for Attachments

Retrieves all Content Properties tied to a specified attachment.

InputCommentsDefault
ConnectionThe Confluence connection to use.
Attachment IdThe unique identifier of the attachment.
Fetch AllWhen enabled, fetches all results by automatically paginating through all pages. When disabled, returns a single page of results.false
LimitMaximum number of pages per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results.25
CursorUsed for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results.
SortUsed to sort the result by a particular field.
Query ParametersQuery parameters to pass in to your request. Ex. Key: include-versions Value: true

List Content Properties for Custom Content

Retrieves Content Properties tied to a specified Custom Content.

InputCommentsDefault
ConnectionThe Confluence connection to use.
Custom Content IdThe unique identifier of the custom content.
Fetch AllWhen enabled, fetches all results by automatically paginating through all pages. When disabled, returns a single page of results.false
LimitMaximum number of pages per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results.25
CursorUsed for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results.
SortUsed to sort the result by a particular field.
Query ParametersQuery parameters to pass in to your request. Ex. Key: include-versions Value: true

List Content Properties for Page

Retrieves Content Properties tied to a specified page.

InputCommentsDefault
ConnectionThe Confluence connection to use.
Page IdThe unique identifier of the page.
Fetch AllWhen enabled, fetches all results by automatically paginating through all pages. When disabled, returns a single page of results.false
LimitMaximum number of pages per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results.25
CursorUsed for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results.
SortUsed to sort the result by a particular field.
Query ParametersQuery parameters to pass in to your request. Ex. Key: include-versions Value: true

List Pages

Returns all pages.

InputCommentsDefault
ConnectionThe Confluence connection to use.
Fetch AllWhen enabled, fetches all results by automatically paginating through all pages. When disabled, returns a single page of results.false
LimitMaximum number of pages per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results.25
CursorUsed for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results.
IdFilter the results based on page IDs. Multiple page IDs can be specified as a comma-separated list.
Space IdFilter the results based on space IDs. Multiple space IDs can be specified as a comma-separated list.
SortUsed to sort the result by a particular field.
StatusFilter the results to pages based on their status. By default, current and archived are used. Valid values: current, archived, deleted, trashed
TitleFilter the results to pages based on their title.
Body FormatThe content format types to be returned in the body field of the response.

List Pages in Space

Returns all pages in a space.

InputCommentsDefault
ConnectionThe Confluence connection to use.
Space IdThe unique identifier of the space.
Fetch AllWhen enabled, fetches all results by automatically paginating through all pages. When disabled, returns a single page of results.false
DepthFilter the results to pages at the root level of the space or to all pages in the space.
SortUsed to sort the result by a particular field.
StatusThe status of the page.
TitleFilter the results to pages based on their title.
Body FormatThe content format types to be returned in the body field of the response.
LimitMaximum number of pages per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results.25
CursorUsed for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results.

List Spaces

Returns all spaces.

InputCommentsDefault
ConnectionThe Confluence connection to use.
Fetch AllWhen enabled, fetches all results by automatically paginating through all pages. When disabled, returns a single page of results.false
LimitMaximum number of pages per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results.25
CursorUsed for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results.
Query ParametersQuery parameters to pass in to your request. Ex. Key: include-versions Value: true

Raw GraphQL Request

Send raw GraphQL request to Confluence

InputCommentsDefault
ConnectionThe Confluence connection to use.
Query or Mutationquery ($customerName: String!) {
customers(name: $customerName) {
nodes {
id
labels
users {
nodes {
id
email
}
}
}
}
}
VariablesVariables to pass in to your query or mutation
HeadersCustom headers to send along with your request

Raw Request

Send raw HTTP request to Confluence

InputCommentsDefault
ConnectionThe Confluence connection to use.
URLInput the path only (/wiki/api/v2/attachments/attachments), The base URL is already included (https://{your-domain}). For example, to connect to https://{your-domain}/wiki/api/v2/attachments, only /wiki/api/v2/attachments/attachments is entered in this field.
MethodThe HTTP method to use.
DataThe HTTP body payload to send to the URL.
Form DataThe Form Data to be sent as a multipart form upload.
File DataFile Data to be sent as a multipart form upload.
File Data File NamesFile names to apply to the file data inputs. Keys must match the file data keys above.
Query ParameterA list of query parameters to send with the request. This is the portion at the end of the URL similar to ?key1=value1&key2=value2.
HeaderA list of headers to send with the request.
Response TypeThe type of data you expect in the response. You can request json, text, or binary data.json
TimeoutThe maximum time that a client will await a response to its request
Retry Delay (ms)The delay in milliseconds between retries. This is used when 'Use Exponential Backoff' is disabled.0
Retry On All ErrorsIf true, retries on all erroneous responses regardless of type. This is helpful when retrying after HTTP 429 or other 3xx or 4xx errors. Otherwise, only retries on HTTP 5xx and network errors.false
Max Retry CountThe maximum number of retries to attempt. Specify 0 for no retries.0
Use Exponential BackoffSpecifies whether to use a pre-defined exponential backoff strategy for retries. When enabled, 'Retry Delay (ms)' is ignored.false

Update Content Property for Attachment

Update a content property for attachment by its id.

InputCommentsDefault
ConnectionThe Confluence connection to use.
Attachment IdThe unique identifier of the attachment.
Property IdThe unique identifier of the content property.
Body DataThe content property data to create or update.
{
"key": "",
"value": "",
"version": {
"number": 84,
"message": ""
}
}

Update Content Property for Custom Content

Update a content property for a Custom Content by its id.

InputCommentsDefault
ConnectionThe Confluence connection to use.
Custom Content IdThe unique identifier of the custom content.
Property IdThe unique identifier of the content property.
Body DataThe content property data to create or update.
{
"key": "",
"value": "",
"version": {
"number": 84,
"message": ""
}
}

Update Content Property for Page

Update a content property for a page by its id.

InputCommentsDefault
ConnectionThe Confluence connection to use.
Page IdThe unique identifier of the page.
Property IdThe unique identifier of the content property.
Body DataThe content property data to create or update.
{
"key": "",
"value": "",
"version": {
"number": 84,
"message": ""
}
}

Update Page

Update a page by id.

InputCommentsDefault
ConnectionThe Confluence connection to use.
Page IdThe unique identifier of the page.
StatusThe status of the page.
TitleThe title of the page.
BodyThe body of the page.
{
"representation": "storage",
"value": ""
}
VersionThe version of the page.
{
"number": 47,
"message": ""
}
Space IdThe unique identifier of the space.
Parent IdThe unique identifier of the parent page.