Documentation
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.
| Content | What is kept |
|---|---|
| Pages | Title, page URL and body of each page of the space |
| Hierarchy | Breadcrumb 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.
Create an API token
id.atlassian.com/manage-profile/security/api-tokens → Create API token. On Server, use a personal access token instead.
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.
Pick the flavour
Cloud authenticates with email + token. Server authenticates with the token alone: choosing the wrong one answers 401.
Connect
The connector walks the space page by page; progress shows on the source row.
Configuration options
| Field | Description | Required |
|---|---|---|
| Base URL | `https://company.atlassian.net` for Cloud, your own URL for Server | Yes |
| Space | Space key to index, e.g. `DOC` | Yes |
| Account the token belongs to. Cloud only | No | |
| Token | API token (Cloud) or personal access token (Server) | Yes |
| Flavour | `cloud` or `server`. Decides how the request is authenticated | No |
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
The token is expired, or the flavour is wrong. A Server instance with `cloud` selected sends a Bearer the server does not accept.
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.
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.
