Confluence
Confluence is Atlassian's team workspace for pages, blog posts and knowledge bases.
ingestr supports Confluence Cloud as a source through the Confluence Cloud REST API.
URI format
confluence://your-domain.atlassian.net?email=<email>&api_token=<api_token>URI parameters:
email: the email address of the Atlassian account (or service account) used to authenticateapi_token: an Atlassian API token for that accountbody_format(optional): include the content body of pages, blog posts and footer comments, asstorage(Confluence's XHTML-based storage format) oratlas_doc_format(Atlassian Document Format JSON). Bodies are left out when not set, since they make up most of the data.cloud_id(optional): your Atlassian site's cloud ID. Only needed for service accounts, and ingestr detects it automatically when it's not setbase_url(optional): send requests to this URL instead of the site, e.g. a proxy or a mock server for testing. The domain can then be left out:confluence://?email=...&api_token=...&base_url=http://localhost:8090
Example usage
Assuming your Confluence site is company.atlassian.net, ingest every page with its body into DuckDB:
ingestr ingest \
--source-uri 'confluence://company.atlassian.net?email=user@company.com&api_token=ATATT3xFfGF0...&body_format=storage' \
--source-table 'pages' \
--dest-uri duckdb:///confluence.duckdb \
--dest-table 'confluence.pages'Load only the pages changed in a window:
ingestr ingest \
--source-uri 'confluence://company.atlassian.net?email=user@company.com&api_token=ATATT3xFfGF0...&body_format=storage' \
--source-table 'pages' \
--dest-uri duckdb:///confluence.duckdb \
--dest-table 'confluence.pages' \
--interval-start '2025-01-01' \
--interval-end '2025-01-31'Authentication
You need the email of an Atlassian account with access to Confluence and an API token for it.
Service accounts
Create a service account in Atlassian Administration under Directory → Service accounts, give it access to Confluence and the spaces you want to load, and create an API token for it with read scopes for Confluence content, spaces, comments, labels and users. Use the service account's email and token in the URI as usual. ingestr detects your site's cloud ID automatically; if that fails, set it with cloud_id. You can find it at https://company.atlassian.net/_edge/tenant_info.
Tables
| Table | PK | Inc Key | Inc Strategy | Details |
|---|---|---|---|---|
spaces | id | - | replace | All spaces the account can see, including archived ones. |
pages | id | lastModifiedAt | merge | Pages in every status (current, archived, trashed, deleted), with their body when body_format is set. |
blogposts | id | lastModifiedAt | merge | Blog posts in every status, with their body when body_format is set. |
page_versions | page_id, number | createdAt | merge | The version history of each page: who changed it, when, and the version message. |
footer_comments | id | lastModifiedAt | merge | Comments at the bottom of pages and blog posts, with their body when body_format is set. |
labels | id | - | replace | All labels defined on the site. |
users | accountId | - | replace | Users of the site, including guests. Some fields may be empty depending on each user's privacy settings. |
lastModifiedAt is the time of the latest version of the page, blog post or comment. Nested objects such as version, body and _links are loaded as JSON columns.
Use these as the --source-table parameter in the ingestr ingest command.
NOTE
Trashing, archiving or restoring content doesn't create a new version, so incremental runs don't pick up those status changes. Run without --interval-start and --interval-end to refresh them: that reads every page and blog post in every status, while any run with an interval, including one with --full-refresh, only sees current content. Label changes on pages are also not tracked by lastModifiedAt.
NOTE
The users table returns at most 10,000 users, a limit of the Confluence user search API.