Confluence integration

Wiki/docs: pages, spaces, blogs, attachments, comments, search (CQL)

Help CentreConnectors

Overview

Atlassian Confluence is the team wiki / knowledge platform – spaces, pages, blog posts. The Automize Confluence connector covers page CRUD, space listing, search, attachments, and comments via the Confluence Cloud REST API.

  • Regions: Confluence Cloud is global – talks to yourcompany.atlassian.net. Server / Data Center editions use a different REST API surface (v1 vs v2) and would need separate configuration. The current connector targets Cloud.
  • Plans: Free, Standard, Premium, Enterprise – all expose the REST API. Read-only macros (Excel etc.) work everywhere; advanced page macros need Premium/Enterprise.

Setting up the connection

Auth type: HTTP Basic.

  1. Sign in to id.atlassian.com → Security → API tokens.
  2. Create an API token. Name it (e.g. Automize). Copy it.
  3. In Automize, open Settings → Connectors → Confluence → Add connection. Enter your atlassian.net sub-domain, username = your Atlassian email, password = the API token.

Find your credentials at https://id.atlassian.com/manage-profile/security/api-tokens.


Rate limits

Confluence Cloud enforces ~5,000 req/hour per user. The connector retries 429 with exponential backoff. Heavy reads should paginate via limit + start (max limit=200).


Data model

Confluence's primitives:

    Space ─┬─ Pages ─┬─ Child pages (recursive tree)
           │         ├─ Comments
           │         └─ Attachments
           └─ Blog posts

Pages have content in 'storage' format (Confluence XHTML) – different
from Markdown. Use Confluence's converter or the storage format
reference when authoring.

Available operations

9 operations available. Click any row to jump to its detail.

OperationCategoryWhat it does
Create PageGeneralCreate a new page
Delete PageGeneralDelete a page
Get PageGeneralGet page details
Get SpaceGeneralGet space details
List AttachmentsGeneralList attachments on a page
List PagesGeneralList pages in a space
List SpacesGeneralList all spaces
SearchGeneralSearch content using CQL
Update PageGeneralUpdate a page

Operations

Create Page

Create a new page

ParameterRequiredTypeDescription
Spaceid spaceIdYestext
Status statusYestext
Title titleYestext
Body bodyYestextarea

Tips

  • space_key + title + body (in storage format).
  • parent_id (optional) makes it a child page in the space tree.

Errors

  • A page with this title already exists – Page titles must be unique within a space. Append a suffix or update existing.

Delete Page

Delete a page

ParameterRequiredTypeDescription
Page Id page_idYestext

Tips

  • Soft-deletes (moves to trash). Restorable from space admin → trash.

Get Page

Get page details

ParameterRequiredTypeDescription
Page Id page_idYestext

Tips

  • page_id (numeric). expand=body.storage,version,space,ancestors to fold in nested data.

Get Space

Get space details

ParameterRequiredTypeDescription
Space Id space_idYestext

List Attachments

List attachments on a page

ParameterRequiredTypeDescription
Page Id page_idYestext

Tips

  • Attachments on a page. Returns metadata; use Download Attachment (separate endpoint) for bytes.

List Pages

List pages in a space

No input parameters.

Tips

  • Lists pages in a space. Filter by space_key + parent_id.

List Spaces

List all spaces

No input parameters.

Tips

  • Returns all spaces visible to the user.
  • Filter by type (global, personal). Paginate via limit + start.

Search content using CQL

No input parameters.

Tips

  • cql: Confluence Query Language (e.g. 'space = MYSPACE AND type = page AND text ~ "design doc"').
  • Used by the Confluence search bar.

Update Page

Update a page

ParameterRequiredTypeDescription
Page Id page_idYestext
Id idYestext
Status statusYestext
Title titleYestext
Body bodyYestextarea
Version versionYestext

Tips

  • PUT-style. MUST include the current version number + 1 – Confluence uses optimistic locking.
  • Get current version from Get Page → version.number, then send version: {number: current+1}.

Errors

  • Cannot upgrade page from version X to Y – Stale version number. Get the page again, increment, retry.

FAQ

Storage format vs Markdown vs Wiki – which?
Confluence storage format is XHTML with custom macros (e.g. <ac:structured-macro ac:name='code'>). Markdown isn't natively supported via API. Use Atlassian's Storage Format reference or convert Markdown → storage upstream.
Why does Update Page fail with 'cannot upgrade version'?
You sent an outdated version number. Confluence uses optimistic locking. Always Get Page first to read the current version, then increment + send.
Server / DC vs Cloud – same connector?
This targets Cloud (REST API v1/v2 via atlassian.net). Server/DC have a different REST API (different paths). Use a separate connection / connector for Server/DC.
How do I publish a draft vs live page?
Create Page defaults to live (status=current). For drafts, pass status=draft. Draft pages don't appear in space navigation until published.

Related connectors

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.