> For the complete documentation index, see [llms.txt](https://docs.pagerly.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pagerly.io/sre-ai-agent/data-sources/confluence.md).

# Confluence

## What the Agent Can Do

* Search runbooks, documentation, and knowledge base articles
* Find incident response procedures and playbooks
* Get page content for context during investigations

## Setup Instructions

1. Log into [Atlassian API Tokens](https://id.atlassian.com/manage-profile/security/api-tokens)
2. Click **Create API token with scopes**
3. Select **Confluence** as the app
4. Add these scopes: `search:confluence`, `read:content:confluence`, `read:content-details:confluence`, `read:space:confluence`, `read:attachment:confluence`
5. Click **Create token**, then copy the token

## Required Credentials

| Field               | Description                                | Example                           |
| ------------------- | ------------------------------------------ | --------------------------------- |
| **API Token**       | Atlassian API token with Confluence scopes | `ATATT3x...`                      |
| **Atlassian Email** | Email for your Atlassian account           | `you@company.com`                 |
| **Confluence URL**  | Your Confluence URL                        | `https://your-team.atlassian.net` |

## Context Prompt Tips

> *"Runbooks are in the SRE space. Production docs use the PROD label. Our incident response guide is at /wiki/spaces/SRE/pages/123456."*

## Docs

* [Confluence REST API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/)
