> ## Documentation Index
> Fetch the complete documentation index at: https://onecli.sh/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Confluence: Wiki & Docs for AI Agents

> Search, read, and create pages in Confluence spaces. Agents can reference internal documentation or publish content automatically.

## Overview

OneCLI connects AI agents to Confluence through Atlassian's OAuth flow. Agents can search your wiki, read page content, and create or update pages. The gateway injects OAuth credentials into requests to the Confluence REST API automatically.

This is useful for agents that need to look up internal documentation, publish meeting notes, or maintain technical docs alongside code changes.

## Setup

<Steps>
  <Step title="Go to Connections">
    Open the OneCLI dashboard and navigate to **Connections** > **Confluence**.
  </Step>

  <Step title="Authorize">
    Click **Connect Confluence**. You'll be redirected to Atlassian to authorize OneCLI. Select the Confluence site to connect and click **Accept**.
  </Step>
</Steps>

## What agents can do

* Search across all spaces using CQL (Confluence Query Language) with filters for space, type, label, and contributor
* Read the full content of a page (text, tables, macros, attachments)
* Create new pages in a specified space with formatted content
* Update existing page content
* Add and read comments on pages
* List spaces and their pages
* Read page metadata (author, last modified, version, labels)
* Add and remove labels on pages
* Upload and download attachments
* Read and manage page hierarchies (parent/child relationships)

## Controlling access

Access is per agent: [grant](/docs/guides/agent-access) the connection to each agent that needs it, choosing per tool what runs freely, what needs human approval, and what stays blocked — a read-only agent is a single grant. Organization [rules](/docs/guides/rules) add guardrails on top, like rate limits and blanket blocks. Everything is checked before credential injection, so a blocked request never reaches Confluence.
