# Confluence

> Connect your Confluence account to browse spaces and create, read, and search pages.

App · Documents · 4 actions. Web page: https://docs.lodol.com/docs/integrations/confluence

## Actions

### Create a Confluence page

Create a new page in a Confluence space with a title and body text.

**Inputs**

- Space key (`space_key`, text, required): Key of the Confluence space to create the page in, for example ENG.
- Title (`title`, text, required): Title of the page.
- Content (`content`, text): Body text of the page. Plain text is wrapped into paragraphs.

**Outputs**

- `page` (object): Created page details

**Example output**

```json
{
  "page": {
    "id": "page123456",
    "url": "https://your-domain.atlassian.net/wiki/spaces/ENG/pages/page123456"
  }
}
```

### Get a Confluence page

Look up a Confluence page's title and body content by its ID.

**Inputs**

- Page ID (`page_id`, text, required): ID of the Confluence page to look up.

**Outputs**

- `page` (object): Page details

**Example output**

```json
{
  "page": {
    "content": "<p>example_value</p>",
    "id": "page123456",
    "space_key": "ENG",
    "title": "example_value"
  }
}
```

### List Confluence spaces

List the Confluence spaces your connected account can access.

**Inputs**

- Max results (`max_results`, number): Maximum number of spaces to return, from 1 to 100 (default 25).

**Outputs**

- `spaces` (list): List of Confluence spaces accessible to the authenticated user

**Example output**

```json
{
  "spaces": [
    {
      "id": "space123",
      "key": "ENG",
      "name": "Engineering",
      "type": "global"
    }
  ]
}
```

### Search Confluence pages

Find Confluence pages using a Confluence search query (CQL).

**Inputs**

- Search query (CQL) (`cql`, text, required): What to search for, written as a Confluence query (CQL). For example: space = ENG AND type = page ORDER BY created DESC.
- Max results (`max_results`, number): Maximum number of results to return, from 1 to 100.

**Outputs**

- `pages` (list): Array of Confluence pages matching the search query. Use the id field with get_page to fetch full content

**Example output**

```json
{
  "pages": [
    {
      "id": "page123456",
      "space_key": "ENG",
      "title": "example_value"
    }
  ]
}
```
