Skip to content

Confluence connects with OAuth 2.0 through Truto's Atlassian app or your own, or with an Atlassian service account's OAuth 2.0 credential.

Install the Confluence integration

Install Confluence from Available integrations in each environment you connect accounts from.

Use your own Confluence OAuth app

Truto connects Confluence accounts through its own OAuth app, so this step is optional. To show your own app on the consent screen instead:

  1. Create an OAuth 2.0 integration in the Atlassian developer console and add https://api.truto.one/connect/confluence/callback as its redirect URL. If you use a redirect URL on your own domain, add that URL instead.
  2. Enter the app's Client ID and Client Secret on the installed Confluence integration. See Overriding OAuth credentials.

By default, Truto asks Confluence for these scopes. The Connect UI lists them under Permissions required, and you can change them when you override the OAuth credentials.

  • offline_access
  • read:confluence-user
  • read:confluence-groups
  • read:content-details:confluence
  • read:audit-log:confluence
  • read:page:confluence
  • read:content:confluence
  • read:space:confluence
  • write:confluence-groups
  • read:label:confluence
  • read:space.permission:confluence

Enable the same scopes on your app. If your app allows fewer, change the list under Use your own OAuth settings → Scopes on the installed integration's Configuration tab to match.

Connect a Confluence account

Info

The User Directory Activities API resource only works on Confluence's Standard and Premium plans.

  1. In Integrated Accounts, click Connect Account. Click Connect Account

  2. Enter a Tenant ID (your customer's ID; Truto creates the tenant if it is new), or pick one under Existing tenant (optional). Check the Environment and the Region (where Truto places the account; Western North America by default). To open the link straight on Confluence, pick it under Advanced settings → Integration (optional). Click Get connection link. Get connection link

  3. Click the open-in-new-tab button, or click Copy and send the link to your customer so they connect their own Confluence account. The link works for 7 days, until an account is connected with it. Share connection link

  4. Click Get Started if it shows, then select Confluence. Select Confluence

  5. Choose how to connect:

    • OAuth 2.0: log in to your Confluence account and allow access to Truto.
    • OAuth 2.0 Client Credentials: enter the Client ID and Client Secret of an Atlassian service account's OAuth 2.0 credential (created by an organization admin under Directory → Service accounts in Atlassian Administration). Click Connect.

    If your Atlassian account can reach more than one site, pick the Confluence site to connect. One integrated account connects one site; connect again for each other site.

  6. Close the tab when you see Connection successful. The new account appears under Integrated Accounts. Click its Account ID to see its details and make API calls.

Receive webhooks

Truto turns Confluence page events into unified record:* events on knowledge-base/pages. Truto doesn't check a signature on Confluence webhooks, so there is no secret to set.

  1. Install the Knowledge Base Unified API in the environment. Truto turns Confluence events into record:* events only through it; without it, events are dropped.
  2. Subscribe a Truto webhook to record:created and record:updated, or all. See Creating a webhook.
  3. Register one Confluence webhook per event, with the event name in the URL's type parameter:
https://api.truto.one/integrated-account-webhook/<integrated_account_id>?type=page_created
https://api.truto.one/integrated-account-webhook/<integrated_account_id>?type=page_updated
Confluence event Truto event
page_created record:created on knowledge-base/pages
page_updated record:updated on knowledge-base/pages

See Receiving vendor webhooks.