Confluence
The Carbon Connect enabledIntegrations
value for Confluence is Confluence
.
Authorization Type
Carbon uses OAuth 2.0 to connect to Confluence.
Functionality
Carbon has the ability to synchronize Confluence pages and retrieve the contents of each page as HTML or plain text.
Authorization Flow
Enter the subdomain
of your Confluence workspace. For example, if the Confluence workspace URL is https://carbon-ai.confluence.com
, carbon-ai
is the subdomain.
Login to authenticate your Confluence account.
You should see the following confirmation screen once your account has been connected:
Configuration
Syncing Confluence Pages
You can synchronize Confluence pages using the following steps:
Sync a User’s Confluence Account
- Use the
/integrations/items/sync
endpoint to synchronize a user’s Confluence account.
List All Items from a User’s Confluence Account
- Retrieve a list of all items from a user’s Confluence account by utilizing the
/integrations/items/list
endpoint.
Specify Specific Pages to Sync
- Employ the
/integrations/files/sync
endpoint to specify and synchronize specific pages.
If you are utilizing our Carbon Connect component, be aware that all pages are automatically synchronized by default.
Custom OAuth Credentials
-
Sign up on Confluence.
-
Click “Create” and select “OAuth 2.0 integration”.
-
Name your app and confirm creating the integration.
-
In the “Permissions” tab, add the following scopes and permissions:
-
Add the “User identity API” scope and check the
read:me
permission. -
Add “Confluence API” scope and, under “Granular scopes”, check
read:page:confluence
andread:space:confluence
permissions.
- In the “Authorization” tab, add https://api.carbon.ai/integrations/confluence to the
Callback URL
. You can also opt to use a custom CNAME record pointing to https://api.carbon.ai. The domain paths must still be/integrations/confluence
.
-
In the “Distribution” tab, set “Distribution Status” to “Sharing” and fill in the required details.
-
Confirm your app does store personal data before saving the changes.
-
In the “Settings” tab, upload an Avatar image and enter an app description.
-
Share the “Client ID” and “Secret” with us via Slack.
Synchronization
You can also use the resync_file
API endpoint to programmatically resync specific Confluence pages. To delete Confluence pages from Carbon, you can use the delete_files
endpoint directly.
To sync Confluence files on a 24-hour schedule (more frequent schedules available upon request), you can use the /update_users endpoint. This endpoint allows organizations to customize syncing settings according to their requirements, with the option to enable syncing for all data sources using the string ‘ALL’. It’s important to note that each request supports up to 100 customer IDs.
Here’s an example illustrating how to automatically enable syncing for updated Confluence content for specified users: