Skip to content

Confluence

Create, collaborate, and organize all your work in one place. Confluence is a team workspace where knowledge and collaboration meet. Dynamic pages give your team a place to create, capture, and collaborate on any project or idea.

You must ensure that you have a Confluence account and access to it. During authentication, you will be redirected to the Confluence login page to authorize the app. Note, this app leverages the Confluence Cloud REST API to provide a streamlined experience for managing your content.

You can connect with your own OAuth2 app or with a service account API token. Both need Confluence scopes and the full list our app supports is in Supported scopes below.

  • Go to Atlassian Developer Console.
  • Click Create > OAuth 2.0 Integration.
  • Name your app for future reference, read and agree to be bound by Atlassian’s developer terms and click Create.
  • Go to Authorization and click Add for the OAuth 2.0 (3LO) authorization type.
  • In the Callback URLs field, specify https://bridge.blackbird.io/api/AuthorizationCode and click Save changes.
  • Go to Permissions, find Confluence API and click Add.
  • Click Configure and set the scopes from Supported scopes.
  • Go to Settings > Authentication details and copy the Client ID and Secret values.
  • Go to Atlassian Administration and select your organization.
  • Go to Directory > Service accounts and select the service account you want to use (or create one).
  • Click Create credentials, select API token and click Next.
  • Enter a name and an expiration date, then click Next.
  • Select the scopes from Supported scopes, then click Next > Create.
  • Copy the token right away. You won’t be able to see it again.
  • Get your Cloud ID from https://<your-site>.atlassian.net/_edge/tenant_info (the cloudId value).

Token scopes can’t be changed after creation. If an action fails with 401 Unauthorized; scope does not match, create a new token with the missing scopes.

  • Classic: write:confluence-content read:confluence-space.summary write:confluence-space write:confluence-file write:confluence-props read:confluence-props manage:confluence-configuration read:confluence-content.all read:confluence-content.summary search:confluence read:confluence-content.permission read:confluence-user read:confluence-groups write:confluence-groups
  • Granular: read:content:confluence write:content:confluence read:content-details:confluence read:space-details:confluence delete:content:confluence read:page:confluence write:page:confluence delete:page:confluence read:attachment:confluence read:custom-content:confluence write:custom-content:confluence delete:custom-content:confluence write:comment:confluence delete:comment:confluence read:template:confluence write:template:confluence read:space:confluence read:content.permission:confluence read:content.property:confluence write:content.property:confluence

If you don’t need to limit scopes, just copy and paste all of the above.

Navigate to Apps search for Confluence. Click Add Connection and name it for future reference e.g. ‘My connection’.

  1. Select the OAuth2 connection type from the dropdown.
  2. Click Authorize connection.
  3. Follow the instructions that Confluence gives you.
  4. Confirm that the connection has appeared and the status is Connected.

OAuth2 connection

  1. Select the OAuth2 (custom app) connection type from the dropdown.
  2. Fill in Client ID, Client secret and Scopes that you obtained before.
  3. Click Authorize connection.
  4. Follow the instructions that Confluence gives you.
  5. Confirm that the connection has appeared and the status is Connected.

OAuth2 custom app connection

  1. Select the Service account API token connection type from the dropdown.
  2. Fill in Cloud ID and API token that you obtained before.
  3. Click Connect.

Service API token connection

  • Search content - Returns a list of content that matches the search criteria.
  • Get content - Returns a single content object specified by the content ID.
  • Get content as HTML - Returns a single content HTML specified by the content ID.
  • Update content from HTML - Updates a content from HTML file.
  • Create content from HTML - Creates a content from HTML file.
  • Create content - Creates a new content with specified data.
  • Delete content - Deletes a content specified by the content ID.
  • Download page - Downloads a Confluence page as HTML file.
  • Search page properties - Lists page properties.
  • Get page property - Gets a specific page property.
  • Set page property - Creates or updates a page property.
  • On content created - Triggered when content is created or existing content is updated.
  • On content updated - Triggered when existing content is updated.

Our app returns errors in a structured format. Below are the typical error responses you might encounter:

Status code: {Status code}, Message: {Message}

  • Status code: The HTTP status code associated with the error.
  • Message: A brief message describing the error which we get from the Confluence API.

If you encounter an error, please try to resolve it using the information provided in the error message. If you are unable to resolve the error, please contact us for further assistance.

Do you want to use this app or do you have feedback on our implementation? Reach out to us using the established channels or create an issue.