Confluence

Confluence Connector #

Register Confluence Connector #

curl -XPUT "http://localhost:9000/connector/confluence?replace=true" -d '{
  "name" : "Confluence wiki Connector",
  "description" : "Fetch Confluence Wiki pages and blogposts.",
  "category" : "website",
  "icon" : "/assets/icons/connector/confluence/icon.png",
  "tags" : [
    "wiki",
    "storage",
    "docs",
    "web"
  ],
  "url" : "http://coco.rs/connectors/confluence",
  "assets" : {
    "icons" : {
      "default" : "/assets/icons/connector/confluence/icon.png"
    }
}'

Use confluence as a unique identifier, as it is a builtin connector.

Update coco-server’s config #

Below is an example configuration for enabling the Confluence Connector in coco-server:

connector:
  confluence:
    enabled: true
    queue:
      name: indexing_documents
    interval: 5m

Explanation of Config Parameters #

FieldTypeDescription
enabledbooleanEnables or disables the confluence connector. Set totrue to activate it.
intervalstringSpecifies the time interval (e.g.,5m) at which the connector will check for updates.
queue.namestringDefines the name of the queue where indexing tasks will be added.

Use the Confluence Connector #

The Confluence Connector allows you to index data from your Confluence wiki into your system. Follow these steps to set it up:

Configure Confluence Client #

To configure your Confluence connection, you need to provide several key parameters. The authentication method differs slightly between Confluence Cloud and Confluence Data Center/Server.

For Confluence Cloud #

  • endpoint: The URL of your Confluence Cloud instance (e.g., https://your-company.atlassian.net/wiki).
  • username: The email address associated with your Atlassian account.
  • token: The API Token you generate from your Atlassian account settings.

For Confluence Data Center and Server #

  • endpoint: The URL of your self-hosted Confluence instance (e.g., https://confluence.your-domain.com).
  • token: The Personal Access Token (PAT) generated from your user profile in Confluence. The username field is not required when using a PAT.

Common Parameters (for both versions) #

  • space: The key of the Confluence space you want to index (e.g., for a space named “Documentation”, the key might be “DOCS”).
  • enable_blogposts: (Optional) A boolean (true or false) to enable indexing of blog posts within the space. Defaults to false.
  • enable_attachments: (Optional) A boolean (true or false) to enable indexing of attachments (like PDFs, Word documents) within the space. Defaults to false.

Example Request #

Here is an example request to configure the Confluence Connector:

curl -H 'Content-Type: application/json' -XPOST "http://localhost:9000/datasource/" -d '
{
  "name":"My Confluence Wiki",
  "type":"connector",
  "connector":{
     "id":"confluence",
     "config":{
       "endpoint": "https://your-company.atlassian.net/wiki",
       "username": "your-email@example.com",
       "token": "your-confluence-api-token",
       "space": "DOCS",
       "enable_blogposts": false,
       "enable_attachments": false
    }
  }
}'

Supported Config Parameters for confluence Connector #

Below are the configuration parameters supported by the confluence Connector:

FieldTypeDescription
endpointstringThe base URL of your Confluence instance.
usernamestringYour Confluence username (email for Cloud). Not required for Data Center with PAT.
tokenstringYour Confluence API Token (Cloud) or Personal Access Token (Data Center).
spacestringThe key of the Confluence space to index.
enable_blogpostsboolOptional. Set to true to index blog posts within the space. Defaults to false.
enable_attachmentsboolOptional. Set to true to index attachments within the space. Defaults to false.
Edit Edit this page