confluence-atlassian

Full-featured Confluence Cloud REST API v2 skill. Manage pages, spaces, blogposts, attachments, comments, labels, and more via direct Atlassian API calls. Use when managing Confluence content, creating/updating pages, working with spaces, or interacting with Confluence via API. Requires Atlassian email and API token for authentication.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "confluence-atlassian" with this command: npx skills add jeffersonling1217-png/confluence-atlassian

Confluence REST API v2 Skill

Interact with Atlassian Confluence Cloud using the REST API v2. This skill enables reading, creating, updating, and deleting Confluence content including pages, blog posts, attachments, comments, spaces, labels, and more.

Authentication

Basic Auth (Email + API Token)

Required Environment Variables:

CONFLUENCE_EMAIL=your_email@example.com
CONFLUENCE_API_TOKEN=your_api_token
CONFLUENCE_DOMAIN=your_domain  # e.g. "yourcompany" for yourcompany.atlassian.net

Base URL

https://$CONFLUENCE_DOMAIN.atlassian.net/wiki/api/v2

Generate API Token

  1. Go to https://id.atlassian.com/manage-profile/security/api-tokens
  2. Click "Create API token"
  3. Label it (e.g., "nanobot")
  4. Copy the token

curl Authentication

--user "$CONFLUENCE_EMAIL:$CONFLUENCE_API_TOKEN"

curl Authentication Header:

-H "Authorization: Basic $(echo -n '$CONFLUENCE_EMAIL:$CONFLUENCE_API_TOKEN' | base64)"

Generate Base64 Auth String

# Linux/Mac
echo -n "$CONFLUENCE_EMAIL:$CONFLUENCE_API_TOKEN" | base64

# Windows PowerShell
[Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes("$CONFLUENCE_EMAIL:$CONFLUENCE_API_TOKEN"))

Rate Limiting

  • If you encounter HTTP 429 (Too Many Requests), wait 5-10 seconds and retry automatically
  • Maximum 3 retries with exponential backoff

Common Headers

-H "Accept: application/json"
-H "Content-Type: application/json"
-H "Authorization: Basic <base64_encoded_auth>"

API Endpoints Reference

Total: 100+ API Endpoints across 29 API Groups


1. Admin Key (3 endpoints)

MethodEndpointDescription
GET/admin-keyGet Admin Key status
POST/admin-keyEnable Admin Key
DELETE/admin-keyDisable Admin Key

Get Admin Key:

curl -X GET "https://$CONFLUENCE_DOMAIN.atlassian.net/wiki/api/v2/admin-key" \
  -H "Authorization: Basic <base64_auth>"

Enable Admin Key (10 min default):

curl -X POST "https://$CONFLUENCE_DOMAIN.atlassian.net/wiki/api/v2/admin-key" \
  -H "Authorization: Basic <base64_auth>" \
  -H "Content-Type: application/json" \
  -d '{"durationInMinutes": 10}'

2. Attachment (8 endpoints)

MethodEndpointDescription
GET/attachmentsGet all attachments
GET/attachments/{id}Get attachment by ID
DELETE/attachments/{id}Delete attachment
GET/attachments/{id}/labelsGet labels for attachment
GET/attachments/{id}/operationsGet permitted operations
GET/attachments/{id}/versionsGet attachment versions
GET/attachments/{id}/versions/{version-number}Get version details
GET/attachments/{id}/footer-commentsGet attachment comments

Get All Attachments:

curl -X GET "https://$CONFLUENCE_DOMAIN.atlassian.net/wiki/api/v2/attachments?limit=25" \
  -H "Authorization: Basic <base64_auth>"

Get Attachment by ID:

curl -X GET "https://$CONFLUENCE_DOMAIN.atlassian.net/wiki/api/v2/attachments/att123456" \
  -H "Authorization: Basic <base64_auth>"

Delete Attachment (move to trash):

curl -X DELETE "https://$CONFLUENCE_DOMAIN.atlassian.net/wiki/api/v2/attachments/att123456" \
  -H "Authorization: Basic <base64_auth>"

Purge (permanently delete) trashed attachment:

curl -X DELETE "https://$CONFLUENCE_DOMAIN.atlassian.net/wiki/api/v2/attachments/att123456?purge=true" \
  -H "Authorization: Basic <base64_auth>"

3. Blog Post (15 endpoints)

MethodEndpointDescription
GET/blogpostsGet all blog posts
POST/blogpostsCreate blog post
GET/blogposts/{id}Get blog post by ID
PUT/blogposts/{id}Update blog post
DELETE/blogposts/{id}Delete blog post
GET/blogposts/{id}/attachmentsGet attachments
GET/blogposts/{id}/custom-contentGet custom content
GET/blogposts/{id}/labelsGet labels
GET/blogposts/{id}/likes/countGet like count
GET/blogposts/{id}/likes/usersGet users who liked
GET/blogposts/{id}/operationsGet operations
GET/blogposts/{id}/versionsGet versions
GET/blogposts/{id}/versions/{version-number}Get version details
GET/blogposts/{id}/footer-commentsGet footer comments
GET/blogposts/{id}/inline-commentsGet inline comments

Get All Blog Posts:

curl -X GET "https://$CONFLUENCE_DOMAIN.atlassian.net/wiki/api/v2/blogposts?limit=25&space-id=123" \
  -H "Authorization: Basic <base64_auth>"

Create Blog Post:

curl -X POST "https://$CONFLUENCE_DOMAIN.atlassian.net/wiki/api/v2/blogposts" \
  -H "Authorization: Basic <base64_auth>" \
  -H "Content-Type: application/json" \
  -d '{
    "spaceId": "SPACE_KEY",
    "title": "My Blog Post",
    "body": {
      "representation": "storage",
      "value": "<p>Blog post content here</p>"
    }
  }'

Get Blog Post with Body:

curl -X GET "https://$CONFLUENCE_DOMAIN.atlassian.net/wiki/api/v2/blogposts/123?body-format=storage" \
  -H "Authorization: Basic <base64_auth>"

4. Comment (12 endpoints)

MethodEndpointDescription
GET/footer-commentsGet all footer comments
POST/footer-commentsCreate footer comment
GET/footer-comments/{comment-id}Get footer comment
PUT/footer-comments/{comment-id}Update footer comment
DELETE/footer-comments/{comment-id}Delete footer comment
GET/footer-comments/{id}/childrenGet child comments
GET/inline-commentsGet all inline comments
POST/inline-commentsCreate inline comment
GET/inline-comments/{comment-id}Get inline comment
PUT/inline-comments/{comment-id}Update inline comment
DELETE/inline-comments/{comment-id}Delete inline comment
GET/inline-comments/{id}/childrenGet child inline comments

Create Footer Comment on Page:

curl -X POST "https://$CONFLUENCE_DOMAIN.atlassian.net/wiki/api/v2/footer-comments" \
  -H "Authorization: Basic <base64_auth>" \
  -H "Content-Type: application/json" \
  -d '{
    "pageId": "123456",
    "body": {
      "representation": "storage",
      "value": "<p>Comment content</p>"
    }
  }'

Create Inline Comment:

curl -X POST "https://$CONFLUENCE_DOMAIN.atlassian.net/wiki/api/v2/inline-comments" \
  -H "Authorization: Basic <base64_auth>" \
  -H "Content-Type: application/json" \
  -d '{
    "pageId": "123456",
    "body": {
      "representation": "storage",
      "value": "<p>Inline comment</p>"
    },
    "inlineCommentProperties": {
      "textSelection": "selected text",
      "textSelectionMatchCount": 1,
      "textSelectionMatchIndex": 0
    }
  }'

Resolve Inline Comment:

curl -X PUT "https://$CONFLUENCE_DOMAIN.atlassian.net/wiki/api/v2/inline-comments/123" \
  -H "Authorization: Basic <base64_auth>" \
  -H "Content-Type: application/json" \
  -d '{
    "version": {"number": 2},
    "resolved": true
  }'

5. Content Properties (40 endpoints)

For: Attachments, Blog Posts, Pages, Custom Content, Whiteboards, Databases, Folders, Comments, Smart Links

MethodEndpoint PatternDescription
GET/{type}/{id}/propertiesGet all properties
POST/{type}/{id}/propertiesCreate property
GET/{type}/{id}/properties/{property-id}Get property
PUT/{type}/{id}/properties/{property-id}Update property
DELETE/{type}/{id}/properties/{property-id}Delete property

Get Page Properties:

curl -X GET "https://$CONFLUENCE_DOMAIN.atlassian.net/wiki/api/v2/pages/123456/properties" \
  -H "Authorization: Basic <base64_auth>"

Create Page Property:

curl -X POST "https://$CONFLUENCE_DOMAIN.atlassian.net/wiki/api/v2/pages/123456/properties" \
  -H "Authorization: Basic <base64_auth>" \
  -H "Content-Type: application/json" \
  -d '{
    "key": "custom-key",
    "value": {"nested": "value"}
  }'

Update Page Property:

curl -X PUT "https://$CONFLUENCE_DOMAIN.atlassian.net/wiki/api/v2/pages/123456/properties/789" \
  -H "Authorization: Basic <base64_auth>" \
  -H "Content-Type: application/json" \
  -d '{
    "key": "custom-key",
    "value": {"updated": "value"},
    "version": {"number": 2}
  }'

6. Label (14 endpoints)

MethodEndpointDescription
GET/labelsGet all labels
GET/labels/{id}/attachmentsGet attachments with label
GET/labels/{id}/blogpostsGet blog posts with label
GET/labels/{id}/pagesGet pages with label
GET/attachments/{id}/labelsGet attachment labels
GET/blogposts/{id}/labelsGet blog post labels
GET/custom-content/{id}/labelsGet custom content labels
GET/pages/{id}/labelsGet page labels
GET/spaces/{id}/labelsGet space labels
GET/spaces/{id}/content/labelsGet space content labels

Get Page Labels:

curl -X GET "https://$CONFLUENCE_DOMAIN.atlassian.net/wiki/api/v2/pages/123456/labels" \
  -H "Authorization: Basic <base64_auth>"

7. Page (14 endpoints)

MethodEndpointDescription
GET/pagesGet all pages
POST/pagesCreate page
GET/pages/{id}Get page by ID
PUT/pages/{id}Update page
DELETE/pages/{id}Delete page
PUT/pages/{id}/titleUpdate page title
GET/pages/{id}/attachmentsGet attachments
GET/pages/{id}/custom-contentGet custom content
GET/pages/{id}/labelsGet labels
GET/pages/{id}/operationsGet operations
GET/pages/{id}/versionsGet versions
GET/pages/{id}/versions/{version-number}Get version details
GET/pages/{id}/footer-commentsGet footer comments
GET/pages/{id}/inline-commentsGet inline comments

Get All Pages in Space:

curl -X GET "https://$CONFLUENCE_DOMAIN.atlassian.net/wiki/api/v2/pages?space-id=123&limit=50" \
  -H "Authorization: Basic <base64_auth>"

Get Page with Body:

curl -X GET "https://$CONFLUENCE_DOMAIN.atlassian.net/wiki/api/v2/pages/123456?body-format=storage" \
  -H "Authorization: Basic <base64_auth>"

Create Page:

curl -X POST "https://$CONFLUENCE_DOMAIN.atlassian.net/wiki/api/v2/pages" \
  -H "Authorization: Basic <base64_auth>" \
  -H "Content-Type: application/json" \
  -d '{
    "spaceId": "SPACE_KEY",
    "title": "My New Page",
    "parentId": "123456",
    "body": {
      "representation": "storage",
      "value": "<p>Page content in storage format</p>"
    }
  }'

Update Page:

curl -X PUT "https://$CONFLUENCE_DOMAIN.atlassian.net/wiki/api/v2/pages/123456" \
  -H "Authorization: Basic <base64_auth>" \
  -H "Content-Type: application/json" \
  -d '{
    "id": "123456",
    "status": "current",
    "title": "Updated Page Title",
    "body": {
      "representation": "storage",
      "value": "<p>Updated content</p>"
    },
    "version": {
      "number": 5,
      "message": "Updated page content"
    }
  }'

Delete Page (move to trash):

curl -X DELETE "https://$CONFLUENCE_DOMAIN.atlassian.net/wiki/api/v2/pages/123456" \
  -H "Authorization: Basic <base64_auth>"

8. Space (22 endpoints)

MethodEndpointDescription
GET/spacesGet all spaces
POST/spacesCreate space
GET/spaces/{id}Get space by ID
PUT/spaces/{id}Update space
DELETE/spaces/{id}Delete space
GET/spaces/{id}/pagesGet space pages
GET/spaces/{id}/pages/searchSearch pages in space
GET/spaces/{id}/blogpostsGet space blog posts
GET/spaces/{id}/contentGet space content
GET/spaces/{id}/content/typesGet content types
GET/spaces/{id}/labelsGet space labels
GET/spaces/{id}/content/labelsGet space content labels
GET/spaces/{id}/operationsGet space operations
GET/spaces/{id}/permissionsGet space permissions
GET/spaces/{id}/propertiesGet space properties
POST/spaces/{id}/propertiesCreate space property
GET/spaces/{id}/properties/{property-id}Get space property
PUT/spaces/{id}/properties/{property-id}Update space property
DELETE/spaces/{id}/properties/{property-id}Delete space property
GET/spaces/{id}/iconsGet space icons
POST/spaces/{id}/iconsSet space icon
GET/spaces/{id}/lookupsLookup space by key

Get All Spaces:

curl -X GET "https://$CONFLUENCE_DOMAIN.atlassian.net/wiki/api/v2/spaces?limit=50" \
  -H "Authorization: Basic <base64_auth>"

Get Space by Key:

curl -X GET "https://$CONFLUENCE_DOMAIN.atlassian.net/wiki/api/v2/spaces?keys=SPACE_KEY" \
  -H "Authorization: Basic <base64_auth>"

Create Space:

curl -X POST "https://$CONFLUENCE_DOMAIN.atlassian.net/wiki/api/v2/spaces" \
  -H "Authorization: Basic <base64_auth>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "My New Space",
    "key": "MYSpace",
    "description": {
      "plain": {
        "value": "Space description"
      }
    }
  }'

9. User (9 endpoints)

MethodEndpointDescription
GET/users/meGet current user
GET/users/{id}Get user by ID
GET/users/bulkGet multiple users
POST/users/bulkBulk get users by emails
GET/user/access/check-access-by-emailCheck user access by email
POST/user/access/check-access-by-emailCheck user access
GET/user/access/invite-by-emailGet user invite by email
POST/user/access/invite-by-emailInvite user by email
POST/user/access/batch-invite-by-emailBatch invite users

Get Current User:

curl -X GET "https://$CONFLUENCE_DOMAIN.atlassian.net/wiki/api/v2/users/me" \
  -H "Authorization: Basic <base64_auth>"

Get User by ID:

curl -X GET "https://$CONFLUENCE_DOMAIN.atlassian.net/wiki/api/v2/users/123456" \
  -H "Authorization: Basic <base64_auth>"

Bulk Get Users:

curl -X GET "https://$CONFLUENCE_DOMAIN.atlassian.net/wiki/api/v2/users/bulk?ids=123,456" \
  -H "Authorization: Basic <base64_auth>"

10. Version History (8 endpoints)

MethodEndpointDescription
GET/pages/{id}/versionsGet page versions
GET/pages/{id}/versions/{version-number}Get specific version
GET/blogposts/{id}/versionsGet blog post versions
GET/blogposts/{id}/versions/{version-number}Get specific version
GET/attachments/{id}/versionsGet attachment versions
GET/attachments/{id}/versions/{version-number}Get specific version
POST/pages/{id}/versions/restoreRestore page version
POST/blogposts/{id}/versions/restoreRestore blog post version

Get Page Versions:

curl -X GET "https://$CONFLUENCE_DOMAIN.atlassian.net/wiki/api/v2/pages/123456/versions?limit=10" \
  -H "Authorization: Basic <base64_auth>"

Restore Page Version:

curl -X POST "https://$CONFLUENCE_DOMAIN.atlassian.net/wiki/api/v2/pages/123456/versions/restore" \
  -H "Authorization: Basic <base64_auth>" \
  -H "Content-Type: application/json" \
  -d '{"newVersion": {"message": "Restoring previous version"}}'

11. Whiteboard (7 endpoints)

MethodEndpointDescription
GET/whiteboardsGet all whiteboards
POST/whiteboardsCreate whiteboard
GET/whiteboards/{id}Get whiteboard by ID
PUT/whiteboards/{id}Update whiteboard
DELETE/whiteboards/{id}Delete whiteboard
GET/whiteboards/{id}/connectionsGet whiteboard connections
GET/whiteboards/{id}/operationsGet whiteboard operations

Create Whiteboard:

curl -X POST "https://$CONFLUENCE_DOMAIN.atlassian.net/wiki/api/v2/whiteboards" \
  -H "Authorization: Basic <base64_auth>" \
  -H "Content-Type: application/json" \
  -d '{
    "spaceId": "123456",
    "title": "My Whiteboard"
  }'

Pagination

The V2 API uses cursor-based pagination. Responses include a _links.next URL when more results are available.

curl -X GET "https://$CONFLUENCE_DOMAIN.atlassian.net/wiki/api/v2/pages?space-id=123456&limit=100" \
  -H "Authorization: Basic <base64_auth>"

Response:

{
  "results": [...],
  "_links": {
    "next": "/wiki/api/v2/pages?cursor=abc123",
    "base": "https://$CONFLUENCE_DOMAIN.atlassian.net/wiki"
  }
}

Search

Search Pages by Title

curl -X GET "https://$CONFLUENCE_DOMAIN.atlassian.net/wiki/api/v2/pages?title=My%20Page&space-id=123456" \
  -H "Authorization: Basic <base64_auth>"

Get Page with All Details

curl -X GET "https://$CONFLUENCE_DOMAIN.atlassian.net/wiki/api/v2/pages/123456?include-labels=true&include-properties=true&include-versions=true&body-format=storage" \
  -H "Authorization: Basic <base64_auth>"

Update Page Title

curl -X PUT "https://$CONFLUENCE_DOMAIN.atlassian.net/wiki/api/v2/pages/123456/title" \
  -H "Authorization: Basic <base64_auth>" \
  -H "Content-Type: application/json" \
  -d '{"value": "New Page Title"}'

Redact Page Content (remove sensitive content)

curl -X POST "https://$CONFLUENCE_DOMAIN.atlassian.net/wiki/api/v2/pages/123456/redact" \
  -H "Authorization: Basic <base64_auth>" \
  -H "Content-Type: application/json" \
  -d '{
    "version": {"number": 3},
    "body": {
      "representation": "storage",
      "value": "<p>Redacted content</p>"
    }
  }'

Error Handling

StatusMeaning
400Bad request or malformed data
401Invalid credentials or expired token
403Permission denied
404Resource not found
409Conflict (e.g., duplicate title)
429Rate limited - wait and retry
500Internal server error

Notes

  • Confluence Storage Format: Content uses XML-like storage format. Example: <p>Paragraph</p>, <h1>Heading</h1>, <ul><li>Item</li></ul>
  • Version Numbers: When updating pages, you must increment the version number
  • DELETE Returns 204: DELETE operations return 204 No Content
  • IDs are Strings: All IDs are passed as strings
  • Cursor Pagination: Use the cursor from _links.next for pagination

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Huo15 Openclaw Enhance

火一五·克劳德·龙虾增强插件 v5.7.8 — 全面适配 openclaw 2026.4.24:peerDep ^4.24 + build/compat 同步到 4.24 + 14 处 api.on 全部去掉 as any 改成 typed hook(hookName 联合类型 + handler 自动推断 Pl...

Registry SourceRecently Updated
General

Content Trend Analyzer

Aggregates and analyzes content trends across platforms to identify hot topics, user intent, content gaps, and generates data-driven article outlines.

Registry SourceRecently Updated
General

Prompt Debugger

Debug prompts that produce unexpected AI outputs — diagnose failure modes, identify ambiguity and conflicting instructions, test variations, compare model re...

Registry SourceRecently Updated
General

Indie Maker News

独行者 Daily - 变现雷达。读对一条新闻,少走一年弯路。每天5分钟,给创业者装上商业雷达。聚焦一人公司、副业、创业变现资讯,智能分类,行动导向。用户下载即能用,无需本地部署!

Registry SourceRecently Updated