pages
create
Create a page with storage format body
POST /pages
| Flag | Type | Required | Description |
|---|---|---|---|
--body | string | No | Page body in storage format XML (required) |
--parent-id | string | No | Parent page ID (optional) |
--space-id | string | No | Space ID to create page in (required) |
--title | string | No | Page title (required) |
Example:
cf pages createcreate-property
Create content property for page
Creates a new content property for a page.
Permissions required: Permission to update the page.
POST /pages/{page-id}/properties
| Flag | Type | Required | Description |
|---|---|---|---|
--body | string | No | request body (JSON string, @file, or - for stdin) |
--page-id | string | Yes | The ID of the page to create a property for. |
Example:
cf pages create-property --page-id <page-id>delete
Delete a page (moves to trash)
DELETE /pages/{id}
| Flag | Type | Required | Description |
|---|---|---|---|
--id | string | No | Page ID to delete (required) |
Example:
cf pages deletedelete-property-by-id
Delete content property for page by id
Deletes a content property for a page by its id.
Permissions required: Permission to edit the page.
DELETE /pages/{page-id}/properties/{property-id}
| Flag | Type | Required | Description |
|---|---|---|---|
--page-id | string | Yes | The ID of the page the property belongs to. |
--property-id | string | Yes | The ID of the property to be deleted. |
Example:
cf pages delete-property-by-id --page-id <page-id> --property-id <property-id>get
List pages in a space
GET /pages
| Flag | Type | Required | Description |
|---|---|---|---|
--space-id | string | No | Filter pages by space ID |
Example:
cf pages getget-ancestors
Get all ancestors of page
Returns all ancestors for a given page by ID in top-to-bottom order (that is, the highest ancestor is the first item in the response payload). The number of results is limited by the limit parameter and additional results (if available) will be available by calling this endpoint with the ID of first ancestor in the response payload.
This endpoint returns minimal information about each ancestor. To fetch more details, use a related endpoint, such as Get page by id.
Permissions required: Permission to access the Confluence site ('Can use' global permission).
GET /pages/{id}/ancestors
| Flag | Type | Required | Description |
|---|---|---|---|
--id | string | Yes | The ID of the page. |
--limit | string | No | Maximum number of pages per result to return. If more results exist, call this endpoint with the highest ancestor's ID to fetch the next set of results. |
Example:
cf pages get-ancestors --id <id>get-attachments
Get attachments for page
Returns the attachments of specific page. The number of results is limited by the limit parameter and additional results (if available) will be available through the next URL present in the Link response header.
Permissions required: Permission to view the content of the page and its corresponding space.
GET /pages/{id}/attachments
| Flag | Type | Required | Description |
|---|---|---|---|
--cursor | string | No | Used for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results. |
--filename | string | No | Filters on the file-name of attachments. Only one may be specified. |
--id | string | Yes | The ID of the page for which attachments should be returned. |
--limit | string | No | Maximum number of attachments per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results. |
--mediaType | string | No | Filters on the mediaType of attachments. Only one may be specified. |
--sort | string | No | Used to sort the result by a particular field. |
--status | string | No | Filter the results to attachments based on their status. By default, current and archived are used. |
Example:
cf pages get-attachments --id <id>get-by-id
Get page by ID with storage body
GET /pages/{id}
| Flag | Type | Required | Description |
|---|---|---|---|
--body-format | string | No | Body format (default: storage) |
--id | string | No | Page ID (required) |
Example:
cf pages get-by-idget-child
Get child pages
Returns all child pages for given page id. The number of results is limited by the limit parameter and additional results (if available) will be available through the next URL present in the Link response header.
Permissions required: Permission to access the Confluence site ('Can use' global permission). Only pages that the user has permission to view will be returned.
GET /pages/{id}/children
| Flag | Type | Required | Description |
|---|---|---|---|
--cursor | string | No | Used for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results. |
--id | string | Yes | The ID of the parent page. If you don't know the page ID, use Get pages and filter the results. |
--limit | string | No | Maximum number of pages per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results. |
--sort | string | No | Used to sort the result by a particular field. |
Example:
cf pages get-child --id <id>get-classification-level
Get page classification level
Returns the classification level for a specific page.
Permissions required: 'Permission to access the Confluence site ('Can use' global permission) and permission to view the page. 'Permission to edit the page is required if trying to view classification level for a draft.
GET /pages/{id}/classification-level
| Flag | Type | Required | Description |
|---|---|---|---|
--id | string | Yes | The ID of the page for which classification level should be returned. |
--status | string | No | Status of page from which classification level will fetched. |
Example:
cf pages get-classification-level --id <id>get-content-properties
Get content properties for page
Retrieves Content Properties tied to a specified page.
Permissions required: Permission to view the page.
GET /pages/{page-id}/properties
| Flag | Type | Required | Description |
|---|---|---|---|
--cursor | string | No | Used for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results. |
--key | string | No | Filters the response to return a specific content property with matching key (case sensitive). |
--limit | string | No | Maximum number of attachments per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results. |
--page-id | string | Yes | The ID of the page for which content properties should be returned. |
--sort | string | No | Used to sort the result by a particular field. |
Example:
cf pages get-content-properties --page-id <page-id>get-content-properties-by-id
Get content property for page by id
Retrieves a specific Content Property by ID that is attached to a specified page.
Permissions required: Permission to view the page.
GET /pages/{page-id}/properties/{property-id}
| Flag | Type | Required | Description |
|---|---|---|---|
--page-id | string | Yes | The ID of the page for which content properties should be returned. |
--property-id | string | Yes | The ID of the content property being requested. |
Example:
cf pages get-content-properties-by-id --page-id <page-id> --property-id <property-id>get-custom-content-by-type-in
Get custom content by type in page
Returns all custom content for a given type within a given page. The number of results is limited by the limit parameter and additional results (if available) will be available through the next URL present in the Link response header.
Permissions required: Permission to view the custom content, the container of the custom content (page), and the corresponding space.
GET /pages/{id}/custom-content
| Flag | Type | Required | Description |
|---|---|---|---|
--body-format | string | No | The content format types to be returned in the body field of the response. If available, the representation will be available under a response field of the same name under the body field. |
Note: If the custom content body type is storage, the storage and atlas_doc_format body formats are able to be returned. If the custom content body type is raw, only the raw body format is able to be returned. | | --cursor | string | No | Used for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results. | | --id | string | Yes | The ID of the page for which custom content should be returned. | | --limit | string | No | Maximum number of pages per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results. | | --sort | string | No | Used to sort the result by a particular field. | | --type | string | No | The type of custom content being requested. See: https://developer.atlassian.com/cloud/confluence/custom-content/ for additional details on custom content. |
Example:
cf pages get-custom-content-by-type-in --id <id>get-descendants
Get descendants of page
Returns descendants in the content tree for a given page by ID in top-to-bottom order (that is, the highest descendant is the first item in the response payload). The number of results is limited by the limit parameter and additional results (if available) will be available by calling this endpoint with the cursor in the response payload. There is also a depth parameter specifying depth of descendants to be fetched.
The following types of content will be returned:
- Database
- Embed
- Folder
- Page
- Whiteboard
This endpoint returns minimal information about each descendant. To fetch more details, use a related endpoint based on the content type, such as:
Permissions required: Permission to access the Confluence site ('Can use' global permission). Permission to view the page and its corresponding space
GET /pages/{id}/descendants
| Flag | Type | Required | Description |
|---|---|---|---|
--cursor | string | No | Used for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results. |
--depth | string | No | Maximum depth of descendants to return. If more results are required, use the endpoint corresponding to the content type of the deepest descendant to fetch more descendants. |
--id | string | Yes | The ID of the page. |
--limit | string | No | Maximum number of items per result to return. If more results exist, call the endpoint with the cursor to fetch the next set of results. |
Example:
cf pages get-descendants --id <id>get-direct-children
Get direct children of a page
Returns all children for given page id in the content tree. The number of results is limited by the limit parameter and additional results (if available) will be available through the next URL present in the Link response header.
The following types of content will be returned:
- Database
- Embed
- Folder
- Page
- Whiteboard
This endpoint returns minimal information about each child. To fetch more details, use a related endpoint based on the content type, such as:
Permissions required: Permission to access the Confluence site ('Can use' global permission). Only content that the user has permission to view will be returned.
GET /pages/{id}/direct-children
| Flag | Type | Required | Description |
|---|---|---|---|
--cursor | string | No | Used for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results. |
--id | string | Yes | The ID of the parent page. |
--limit | string | No | Maximum number of items per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results. |
--sort | string | No | Used to sort the result by a particular field. |
Example:
cf pages get-direct-children --id <id>get-footer-comments
Get footer comments for page
Returns the root footer comments of specific page. The number of results is limited by the limit parameter and additional results (if available) will be available through the next URL present in the Link response header.
Permissions required: Permission to view the content of the page and its corresponding space.
GET /pages/{id}/footer-comments
| Flag | Type | Required | Description |
|---|---|---|---|
--body-format | string | No | The content format type to be returned in the body field of the response. If available, the representation will be available under a response field of the same name under the body field. |
--cursor | string | No | Used for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results. |
--id | string | Yes | The ID of the page for which footer comments should be returned. |
--limit | string | No | Maximum number of footer comments per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results. |
--sort | string | No | Used to sort the result by a particular field. |
--status | string | No | Filter the footer comment being retrieved by its status. |
Example:
cf pages get-footer-comments --id <id>get-inline-comments
Get inline comments for page
Returns the root inline comments of specific page. The number of results is limited by the limit parameter and additional results (if available) will be available through the next URL present in the Link response header.
Permissions required: Permission to view the content of the page and its corresponding space.
GET /pages/{id}/inline-comments
| Flag | Type | Required | Description |
|---|---|---|---|
--body-format | string | No | The content format type to be returned in the body field of the response. If available, the representation will be available under a response field of the same name under the body field. |
--cursor | string | No | Used for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results. |
--id | string | Yes | The ID of the page for which inline comments should be returned. |
--limit | string | No | Maximum number of inline comments per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results. |
--resolution-status | string | No | Filter the inline comment being retrieved by its resolution status. |
--sort | string | No | Used to sort the result by a particular field. |
--status | string | No | Filter the inline comment being retrieved by its status. |
Example:
cf pages get-inline-comments --id <id>get-labels
Get labels for page
Returns the labels of specific page. The number of results is limited by the limit parameter and additional results (if available) will be available through the next URL present in the Link response header.
Permissions required: Permission to view the content of the page and its corresponding space. Only labels that the user has permission to view will be returned.
GET /pages/{id}/labels
| Flag | Type | Required | Description |
|---|---|---|---|
--cursor | string | No | Used for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results. |
--id | string | Yes | The ID of the page for which labels should be returned. |
--limit | string | No | Maximum number of labels per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results. |
--prefix | string | No | Filter the results to labels based on their prefix. |
--sort | string | No | Used to sort the result by a particular field. |
Example:
cf pages get-labels --id <id>get-like-count
Get like count for page
Returns the count of likes of specific page.
Permissions required: Permission to view the content of the page and its corresponding space.
GET /pages/{id}/likes/count
| Flag | Type | Required | Description |
|---|---|---|---|
--id | string | Yes | The ID of the page for which like count should be returned. |
Example:
cf pages get-like-count --id <id>get-like-users
Get account IDs of likes for page
Returns the account IDs of likes of specific page.
Permissions required: Permission to view the content of the page and its corresponding space.
GET /pages/{id}/likes/users
| Flag | Type | Required | Description |
|---|---|---|---|
--cursor | string | No | Used for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results. |
--id | string | Yes | The ID of the page for which like count should be returned. |
--limit | string | No | Maximum number of account IDs per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results. |
Example:
cf pages get-like-users --id <id>get-operations
Get permitted operations for page
Returns the permitted operations on specific page.
Permissions required: Permission to view the parent content of the page and its corresponding space.
GET /pages/{id}/operations
| Flag | Type | Required | Description |
|---|---|---|---|
--id | string | Yes | The ID of the page for which operations should be returned. |
Example:
cf pages get-operations --id <id>get-version-details
Get version details for page version
Retrieves version details for the specified page and version number.
Permissions required: Permission to view the page.
GET /pages/{page-id}/versions/{version-number}
| Flag | Type | Required | Description |
|---|---|---|---|
--page-id | string | Yes | The ID of the page for which version details should be returned. |
--version-number | string | Yes | The version number of the page to be returned. |
Example:
cf pages get-version-details --page-id <page-id> --version-number <version-number>get-versions
Get page versions
Returns the versions of specific page.
Permissions required: Permission to view the page and its corresponding space.
GET /pages/{id}/versions
| Flag | Type | Required | Description |
|---|---|---|---|
--body-format | string | No | The content format types to be returned in the body field of the response. If available, the representation will be available under a response field of the same name under the body field. |
--cursor | string | No | Used for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results. |
--id | string | Yes | The ID of the page to be queried for its versions. If you don't know the page ID, use Get pages and filter the results. |
--limit | string | No | Maximum number of versions per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results. |
--sort | string | No | Used to sort the result by a particular field. |
Example:
cf pages get-versions --id <id>post-classification-level
Reset page classification level
Resets the classification level for a specific page for the space default classification level.
Permissions required: 'Permission to access the Confluence site ('Can use' global permission) and permission to view the page.
POST /pages/{id}/classification-level/reset
| Flag | Type | Required | Description |
|---|---|---|---|
--body | string | No | request body (JSON string, @file, or - for stdin) |
--id | string | Yes | The ID of the page for which classification level should be updated. |
Example:
cf pages post-classification-level --id <id>post-redact
Redact Content in a Confluence Page
Redacts sensitive content in a Confluence page by replacing specified text ranges with redaction markers. Each redaction in the response includes a unique UUID for restoration (except code block redactions). The response metadata items maintain the same order as the input redaction pointers, and completely overlapping redactions are merged into a single redaction with one UUID.
Note: This endpoint requires Atlassian Guard Premium.
POST /pages/{id}/redact
| Flag | Type | Required | Description |
|---|---|---|---|
--body | string | No | request body (JSON string, @file, or - for stdin) |
--id | string | Yes | The ID of the page to redact content from. |
Example:
cf pages post-redact --id <id>put-classification-level
Update page classification level
Updates the classification level for a specific page.
Permissions required: 'Permission to access the Confluence site ('Can use' global permission) and permission to edit the page.
PUT /pages/{id}/classification-level
| Flag | Type | Required | Description |
|---|---|---|---|
--body | string | No | request body (JSON string, @file, or - for stdin) |
--id | string | Yes | The ID of the page for which classification level should be updated. |
Example:
cf pages put-classification-level --id <id>update
Update a page with automatic version increment
PUT /pages/{id}
| Flag | Type | Required | Description |
|---|---|---|---|
--body | string | No | Page body in storage format XML (required) |
--id | string | No | Page ID to update (required) |
--title | string | No | Page title (required) |
Example:
cf pages updateupdate-property-by-id
Update content property for page by id
Update a content property for a page by its id.
Permissions required: Permission to edit the page.
PUT /pages/{page-id}/properties/{property-id}
| Flag | Type | Required | Description |
|---|---|---|---|
--body | string | No | request body (JSON string, @file, or - for stdin) |
--page-id | string | Yes | The ID of the page the property belongs to. |
--property-id | string | Yes | The ID of the property to be updated. |
Example:
cf pages update-property-by-id --page-id <page-id> --property-id <property-id>update-title
Update page title
Updates the title of a specified page.
Permissions required: Permission to view the page and its corresponding space. Permission to update pages in the space.
PUT /pages/{id}/title
| Flag | Type | Required | Description |
|---|---|---|---|
--body | string | No | request body (JSON string, @file, or - for stdin) |
--id | string | Yes | The ID of the page to be updated. If you don't know the page ID, use Get Pages and filter the results |
Example:
cf pages update-title --id <id>