# Connect Confluence Cloud

Choose shared spaces and let agents discover and read their documents.

Canonical page: https://ontlgy.io/docs/sources/confluence/

ontlgy supports one Confluence Cloud site per installation. Confluence Data Center is outside this release.

## Choose the audience before the spaces

All installation key holders can discover eligible pages from selected spaces. This is not a mirror of each person's Confluence permissions. Use a dedicated read-only Atlassian account with access only to the intended content. Pages with view restrictions, including inherited restrictions, are excluded.

## Connect

1. Create an API token for the dedicated account.
2. Sign in to ontlgy as an administrator and open **Documents**.
3. Enter the site hostname, account email and token; select **Check and connect**.
4. Open **Choose spaces**, select the spaces and choose **Index selected spaces**. Personal spaces are hidden until requested.
5. Watch indexed, restricted and failed counts. Keep the worker running.
6. Open **Search documents**, or use [the agent document workflow](https://ontlgy.io/docs/guides/team-documents/).

## What is available

The index stores bounded facts such as titles, ancestry, labels, dates, heading outlines, short stubs and pointers. It does not persist page bodies. Optional [AI enrichment](https://ontlgy.io/docs/operate/ai-providers/) adds grounded discovery records. Authenticated `doc_read` fetches bounded live content when needed.

Comments, attachments, whiteboards, databases, drafts, archived/trashed pages and macro execution are outside this release. Search can miss content that appears only in an unindexed body.

## Sync and restrictions

The normal poll interval is 15 minutes; daily reconciliation checks the full selected scope. Use **Sync now** for a reconcile. Restriction changes on idle pages can remain reflected in stored discovery for up to 24 hours at the default schedule; live reads recheck eligibility before returning content.

An unknown permission result does not authorize a read. Confirmed restrictions remove the page and indexed descendants. Large apparent removals may trigger a guard that asks the operator to investigate instead of treating a partial API listing as deletion.

## Disconnect or repair

- **AUTH_EXPIRED:** reconnect with a valid token.
- **FAILED:** inspect the reported error; retries can recover transient failures.
- **Stopping:** deselection waits for in-flight work and cleanup. Leave the worker running and retry if the UI asks.
- **Deselect/disconnect:** removes ontlgy's indexed data for that scope. It does not modify Confluence pages.

See [Troubleshooting](https://ontlgy.io/docs/reference/troubleshooting/) for shared connection and worker checks.
