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

# Confluence API

> Read, create, update, and search Atlassian Confluence (Cloud) content during ticket resolution

The Confluence API tool gives Neo agents direct access to the Atlassian Confluence Cloud REST API — list spaces, fetch and edit page content, manage attachments, search with CQL, and create new pages on behalf of customers.

> [!NOTE]
>
> Automatically enabled when you configure Confluence permissions in your agent workflow. No manual toggle needed. See the [Confluence integration page](https://docs.neoagent.io/integrations/documentation/confluence.md) for connection setup.

## What It Does

* List spaces (knowledge bases, global, personal)
* Fetch full page content in storage XHTML or Atlassian Document Format (ADF)
* Create, update, and delete pages and blogposts
* Manage attachments on pages and blogposts (upload, delete)
* Add, update, or remove labels on pages and spaces
* Create comments on pages
* Look up users (resolve `@mentions` and author IDs to display names)
* Run CQL (Confluence Query Language) searches across all content the agent can see

## Permission Groups

Each group can be set to **Disabled**, **Read Only**, or **Read/Write**. When set to Read/Write, an additional **Allow Delete** toggle controls whether the agent can issue DELETE requests on that group.

| Permission Group | What It Covers | Atlassian Scopes |
| - | - | - |
| **Pages** | Pages and blogposts — body content, version history, parent/child links, page labels and comments | `read:page:confluence`, `write:page:confluence`, `write:comment:confluence`, `write:label:confluence` |
| **Spaces** | Space metadata and listing | `read:space:confluence`, `write:space:confluence` |
| **Search** | CQL search across pages, blogposts, attachments, and spaces (read-only by API design) | `read:content-details:confluence` |
| **Attachments** | Files attached to pages and blogposts (metadata, download, upload, delete) | `read:attachment:confluence`, `write:attachment:confluence` |
| **Users** | User profiles referenced by content authors and mentions (read-only by API design) | `read:user:confluence` |

## Access Profiles

> [accordion] Read Only
>
> All five groups Read Only. The agent can browse anything the connecting OAuth user has Confluence permission to see — but cannot make changes. The typical setting for documentation-aware ticket-resolution agents.

> [accordion] Documentation Manager
>
> Pages and Attachments **Read/Write**; Spaces, Search, and Users Read Only. The agent can create and update pages and upload attachments — ideal for agents that maintain runbooks and client documentation autonomously — but cannot restructure spaces or delete records.

> [accordion] Full Access
>
> All five groups Read/Write with **Allow Delete** enabled. The agent can create, update, and delete pages, blogposts, comments, labels, and attachments. Whole-space DELETE is still structurally blocked (see Safety Controls).

## Safety Controls

| Control | Behavior |
| - | - |
| **Whole-space DELETE blocked** | Even with Full Access + Allow Delete, the agent cannot delete a Confluence space — orphans every page, blogpost, attachment, and comment inside. Rejected at the permission layer regardless of OAuth scope. |
| **Allow Delete is per-group, opt-in** | Setting a group to Read/Write does not allow deletes by default. The agent can create and update but not delete unless you explicitly enable the per-group Allow Delete toggle. |
| **Reads never trigger approval** | GET requests pass through without technician-in-the-loop checks. Each group has a separate `Require Approval` toggle if you want writes to go through a human first. |
| **Rate-limit handling** | The Confluence client paces itself when Atlassian signals `NearLimit` (response header indicating under 20% of the hourly budget remaining) and retries 429s with the `Retry-After` window. |
| **Response size guard** | Responses larger than 500 KB are rejected with a hint to narrow the query (smaller `limit`, tighter CQL filter, or `body-format=storage` instead of `atlas_doc_format`). |

## How to Configure

**1. Connect Confluence**

[Connect Confluence](https://docs.neoagent.io/integrations/documentation/confluence.md) from the Neo dashboard. The flow is a single click + Atlassian consent — no developer app to register.

**2. Configure permissions on the agent**

On the agent's **Tools & Settings** tab, click **Documentation** and expand the **Confluence** block. Pick one of its **Presets** (Read Only, Documentation Manager, Full Access), which are the access profiles above, or set each permission group yourself.

> [!TIP]
>
> Start with **Read Only** when you just need an agent that surfaces documentation during ticket resolution. Move to **Documentation Manager** when you want the agent to maintain its own runbooks. Only enable **Full Access** + Allow Delete after validating the agent's write behavior on a test workflow first.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.