All connectors

Documentation

Confluence

Confluence Connector

Index the pages of a Confluence space, with their titles and their hierarchy.

Prerequisites

  • A Confluence Cloud or Server instance
  • An account that can read the target space
  • An API token (Cloud) or a personal access token (Server)

Data ingested

When you connect Confluence, the following content becomes searchable. Every answer that uses it cites it.

ContentWhat is kept
PagesTitle, page URL and body of each page of the space
HierarchyBreadcrumb path, kept so an answer can say where the page sits

Setup

Configuration happens in the dashboard, under Integrations. No API call is needed for a normal setup.

1

Create an API token

id.atlassian.com/manage-profile/security/api-tokens → Create API token. On Server, use a personal access token instead.

2

Enter the instance and the space

Integrations → Add source → Confluence: the base URL in the form `https://company.atlassian.net`, the email of the account, and the space key.

3

Pick the flavour

Cloud authenticates with email + token. Server authenticates with the token alone: choosing the wrong one answers 401.

4

Connect

The connector walks the space page by page; progress shows on the source row.

Where the credential goes
Email and token go in the form. The token is stored server-side and never returned by the API.

Configuration options

FieldDescriptionRequired
Base URL`https://company.atlassian.net` for Cloud, your own URL for ServerYes
SpaceSpace key to index, e.g. `DOC`Yes
EmailAccount the token belongs to. Cloud onlyNo
TokenAPI token (Cloud) or personal access token (Server)Yes
Flavour`cloud` or `server`. Decides how the request is authenticatedNo

Best practices

  • •One space per connector. A space key is short and easy to confuse: check it against the URL of the space, `…/spaces/DOC`.
  • •Confluence macros are dropped: they are rendered by JavaScript in the browser, and the API returns only the raw page. A page that is mostly macros arrives nearly empty.

Troubleshooting

401 Unauthorized

The token is expired, or the flavour is wrong. A Server instance with `cloud` selected sends a Bearer the server does not accept.

Pages arrive almost empty

The page content lives in macros, which are not part of the raw API response. Copy the text out of the macro, or accept that the page contributes little.

Space not found

The key is the short identifier, not the space name. Read it from the space URL.

Next steps

Once the source is connected and indexed, ask a question from the chat and check that the answer cites this source. A source that never appears in a citation is usually a source with nothing indexed: see Troubleshooting above.