Create a Confluence Page

This task creates a new page in a Confluence space. It uses Markdown for the page content, which is automatically converted to Confluence's storage format. You can specify the page title, space, parent page, and more. This task utilizes the Confluence REST API v2.

yaml
type: "io.kestra.plugin.confluence.pages.Create"

Create a basic page in a Confluence space.

yaml
id: "create"
type: "io.kestra.plugin.confluence.pages.Create"
id: create-confluence-page
namespace: company.team

tasks:
  - id: 1
    type: io.kestra.plugin.confluence.pages.Create
    serverUrl: https://your-domain.atlassian.net
    username: [email protected]
    apiToken: {{ secret('CONFLUENCE_API_TOKEwN') }}
    spaceId: 123456
    title: My New Page from Kestra
    markdown: |
    # Kestra-Generated Page
    This page was created automatically from a Kestra flow.
    - List item 1
    - List item 2
Properties

Confluence API Token for authentication.

API token generated in Confluence (Atlassian account) used for authentication.

URL of the Confluence server.

Base URL of the Confluence instance (e.g., https://your-domain.atlassian.net/wiki).

Space ID

Username (email) for authentication.

Confluence account email address used for API authentication.

Embedded Content

Tags the content as embedded, which will cause it to be created in NCS. Default: false

Make Page Private

If true, the page will be private. Only the user who creates the page will have permission to view and edit it. Default: false

Markdown Content to Upload

The Markdown content to publish on the page.

Parent Page ID

The parent content ID of the page. If the 'root-level' query parameter is set to false and a value is not supplied, the space homepage's ID will be used. If the 'root-level' query parameter is set to true, a value cannot be supplied for this parameter.

Create at Root Level

If true, the page will be created at the root level of the space (outside the space homepage tree). A value may not be supplied for the parentId parameter when this is true. Default: false

Page Status

The updated status of the page. Valid values: current, draft.

Page Subtype

The subtype of the page. Provide 'live' to create a live doc, or no subtype to create a regular page. Valid values: live

Page title filter.

Filter the results to pages that exactly match this title.

The API response from Confluence.

Contains the full JSON response from the Confluence API after creating the page.