[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74N8Y652WZGV728VN1BFYV2":3,"skill-same:01M74N8Y652WZGV728VN1BFYV2":65},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":15,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":13,"repositoryHtmlUrl":37,"repositoryHomepageUrl":6,"ownerHtmlUrl":38,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":39,"install":40,"resources":53},"01M74N8Y652WZGV728VN1BFYV2","confluence",null,"Confluence API integration with managed OAuth. Manage pages, spaces, blogposts, comments, and attachments.\nUse this skill when users want to create, read, update, or delete Confluence content, manage spaces, or work with comments and attachments.\nFor other third party apps, use the api-gateway skill (https:\u002F\u002Fclawhub.ai\u002Fbyungkyu\u002Fapi-gateway).\nRequires network access and valid Maton API key.","meghal86\u002Fstacksignal","meghal86","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F37388715?v=4","01M6CS2EW8SK89GH52R2ZEN8QQ","01M728J5CGY456EETEFG6HJBTM",0,"MIT","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fconfluence\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fconfluence\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: confluence\ndescription: |\n  Confluence API integration with managed OAuth. Manage pages, spaces, blogposts, comments, and attachments.\n  Use this skill when users want to create, read, update, or delete Confluence content, manage spaces, or work with comments and attachments.\n  For other third party apps, use the api-gateway skill (https:\u002F\u002Fclawhub.ai\u002Fbyungkyu\u002Fapi-gateway).\n  Requires network access and valid Maton API key.\nmetadata:\n  author: maton\n  version: \"1.0\"\n  clawdbot:\n    emoji: 🧠\n    homepage: \"https:\u002F\u002Fmaton.ai\"\n    requires:\n      env:\n        - MATON_API_KEY\n---\n\n# Confluence\n\nAccess the Confluence Cloud API with managed OAuth authentication. Manage pages, spaces, blogposts, comments, attachments, and properties.\n\n## Quick Start\n\n```bash\n# List pages in your Confluence site\npython3 \u003C\u003C'EOF'\nimport urllib.request, os, json\n\n# First get your Cloud ID\nreq = urllib.request.Request('https:\u002F\u002Fgateway.maton.ai\u002Fconfluence\u002Foauth\u002Ftoken\u002Faccessible-resources')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nresources = json.load(urllib.request.urlopen(req))\ncloud_id = resources[0]['id']\n\n# Then list pages\nreq = urllib.request.Request(f'https:\u002F\u002Fgateway.maton.ai\u002Fconfluence\u002Fex\u002Fconfluence\u002F{cloud_id}\u002Fwiki\u002Fapi\u002Fv2\u002Fpages')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n## Base URL\n\n```\nhttps:\u002F\u002Fgateway.maton.ai\u002Fconfluence\u002F{atlassian-api-path}\n```\n\nConfluence Cloud uses two URL patterns:\n\n**V2 API (recommended):**\n```\nhttps:\u002F\u002Fgateway.maton.ai\u002Fconfluence\u002Fex\u002Fconfluence\u002F{cloudId}\u002Fwiki\u002Fapi\u002Fv2\u002F{resource}\n```\n\n**V1 REST API (limited):**\n```\nhttps:\u002F\u002Fgateway.maton.ai\u002Fconfluence\u002Fex\u002Fconfluence\u002F{cloudId}\u002Fwiki\u002Frest\u002Fapi\u002F{resource}\n```\n\nThe `{cloudId}` is required for all API calls. Obtain it via the accessible-resources endpoint (see below).\n\n## Authentication\n\nAll requests require the Maton API key in the Authorization header:\n\n```\nAuthorization: Bearer $MATON_API_KEY\n```\n\n**Environment Variable:** Set your API key as `MATON_API_KEY`:\n\n```bash\nexport MATON_API_KEY=\"YOUR_API_KEY\"\n```\n\n### Getting Your API Key\n\n1. Sign in or create an account at [maton.ai](https:\u002F\u002Fmaton.ai)\n2. Go to [maton.ai\u002Fsettings](https:\u002F\u002Fmaton.ai\u002Fsettings)\n3. Copy your API key\n\n## Connection Management\n\nManage your Confluence OAuth connections at `https:\u002F\u002Fctrl.maton.ai`.\n\n### List Connections\n\n```bash\npython3 \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections?app=confluence&status=ACTIVE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n### Create Connection\n\n```bash\npython3 \u003C\u003C'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'confluence'}).encode()\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application\u002Fjson')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n### Get Connection\n\n```bash\npython3 \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections\u002F{connection_id}')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n**Response:**\n```json\n{\n  \"connection\": {\n    \"connection_id\": \"6cb7787f-7c32-4658-a3c3-4ddf1367a4ce\",\n    \"status\": \"ACTIVE\",\n    \"creation_time\": \"2026-02-13T00:00:00.000000Z\",\n    \"last_updated_time\": \"2026-02-13T00:00:00.000000Z\",\n    \"url\": \"https:\u002F\u002Fconnect.maton.ai\u002F?session_token=...\",\n    \"app\": \"confluence\",\n    \"metadata\": {}\n  }\n}\n```\n\nOpen the returned `url` in a browser to complete OAuth authorization.\n\n### Delete Connection\n\n```bash\npython3 \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections\u002F{connection_id}', method='DELETE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n### Specifying Connection\n\nIf you have multiple Confluence connections, specify which one to use with the `Maton-Connection` header:\n\n```bash\npython3 \u003C\u003C'EOF'\nimport urllib.request, os, json\ncloud_id = \"YOUR_CLOUD_ID\"\nreq = urllib.request.Request(f'https:\u002F\u002Fgateway.maton.ai\u002Fconfluence\u002Fex\u002Fconfluence\u002F{cloud_id}\u002Fwiki\u002Fapi\u002Fv2\u002Fpages')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Maton-Connection', '6cb7787f-7c32-4658-a3c3-4ddf1367a4ce')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\nIf omitted, the gateway uses the default (oldest) active connection.\n\n## Getting Your Cloud ID\n\nBefore making API calls, you must obtain your Confluence Cloud ID:\n\n```bash\npython3 \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fgateway.maton.ai\u002Fconfluence\u002Foauth\u002Ftoken\u002Faccessible-resources')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nresources = json.load(urllib.request.urlopen(req))\nprint(json.dumps(resources, indent=2))\n# Use resources[0]['id'] as your cloudId\nEOF\n```\n\n**Response:**\n```json\n[\n  {\n    \"id\": \"62909843-b784-4c35-b770-e4e2a26f024b\",\n    \"name\": \"your-site-name\",\n    \"url\": \"https:\u002F\u002Fyour-site.atlassian.net\",\n    \"scopes\": [\"read:confluence-content.all\", \"write:confluence-content\", ...],\n    \"avatarUrl\": \"https:\u002F\u002F...\"\n  }\n]\n```\n\n## API Reference\n\nAll V2 API endpoints use the base path:\n```\n\u002Fconfluence\u002Fex\u002Fconfluence\u002F{cloudId}\u002Fwiki\u002Fapi\u002Fv2\n```\n\n### Pages\n\n#### List Pages\n\n```bash\nGET \u002Fpages\nGET \u002Fpages?space-id={spaceId}\nGET \u002Fpages?limit=25\nGET \u002Fpages?status=current\nGET \u002Fpages?body-format=storage\n```\n\n**Response:**\n```json\n{\n  \"results\": [\n    {\n      \"id\": \"98391\",\n      \"status\": \"current\",\n      \"title\": \"My Page\",\n      \"spaceId\": \"98306\",\n      \"parentId\": \"98305\",\n      \"parentType\": \"page\",\n      \"authorId\": \"557058:...\",\n      \"createdAt\": \"2026-02-12T23:00:00.000Z\",\n      \"version\": {\n        \"number\": 1,\n        \"authorId\": \"557058:...\",\n        \"createdAt\": \"2026-02-12T23:00:00.000Z\"\n      },\n      \"_links\": {\n        \"webui\": \"\u002Fspaces\u002FSPACEKEY\u002Fpages\u002F98391\u002FMy+Page\"\n      }\n    }\n  ],\n  \"_links\": {\n    \"next\": \"\u002Fwiki\u002Fapi\u002Fv2\u002Fpages?cursor=...\"\n  }\n}\n```\n\n#### Get Page\n\n```bash\nGET \u002Fpages\u002F{pageId}\nGET \u002Fpages\u002F{pageId}?body-format=storage\nGET \u002Fpages\u002F{pageId}?body-format=atlas_doc_format\nGET \u002Fpages\u002F{pageId}?body-format=view\n```\n\n**Body formats:**\n- `storage` - Confluence storage format (XML-like)\n- `atlas_doc_format` - Atlassian Document Format (JSON)\n- `view` - Rendered HTML\n\n#### Create Page\n\n```bash\nPOST \u002Fpages\nContent-Type: application\u002Fjson\n\n{\n  \"spaceId\": \"98306\",\n  \"status\": \"current\",\n  \"title\": \"New Page Title\",\n  \"body\": {\n    \"representation\": \"storage\",\n    \"value\": \"\u003Cp>Page content in storage format\u003C\u002Fp>\"\n  }\n}\n```\n\nTo create a child page, include `parentId`:\n\n```json\n{\n  \"spaceId\": \"98306\",\n  \"parentId\": \"98391\",\n  \"status\": \"current\",\n  \"title\": \"Child Page\",\n  \"body\": {\n    \"representation\": \"storage\",\n    \"value\": \"\u003Cp>Child page content\u003C\u002Fp>\"\n  }\n}\n```\n\n**Response:**\n```json\n{\n  \"id\": \"98642\",\n  \"status\": \"current\",\n  \"title\": \"New Page Title\",\n  \"spaceId\": \"98306\",\n  \"version\": {\n    \"number\": 1\n  }\n}\n```\n\n#### Update Page\n\n```bash\nPUT \u002Fpages\u002F{pageId}\nContent-Type: application\u002Fjson\n\n{\n  \"id\": \"98391\",\n  \"status\": \"current\",\n  \"title\": \"Updated Page Title\",\n  \"body\": {\n    \"representation\": \"storage\",\n    \"value\": \"\u003Cp>Updated content\u003C\u002Fp>\"\n  },\n  \"version\": {\n    \"number\": 2,\n    \"message\": \"Updated via API\"\n  }\n}\n```\n\n**Note:** You must increment the version number with each update.\n\n#### Delete Page\n\n```bash\nDELETE \u002Fpages\u002F{pageId}\n```\n\nReturns `204 No Content` on success.\n\n#### Get Page Children\n\n```bash\nGET \u002Fpages\u002F{pageId}\u002Fchildren\n```\n\n#### Get Page Versions\n\n```bash\nGET \u002Fpages\u002F{pageId}\u002Fversions\n```\n\n#### Get Page Labels\n\n```bash\nGET \u002Fpages\u002F{pageId}\u002Flabels\n```\n\n#### Get Page Attachments\n\n```bash\nGET \u002Fpages\u002F{pageId}\u002Fattachments\n```\n\n#### Get Page Comments\n\n```bash\nGET \u002Fpages\u002F{pageId}\u002Ffooter-comments\n```\n\n#### Get Page Properties\n\n```bash\nGET \u002Fpages\u002F{pageId}\u002Fproperties\nGET \u002Fpages\u002F{pageId}\u002Fproperties\u002F{propertyId}\n```\n\n#### Create Page Property\n\n```bash\nPOST \u002Fpages\u002F{pageId}\u002Fproperties\nContent-Type: application\u002Fjson\n\n{\n  \"key\": \"my-property-key\",\n  \"value\": {\"customKey\": \"customValue\"}\n}\n```\n\n#### Update Page Property\n\n```bash\nPUT \u002Fpages\u002F{pageId}\u002Fproperties\u002F{propertyId}\nContent-Type: application\u002Fjson\n\n{\n  \"key\": \"my-property-key\",\n  \"value\": {\"customKey\": \"updatedValue\"},\n  \"version\": {\"number\": 2}\n}\n```\n\n#### Delete Page Property\n\n```bash\nDELETE \u002Fpages\u002F{pageId}\u002Fproperties\u002F{propertyId}\n```\n\n### Spaces\n\n#### List Spaces\n\n```bash\nGET \u002Fspaces\nGET \u002Fspaces?limit=25\nGET \u002Fspaces?type=global\n```\n\n**Response:**\n```json\n{\n  \"results\": [\n    {\n      \"id\": \"98306\",\n      \"key\": \"SPACEKEY\",\n      \"name\": \"Space Name\",\n      \"type\": \"global\",\n      \"status\": \"current\",\n      \"authorId\": \"557058:...\",\n      \"createdAt\": \"2026-02-12T23:00:00.000Z\",\n      \"homepageId\": \"98305\",\n      \"_links\": {\n        \"webui\": \"\u002Fspaces\u002FSPACEKEY\"\n      }\n    }\n  ]\n}\n```\n\n#### Get Space\n\n```bash\nGET \u002Fspaces\u002F{spaceId}\n```\n\n#### Get Space Pages\n\n```bash\nGET \u002Fspaces\u002F{spaceId}\u002Fpages\n```\n\n#### Get Space Blogposts\n\n```bash\nGET \u002Fspaces\u002F{spaceId}\u002Fblogposts\n```\n\n#### Get Space Properties\n\n```bash\nGET \u002Fspaces\u002F{spaceId}\u002Fproperties\n```\n\n#### Create Space Property\n\n```bash\nPOST \u002Fspaces\u002F{spaceId}\u002Fproperties\nContent-Type: application\u002Fjson\n\n{\n  \"key\": \"space-property-key\",\n  \"value\": {\"key\": \"value\"}\n}\n```\n\n#### Get Space Permissions\n\n```bash\nGET \u002Fspaces\u002F{spaceId}\u002Fpermissions\n```\n\n#### Get Space Labels\n\n```bash\nGET \u002Fspaces\u002F{spaceId}\u002Flabels\n```\n\n### Blogposts\n\n#### List Blogposts\n\n```bash\nGET \u002Fblogposts\nGET \u002Fblogposts?space-id={spaceId}\nGET \u002Fblogposts?limit=25\n```\n\n#### Get Blogpost\n\n```bash\nGET \u002Fblogposts\u002F{blogpostId}\nGET \u002Fblogposts\u002F{blogpostId}?body-format=storage\n```\n\n#### Create Blogpost\n\n```bash\nPOST \u002Fblogposts\nContent-Type: application\u002Fjson\n\n{\n  \"spaceId\": \"98306\",\n  \"title\": \"My Blog Post\",\n  \"body\": {\n    \"representation\": \"storage\",\n    \"value\": \"\u003Cp>Blog post content\u003C\u002Fp>\"\n  }\n}\n```\n\n#### Update Blogpost\n\n```bash\nPUT \u002Fblogposts\u002F{blogpostId}\nContent-Type: application\u002Fjson\n\n{\n  \"id\": \"458753\",\n  \"status\": \"current\",\n  \"title\": \"Updated Blog Post\",\n  \"body\": {\n    \"representation\": \"storage\",\n    \"value\": \"\u003Cp>Updated content\u003C\u002Fp>\"\n  },\n  \"version\": {\n    \"number\": 2\n  }\n}\n```\n\n#### Delete Blogpost\n\n```bash\nDELETE \u002Fblogposts\u002F{blogpostId}\n```\n\n#### Get Blogpost Labels\n\n```bash\nGET \u002Fblogposts\u002F{blogpostId}\u002Flabels\n```\n\n#### Get Blogpost Versions\n\n```bash\nGET \u002Fblogposts\u002F{blogpostId}\u002Fversions\n```\n\n#### Get Blogpost Comments\n\n```bash\nGET \u002Fblogposts\u002F{blogpostId}\u002Ffooter-comments\n```\n\n### Comments\n\n#### List Footer Comments\n\n```bash\nGET \u002Ffooter-comments\nGET \u002Ffooter-comments?body-format=storage\n```\n\n#### Get Comment\n\n```bash\nGET \u002Ffooter-comments\u002F{commentId}\n```\n\n#### Create Footer Comment\n\n```bash\nPOST \u002Ffooter-comments\nContent-Type: application\u002Fjson\n\n{\n  \"pageId\": \"98391\",\n  \"body\": {\n    \"representation\": \"storage\",\n    \"value\": \"\u003Cp>Comment text\u003C\u002Fp>\"\n  }\n}\n```\n\nFor blogpost comments:\n```json\n{\n  \"blogpostId\": \"458753\",\n  \"body\": {\n    \"representation\": \"storage\",\n    \"value\": \"\u003Cp>Comment on blogpost\u003C\u002Fp>\"\n  }\n}\n```\n\n#### Update Comment\n\n```bash\nPUT \u002Ffooter-comments\u002F{commentId}\nContent-Type: application\u002Fjson\n\n{\n  \"version\": {\"number\": 2},\n  \"body\": {\n    \"representation\": \"storage\",\n    \"value\": \"\u003Cp>Updated comment\u003C\u002Fp>\"\n  }\n}\n```\n\n#### Delete Comment\n\n```bash\nDELETE \u002Ffooter-comments\u002F{commentId}\n```\n\n#### Get Comment Replies\n\n```bash\nGET \u002Ffooter-comments\u002F{commentId}\u002Fchildren\n```\n\n#### List Inline Comments\n\n```bash\nGET \u002Finline-comments\n```\n\n### Attachments\n\n#### List Attachments\n\n```bash\nGET \u002Fattachments\nGET \u002Fattachments?limit=25\n```\n\n#### Get Attachment\n\n```bash\nGET \u002Fattachments\u002F{attachmentId}\n```\n\n#### Get Page Attachments\n\n```bash\nGET \u002Fpages\u002F{pageId}\u002Fattachments\n```\n\n### Tasks\n\n#### List Tasks\n\n```bash\nGET \u002Ftasks\n```\n\n#### Get Task\n\n```bash\nGET \u002Ftasks\u002F{taskId}\n```\n\n### Labels\n\n#### List Labels\n\n```bash\nGET \u002Flabels\nGET \u002Flabels?prefix=global\n```\n\n### Custom Content\n\n#### List Custom Content\n\n```bash\nGET \u002Fcustom-content\nGET \u002Fcustom-content?type={customContentType}\n```\n\n### User (V1 API)\n\nThe current user endpoint uses the V1 REST API:\n\n```bash\nGET \u002Fconfluence\u002Fex\u002Fconfluence\u002F{cloudId}\u002Fwiki\u002Frest\u002Fapi\u002Fuser\u002Fcurrent\n```\n\n**Response:**\n```json\n{\n  \"type\": \"known\",\n  \"accountId\": \"557058:...\",\n  \"accountType\": \"atlassian\",\n  \"email\": \"user@example.com\",\n  \"publicName\": \"User Name\",\n  \"displayName\": \"User Name\"\n}\n```\n\n## Pagination\n\nThe V2 API uses cursor-based pagination. Responses include a `_links.next` URL when more results are available.\n\n```bash\nGET \u002Fpages?limit=25\n```\n\n**Response:**\n```json\n{\n  \"results\": [...],\n  \"_links\": {\n    \"next\": \"\u002Fwiki\u002Fapi\u002Fv2\u002Fpages?cursor=eyJpZCI6Ijk4MzkyIn0\"\n  }\n}\n```\n\nTo get the next page, extract the cursor and pass it:\n\n```bash\nGET \u002Fpages?limit=25&cursor=eyJpZCI6Ijk4MzkyIn0\n```\n\n## Code Examples\n\n### JavaScript\n\n```javascript\n\u002F\u002F Get Cloud ID first\nconst resourcesRes = await fetch(\n  'https:\u002F\u002Fgateway.maton.ai\u002Fconfluence\u002Foauth\u002Ftoken\u002Faccessible-resources',\n  {\n    headers: {\n      'Authorization': `Bearer ${process.env.MATON_API_KEY}`\n    }\n  }\n);\nconst resources = await resourcesRes.json();\nconst cloudId = resources[0].id;\n\n\u002F\u002F List pages\nconst response = await fetch(\n  `https:\u002F\u002Fgateway.maton.ai\u002Fconfluence\u002Fex\u002Fconfluence\u002F${cloudId}\u002Fwiki\u002Fapi\u002Fv2\u002Fpages`,\n  {\n    headers: {\n      'Authorization': `Bearer ${process.env.MATON_API_KEY}`\n    }\n  }\n);\nconst data = await response.json();\n```\n\n### Python\n\n```python\nimport os\nimport requests\n\n# Get Cloud ID first\nresources = requests.get(\n    'https:\u002F\u002Fgateway.maton.ai\u002Fconfluence\u002Foauth\u002Ftoken\u002Faccessible-resources',\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'}\n).json()\ncloud_id = resources[0]['id']\n\n# List pages\nresponse = requests.get(\n    f'https:\u002F\u002Fgateway.maton.ai\u002Fconfluence\u002Fex\u002Fconfluence\u002F{cloud_id}\u002Fwiki\u002Fapi\u002Fv2\u002Fpages',\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'}\n)\ndata = response.json()\n```\n\n## Notes\n\n- **Cloud ID Required**: You must obtain your Cloud ID via `\u002Foauth\u002Ftoken\u002Faccessible-resources` before making API calls\n- **V2 API Recommended**: Use the V2 API (`\u002Fwiki\u002Fapi\u002Fv2\u002F`) for most operations. The V1 API (`\u002Fwiki\u002Frest\u002Fapi\u002F`) is limited\n- **Body Formats**: Use `storage` format for creating\u002Fupdating content. Use `view` for rendered HTML\n- **Version Numbers**: When updating pages or blogposts, you must increment the version number\n- **Storage Format**: Content uses Confluence storage format (XML-like). Example: `\u003Cp>Paragraph\u003C\u002Fp>`, `\u003Ch1>Heading\u003C\u002Fh1>`\n- **Delete Returns 204**: DELETE operations return 204 No Content with no response body\n- **IDs are Strings**: Page, space, and other IDs should be passed as strings\n- **IMPORTANT**: When piping curl output to `jq` or other commands, environment variables like `$MATON_API_KEY` may not expand correctly in some shell environments\n\n## Error Handling\n\n| Status | Meaning |\n|--------|---------|\n| 400 | Bad request or malformed data |\n| 401 | Invalid API key or insufficient OAuth scopes |\n| 403 | Permission denied |\n| 404 | Resource not found |\n| 409 | Conflict (e.g., duplicate title) |\n| 429 | Rate limited |\n| 4xx\u002F5xx | Passthrough error from Confluence API |\n\n### Troubleshooting: API Key Issues\n\n1. Check that the `MATON_API_KEY` environment variable is set:\n\n```bash\necho $MATON_API_KEY\n```\n\n2. Verify the API key is valid by listing connections:\n\n```bash\npython3 \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n### Troubleshooting: Invalid App Name\n\nEnsure your URL path starts with `confluence`. For example:\n\n- Correct: `https:\u002F\u002Fgateway.maton.ai\u002Fconfluence\u002Fex\u002Fconfluence\u002F{cloudId}\u002Fwiki\u002Fapi\u002Fv2\u002Fpages`\n- Incorrect: `https:\u002F\u002Fgateway.maton.ai\u002Fex\u002Fconfluence\u002F{cloudId}\u002Fwiki\u002Fapi\u002Fv2\u002Fpages`\n\n### Troubleshooting: Scope Issues\n\nIf you receive a 401 error with \"scope does not match\", you may need to re-authorize with the required scopes. Delete your connection and create a new one:\n\n```bash\n# Delete existing connection\npython3 \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections\u002F{connection_id}', method='DELETE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n# Create new connection\npython3 \u003C\u003C'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'confluence'}).encode()\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application\u002Fjson')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n## Resources\n\n- [Confluence REST API V2 Documentation](https:\u002F\u002Fdeveloper.atlassian.com\u002Fcloud\u002Fconfluence\u002Frest\u002Fv2\u002Fintro\u002F)\n- [Confluence REST API V2 Reference](https:\u002F\u002Fdeveloper.atlassian.com\u002Fcloud\u002Fconfluence\u002Frest\u002Fv2\u002Fapi-group-page\u002F)\n- [Confluence Storage Format](https:\u002F\u002Fconfluence.atlassian.com\u002Fdoc\u002Fconfluence-storage-format-790796544.html)\n- [Maton Community](https:\u002F\u002Fdiscord.com\u002Finvite\u002FdBfFAcefs2)\n- [Maton Support](mailto:support@maton.ai)\n","# Confluence\n\nAccess the Confluence Cloud API with managed OAuth authentication. Manage pages, spaces, blogposts, comments, attachments, and properties.\n\n## Quick Start\n\n```bash\n# List pages in your Confluence site\npython3 \u003C\u003C'EOF'\nimport urllib.request, os, json\n\n# First get your Cloud ID\nreq = urllib.request.Request('https:\u002F\u002Fgateway.maton.ai\u002Fconfluence\u002Foauth\u002Ftoken\u002Faccessible-resources')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nresources = json.load(urllib.request.urlopen(req))\ncloud_id = resources[0]['id']\n\n# Then list pages\nreq = urllib.request.Request(f'https:\u002F\u002Fgateway.maton.ai\u002Fconfluence\u002Fex\u002Fconfluence\u002F{cloud_id}\u002Fwiki\u002Fapi\u002Fv2\u002Fpages')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n## Base URL\n\n```\nhttps:\u002F\u002Fgateway.maton.ai\u002Fconfluence\u002F{atlassian-api-path}\n```\n\nConfluence Cloud uses two URL patterns:\n\n**V2 API (recommended):**\n```\nhttps:\u002F\u002Fgateway.maton.ai\u002Fconfluence\u002Fex\u002Fconfluence\u002F{cloudId}\u002Fwiki\u002Fapi\u002Fv2\u002F{resource}\n```\n\n**V1 REST API (limited):**\n```\nhttps:\u002F\u002Fgateway.maton.ai\u002Fconfluence\u002Fex\u002Fconfluence\u002F{cloudId}\u002Fwiki\u002Frest\u002Fapi\u002F{resource}\n```\n\nThe `{cloudId}` is required for all API calls. Obtain it via the accessible-resources endpoint (see below).\n\n## Authentication\n\nAll requests require the Maton API key in the Authorization header:\n\n```\nAuthorization: Bearer $MATON_API_KEY\n```\n\n**Environment Variable:** Set your API key as `MATON_API_KEY`:\n\n```bash\nexport MATON_API_KEY=\"YOUR_API_KEY\"\n```\n\n### Getting Your API Key\n\n1. Sign in or create an account at [maton.ai](https:\u002F\u002Fmaton.ai)\n2. Go to [maton.ai\u002Fsettings](https:\u002F\u002Fmaton.ai\u002Fsettings)\n3. Copy your API key\n\n## Connection Management\n\nManage your Confluence OAuth connections at `https:\u002F\u002Fctrl.maton.ai`.\n\n### List Connections\n\n```bash\npython3 \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections?app=confluence&status=ACTIVE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n### Create Connection\n\n```bash\npython3 \u003C\u003C'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'confluence'}).encode()\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application\u002Fjson')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n### Get Connection\n\n```bash\npython3 \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections\u002F{connection_id}')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n**Response:**\n```json\n{\n  \"connection\": {\n    \"connection_id\": \"6cb7787f-7c32-4658-a3c3-4ddf1367a4ce\",\n    \"status\": \"ACTIVE\",\n    \"creation_time\": \"2026-02-13T00:00:00.000000Z\",\n    \"last_updated_time\": \"2026-02-13T00:00:00.000000Z\",\n    \"url\": \"https:\u002F\u002Fconnect.maton.ai\u002F?session_token=...\",\n    \"app\": \"confluence\",\n    \"metadata\": {}\n  }\n}\n```\n\nOpen the returned `url` in a browser to complete OAuth authorization.\n\n### Delete Connection\n\n```bash\npython3 \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections\u002F{connection_id}', method='DELETE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n### Specifying Connection\n\nIf you have multiple Confluence connections, specify which one to use with the `Maton-Connection` header:\n\n```bash\npython3 \u003C\u003C'EOF'\nimport urllib.request, os, json\ncloud_id = \"YOUR_CLOUD_ID\"\nreq = urllib.request.Request(f'https:\u002F\u002Fgateway.maton.ai\u002Fconfluence\u002Fex\u002Fconfluence\u002F{cloud_id}\u002Fwiki\u002Fapi\u002Fv2\u002Fpages')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Maton-Connection', '6cb7787f-7c32-4658-a3c3-4ddf1367a4ce')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\nIf omitted, the gateway uses the default (oldest) active connection.\n\n## Getting Your Cloud ID\n\nBefore making API calls, you must obtain your Confluence Cloud ID:\n\n```bash\npython3 \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fgateway.maton.ai\u002Fconfluence\u002Foauth\u002Ftoken\u002Faccessible-resources')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nresources = json.load(urllib.request.urlopen(req))\nprint(json.dumps(resources, indent=2))\n# Use resources[0]['id'] as your cloudId\nEOF\n```\n\n**Response:**\n```json\n[\n  {\n    \"id\": \"62909843-b784-4c35-b770-e4e2a26f024b\",\n    \"name\": \"your-site-name\",\n    \"url\": \"https:\u002F\u002Fyour-site.atlassian.net\",\n    \"scopes\": [\"read:confluence-content.all\", \"write:confluence-content\", ...],\n    \"avatarUrl\": \"https:\u002F\u002F...\"\n  }\n]\n```\n\n## API Reference\n\nAll V2 API endpoints use the base path:\n```\n\u002Fconfluence\u002Fex\u002Fconfluence\u002F{cloudId}\u002Fwiki\u002Fapi\u002Fv2\n```\n\n### Pages\n\n#### List Pages\n\n```bash\nGET \u002Fpages\nGET \u002Fpages?space-id={spaceId}\nGET \u002Fpages?limit=25\nGET \u002Fpages?status=current\nGET \u002Fpages?body-format=storage\n```\n\n**Response:**\n```json\n{\n  \"results\": [\n    {\n      \"id\": \"98391\",\n      \"status\": \"current\",\n      \"title\": \"My Page\",\n      \"spaceId\": \"98306\",\n      \"parentId\": \"98305\",\n      \"parentType\": \"page\",\n      \"authorId\": \"557058:...\",\n      \"createdAt\": \"2026-02-12T23:00:00.000Z\",\n      \"version\": {\n        \"number\": 1,\n        \"authorId\": \"557058:...\",\n        \"createdAt\": \"2026-02-12T23:00:00.000Z\"\n      },\n      \"_links\": {\n        \"webui\": \"\u002Fspaces\u002FSPACEKEY\u002Fpages\u002F98391\u002FMy+Page\"\n      }\n    }\n  ],\n  \"_links\": {\n    \"next\": \"\u002Fwiki\u002Fapi\u002Fv2\u002Fpages?cursor=...\"\n  }\n}\n```\n\n#### Get Page\n\n```bash\nGET \u002Fpages\u002F{pageId}\nGET \u002Fpages\u002F{pageId}?body-format=storage\nGET \u002Fpages\u002F{pageId}?body-format=atlas_doc_format\nGET \u002Fpages\u002F{pageId}?body-format=view\n```\n\n**Body formats:**\n- `storage` - Confluence storage format (XML-like)\n- `atlas_doc_format` - Atlassian Document Format (JSON)\n- `view` - Rendered HTML\n\n#### Create Page\n\n```bash\nPOST \u002Fpages\nContent-Type: application\u002Fjson\n\n{\n  \"spaceId\": \"98306\",\n  \"status\": \"current\",\n  \"title\": \"New Page Title\",\n  \"body\": {\n    \"representation\": \"storage\",\n    \"value\": \"\u003Cp>Page content in storage format\u003C\u002Fp>\"\n  }\n}\n```\n\nTo create a child page, include `parentId`:\n\n```json\n{\n  \"spaceId\": \"98306\",\n  \"parentId\": \"98391\",\n  \"status\": \"current\",\n  \"title\": \"Child Page\",\n  \"body\": {\n    \"representation\": \"storage\",\n    \"value\": \"\u003Cp>Child page content\u003C\u002Fp>\"\n  }\n}\n```\n\n**Response:**\n```json\n{\n  \"id\": \"98642\",\n  \"status\": \"current\",\n  \"title\": \"New Page Title\",\n  \"spaceId\": \"98306\",\n  \"version\": {\n    \"number\": 1\n  }\n}\n```\n\n#### Update Page\n\n```bash\nPUT \u002Fpages\u002F{pageId}\nContent-Type: application\u002Fjson\n\n{\n  \"id\": \"98391\",\n  \"status\": \"current\",\n  \"title\": \"Updated Page Title\",\n  \"body\": {\n    \"representation\": \"storage\",\n    \"value\": \"\u003Cp>Updated content\u003C\u002Fp>\"\n  },\n  \"version\": {\n    \"number\": 2,\n    \"message\": \"Updated via API\"\n  }\n}\n```\n\n**Note:** You must increment the version number with each update.\n\n#### Delete Page\n\n```bash\nDELETE \u002Fpages\u002F{pageId}\n```\n\nReturns `204 No Content` on success.\n\n#### Get Page Children\n\n```bash\nGET \u002Fpages\u002F{pageId}\u002Fchildren\n```\n\n#### Get Page Versions\n\n```bash\nGET \u002Fpages\u002F{pageId}\u002Fversions\n```\n\n#### Get Page Labels\n\n```bash\nGET \u002Fpages\u002F{pageId}\u002Flabels\n```\n\n#### Get Page Attachments\n\n```bash\nGET \u002Fpages\u002F{pageId}\u002Fattachments\n```\n\n#### Get Page Comments\n\n```bash\nGET \u002Fpages\u002F{pageId}\u002Ffooter-comments\n```\n\n#### Get Page Properties\n\n```bash\nGET \u002Fpages\u002F{pageId}\u002Fproperties\nGET \u002Fpages\u002F{pageId}\u002Fproperties\u002F{propertyId}\n```\n\n#### Create Page Property\n\n```bash\nPOST \u002Fpages\u002F{pageId}\u002Fproperties\nContent-Type: application\u002Fjson\n\n{\n  \"key\": \"my-property-key\",\n  \"value\": {\"customKey\": \"customValue\"}\n}\n```\n\n#### Update Page Property\n\n```bash\nPUT \u002Fpages\u002F{pageId}\u002Fproperties\u002F{propertyId}\nContent-Type: application\u002Fjson\n\n{\n  \"key\": \"my-property-key\",\n  \"value\": {\"customKey\": \"updatedValue\"},\n  \"version\": {\"number\": 2}\n}\n```\n\n#### Delete Page Property\n\n```bash\nDELETE \u002Fpages\u002F{pageId}\u002Fproperties\u002F{propertyId}\n```\n\n### Spaces\n\n#### List Spaces\n\n```bash\nGET \u002Fspaces\nGET \u002Fspaces?limit=25\nGET \u002Fspaces?type=global\n```\n\n**Response:**\n```json\n{\n  \"results\": [\n    {\n      \"id\": \"98306\",\n      \"key\": \"SPACEKEY\",\n      \"name\": \"Space Name\",\n      \"type\": \"global\",\n      \"status\": \"current\",\n      \"authorId\": \"557058:...\",\n      \"createdAt\": \"2026-02-12T23:00:00.000Z\",\n      \"homepageId\": \"98305\",\n      \"_links\": {\n        \"webui\": \"\u002Fspaces\u002FSPACEKEY\"\n      }\n    }\n  ]\n}\n```\n\n#### Get Space\n\n```bash\nGET \u002Fspaces\u002F{spaceId}\n```\n\n#### Get Space Pages\n\n```bash\nGET \u002Fspaces\u002F{spaceId}\u002Fpages\n```\n\n#### Get Space Blogposts\n\n```bash\nGET \u002Fspaces\u002F{spaceId}\u002Fblogposts\n```\n\n#### Get Space Properties\n\n```bash\nGET \u002Fspaces\u002F{spaceId}\u002Fproperties\n```\n\n#### Create Space Property\n\n```bash\nPOST \u002Fspaces\u002F{spaceId}\u002Fproperties\nContent-Type: application\u002Fjson\n\n{\n  \"key\": \"space-property-key\",\n  \"value\": {\"key\": \"value\"}\n}\n```\n\n#### Get Space Permissions\n\n```bash\nGET \u002Fspaces\u002F{spaceId}\u002Fpermissions\n```\n\n#### Get Space Labels\n\n```bash\nGET \u002Fspaces\u002F{spaceId}\u002Flabels\n```\n\n### Blogposts\n\n#### List Blogposts\n\n```bash\nGET \u002Fblogposts\nGET \u002Fblogposts?space-id={spaceId}\nGET \u002Fblogposts?limit=25\n```\n\n#### Get Blogpost\n\n```bash\nGET \u002Fblogposts\u002F{blogpostId}\nGET \u002Fblogposts\u002F{blogpostId}?body-format=storage\n```\n\n#### Create Blogpost\n\n```bash\nPOST \u002Fblogposts\nContent-Type: application\u002Fjson\n\n{\n  \"spaceId\": \"98306\",\n  \"title\": \"My Blog Post\",\n  \"body\": {\n    \"representation\": \"storage\",\n    \"value\": \"\u003Cp>Blog post content\u003C\u002Fp>\"\n  }\n}\n```\n\n#### Update Blogpost\n\n```bash\nPUT \u002Fblogposts\u002F{blogpostId}\nContent-Type: application\u002Fjson\n\n{\n  \"id\": \"458753\",\n  \"status\": \"current\",\n  \"title\": \"Updated Blog Post\",\n  \"body\": {\n    \"representation\": \"storage\",\n    \"value\": \"\u003Cp>Updated content\u003C\u002Fp>\"\n  },\n  \"version\": {\n    \"number\": 2\n  }\n}\n```\n\n#### Delete Blogpost\n\n```bash\nDELETE \u002Fblogposts\u002F{blogpostId}\n```\n\n#### Get Blogpost Labels\n\n```bash\nGET \u002Fblogposts\u002F{blogpostId}\u002Flabels\n```\n\n#### Get Blogpost Versions\n\n```bash\nGET \u002Fblogposts\u002F{blogpostId}\u002Fversions\n```\n\n#### Get Blogpost Comments\n\n```bash\nGET \u002Fblogposts\u002F{blogpostId}\u002Ffooter-comments\n```\n\n### Comments\n\n#### List Footer Comments\n\n```bash\nGET \u002Ffooter-comments\nGET \u002Ffooter-comments?body-format=storage\n```\n\n#### Get Comment\n\n```bash\nGET \u002Ffooter-comments\u002F{commentId}\n```\n\n#### Create Footer Comment\n\n```bash\nPOST \u002Ffooter-comments\nContent-Type: application\u002Fjson\n\n{\n  \"pageId\": \"98391\",\n  \"body\": {\n    \"representation\": \"storage\",\n    \"value\": \"\u003Cp>Comment text\u003C\u002Fp>\"\n  }\n}\n```\n\nFor blogpost comments:\n```json\n{\n  \"blogpostId\": \"458753\",\n  \"body\": {\n    \"representation\": \"storage\",\n    \"value\": \"\u003Cp>Comment on blogpost\u003C\u002Fp>\"\n  }\n}\n```\n\n#### Update Comment\n\n```bash\nPUT \u002Ffooter-comments\u002F{commentId}\nContent-Type: application\u002Fjson\n\n{\n  \"version\": {\"number\": 2},\n  \"body\": {\n    \"representation\": \"storage\",\n    \"value\": \"\u003Cp>Updated comment\u003C\u002Fp>\"\n  }\n}\n```\n\n#### Delete Comment\n\n```bash\nDELETE \u002Ffooter-comments\u002F{commentId}\n```\n\n#### Get Comment Replies\n\n```bash\nGET \u002Ffooter-comments\u002F{commentId}\u002Fchildren\n```\n\n#### List Inline Comments\n\n```bash\nGET \u002Finline-comments\n```\n\n### Attachments\n\n#### List Attachments\n\n```bash\nGET \u002Fattachments\nGET \u002Fattachments?limit=25\n```\n\n#### Get Attachment\n\n```bash\nGET \u002Fattachments\u002F{attachmentId}\n```\n\n#### Get Page Attachments\n\n```bash\nGET \u002Fpages\u002F{pageId}\u002Fattachments\n```\n\n### Tasks\n\n#### List Tasks\n\n```bash\nGET \u002Ftasks\n```\n\n#### Get Task\n\n```bash\nGET \u002Ftasks\u002F{taskId}\n```\n\n### Labels\n\n#### List Labels\n\n```bash\nGET \u002Flabels\nGET \u002Flabels?prefix=global\n```\n\n### Custom Content\n\n#### List Custom Content\n\n```bash\nGET \u002Fcustom-content\nGET \u002Fcustom-content?type={customContentType}\n```\n\n### User (V1 API)\n\nThe current user endpoint uses the V1 REST API:\n\n```bash\nGET \u002Fconfluence\u002Fex\u002Fconfluence\u002F{cloudId}\u002Fwiki\u002Frest\u002Fapi\u002Fuser\u002Fcurrent\n```\n\n**Response:**\n```json\n{\n  \"type\": \"known\",\n  \"accountId\": \"557058:...\",\n  \"accountType\": \"atlassian\",\n  \"email\": \"user@example.com\",\n  \"publicName\": \"User Name\",\n  \"displayName\": \"User Name\"\n}\n```\n\n## Pagination\n\nThe V2 API uses cursor-based pagination. Responses include a `_links.next` URL when more results are available.\n\n```bash\nGET \u002Fpages?limit=25\n```\n\n**Response:**\n```json\n{\n  \"results\": [...],\n  \"_links\": {\n    \"next\": \"\u002Fwiki\u002Fapi\u002Fv2\u002Fpages?cursor=eyJpZCI6Ijk4MzkyIn0\"\n  }\n}\n```\n\nTo get the next page, extract the cursor and pass it:\n\n```bash\nGET \u002Fpages?limit=25&cursor=eyJpZCI6Ijk4MzkyIn0\n```\n\n## Code Examples\n\n### JavaScript\n\n```javascript\n\u002F\u002F Get Cloud ID first\nconst resourcesRes = await fetch(\n  'https:\u002F\u002Fgateway.maton.ai\u002Fconfluence\u002Foauth\u002Ftoken\u002Faccessible-resources',\n  {\n    headers: {\n      'Authorization': `Bearer ${process.env.MATON_API_KEY}`\n    }\n  }\n);\nconst resources = await resourcesRes.json();\nconst cloudId = resources[0].id;\n\n\u002F\u002F List pages\nconst response = await fetch(\n  `https:\u002F\u002Fgateway.maton.ai\u002Fconfluence\u002Fex\u002Fconfluence\u002F${cloudId}\u002Fwiki\u002Fapi\u002Fv2\u002Fpages`,\n  {\n    headers: {\n      'Authorization': `Bearer ${process.env.MATON_API_KEY}`\n    }\n  }\n);\nconst data = await response.json();\n```\n\n### Python\n\n```python\nimport os\nimport requests\n\n# Get Cloud ID first\nresources = requests.get(\n    'https:\u002F\u002Fgateway.maton.ai\u002Fconfluence\u002Foauth\u002Ftoken\u002Faccessible-resources',\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'}\n).json()\ncloud_id = resources[0]['id']\n\n# List pages\nresponse = requests.get(\n    f'https:\u002F\u002Fgateway.maton.ai\u002Fconfluence\u002Fex\u002Fconfluence\u002F{cloud_id}\u002Fwiki\u002Fapi\u002Fv2\u002Fpages',\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'}\n)\ndata = response.json()\n```\n\n## Notes\n\n- **Cloud ID Required**: You must obtain your Cloud ID via `\u002Foauth\u002Ftoken\u002Faccessible-resources` before making API calls\n- **V2 API Recommended**: Use the V2 API (`\u002Fwiki\u002Fapi\u002Fv2\u002F`) for most operations. The V1 API (`\u002Fwiki\u002Frest\u002Fapi\u002F`) is limited\n- **Body Formats**: Use `storage` format for creating\u002Fupdating content. Use `view` for rendered HTML\n- **Version Numbers**: When updating pages or blogposts, you must increment the version number\n- **Storage Format**: Content uses Confluence storage format (XML-like). Example: `\u003Cp>Paragraph\u003C\u002Fp>`, `\u003Ch1>Heading\u003C\u002Fh1>`\n- **Delete Returns 204**: DELETE operations return 204 No Content with no response body\n- **IDs are Strings**: Page, space, and other IDs should be passed as strings\n- **IMPORTANT**: When piping curl output to `jq` or other commands, environment variables like `$MATON_API_KEY` may not expand correctly in some shell environments\n\n## Error Handling\n\n| Status | Meaning |\n|--------|---------|\n| 400 | Bad request or malformed data |\n| 401 | Invalid API key or insufficient OAuth scopes |\n| 403 | Permission denied |\n| 404 | Resource not found |\n| 409 | Conflict (e.g., duplicate title) |\n| 429 | Rate limited |\n| 4xx\u002F5xx | Passthrough error from Confluence API |\n\n### Troubleshooting: API Key Issues\n\n1. Check that the `MATON_API_KEY` environment variable is set:\n\n```bash\necho $MATON_API_KEY\n```\n\n2. Verify the API key is valid by listing connections:\n\n```bash\npython3 \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n### Troubleshooting: Invalid App Name\n\nEnsure your URL path starts with `confluence`. For example:\n\n- Correct: `https:\u002F\u002Fgateway.maton.ai\u002Fconfluence\u002Fex\u002Fconfluence\u002F{cloudId}\u002Fwiki\u002Fapi\u002Fv2\u002Fpages`\n- Incorrect: `https:\u002F\u002Fgateway.maton.ai\u002Fex\u002Fconfluence\u002F{cloudId}\u002Fwiki\u002Fapi\u002Fv2\u002Fpages`\n\n### Troubleshooting: Scope Issues\n\nIf you receive a 401 error with \"scope does not match\", you may need to re-authorize with the required scopes. Delete your connection and create a new one:\n\n```bash\n# Delete existing connection\npython3 \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections\u002F{connection_id}', method='DELETE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n# Create new connection\npython3 \u003C\u003C'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'confluence'}).encode()\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application\u002Fjson')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n## Resources\n\n- [Confluence REST API V2 Documentation](https:\u002F\u002Fdeveloper.atlassian.com\u002Fcloud\u002Fconfluence\u002Frest\u002Fv2\u002Fintro\u002F)\n- [Confluence REST API V2 Reference](https:\u002F\u002Fdeveloper.atlassian.com\u002Fcloud\u002Fconfluence\u002Frest\u002Fv2\u002Fapi-group-page\u002F)\n- [Confluence Storage Format](https:\u002F\u002Fconfluence.atlassian.com\u002Fdoc\u002Fconfluence-storage-format-790796544.html)\n- [Maton Community](https:\u002F\u002Fdiscord.com\u002Finvite\u002FdBfFAcefs2)\n- [Maton Support](mailto:support@maton.ai)\n",{"name":5,"metadata":24,"description":33},{"author":25,"version":26,"clawdbot":27},"maton","1.0",{"emoji":28,"homepage":29,"requires":30},"🧠","https:\u002F\u002Fmaton.ai",{"env":31},[32],"MATON_API_KEY","Confluence API integration with managed OAuth. Manage pages, spaces, blogposts, comments, and attachments.\nUse this skill when users want to create, read, update, or delete Confluence content, manage spaces, or work with comments and attachments.\nFor other third party apps, use the api-gateway skill (https:\u002F\u002Fclawhub.ai\u002Fbyungkyu\u002Fapi-gateway).\nRequires network access and valid Maton API key.\n","main","54afe4b75ed2eb8f0feabb2f5b57dfa4bcbb3c44",".agents\u002Fskills\u002Fconfluence","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal","https:\u002F\u002Fgithub.com\u002Fmeghal86","2026-05-17 14:11:28",{"source":8,"skillName":5,"commands":41,"prompt":51,"zipAvailable":52},[42,45,48],{"tool":43,"command":44},"npx","npx skills add meghal86\u002Fstacksignal --skill confluence",{"tool":46,"command":47},"bunx","bunx skills add meghal86\u002Fstacksignal --skill confluence",{"tool":49,"command":50},"pnpm","pnpm dlx skills add meghal86\u002Fstacksignal --skill confluence","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fconfluence\u002FSKILL.md",true,[54,60],{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},"_meta.json","REFERENCE","参考文档",278,"https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fconfluence\u002F_meta.json",{"path":61,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":15},"LICENSE.txt","LICENSE","许可证",1072,[66,75,83,91,99,106],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":70,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":74},"01M78XH0FRP65NYEDHF2BT7NB1","zvukogram","Text-to-Speech via Zvukogram API with SSML support. Use when you need to generate speech from text, create podcasts, voice notifications, or work with audio. Supports speed control, stress marks, English word transcription, and audio fragment merging.","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzvukogram\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzvukogram\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":79,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":74},"01M78XEND5ASXYB6MN8AQQGJAF","zohomail","Zoho Mail API integration with managed OAuth. Send, receive, and manage emails, folders, and labels.\nUse this skill when users want to send emails, read messages, manage folders, or work with email labels in Zoho Mail.\nFor other third party apps, use the api-gateway skill (https:\u002F\u002Fclawhub.ai\u002Fbyungkyu\u002Fapi-gateway).\nRequires network access and valid Maton API key.","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzohomail\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzohomail\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":87,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":74},"01M78XEBBV3C6DRZFAJXP6RDKS","zoho-recruit","Zoho Recruit API integration with managed OAuth. Manage candidates, job openings, interviews, and recruitment workflows.\nUse this skill when users want to read, create, update, or search recruitment data like candidates, job openings, interviews, and applications in Zoho Recruit.\nFor other third party apps, use the api-gateway skill (https:\u002F\u002Fclawhub.ai\u002Fbyungkyu\u002Fapi-gateway).\nRequires network access and valid Maton API key.","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-recruit\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-recruit\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":95,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":74},"01M78XE5CQG75DZWYSKGXFR99T","zoho-people","Zoho People API integration with managed OAuth. Manage employees, departments, designations, attendance, and leave.\nUse this skill when users want to read, create, update, or query HR data like employees, departments, designations, and forms in Zoho People.\nFor other third party apps, use the api-gateway skill (https:\u002F\u002Fclawhub.ai\u002Fbyungkyu\u002Fapi-gateway).\nRequires network access and valid Maton API key.","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-people\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-people\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":102,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":74},"01M78XDZKMZAJYFJJFT7MR5ZN2","zoho-mail","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-mail\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-mail\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":110,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":74},"01M78XDST8JK0WVDA1F3VPNWXD","zoho-inventory","Zoho Inventory API integration with managed OAuth. Manage items, sales orders, invoices, purchase orders, bills, contacts, and shipments.\nUse this skill when users want to read, create, update, or delete inventory items, sales orders, invoices, purchase orders, bills, or other inventory records in Zoho Inventory.\nFor other third party apps, use the api-gateway skill (https:\u002F\u002Fclawhub.ai\u002Fbyungkyu\u002Fapi-gateway).\nRequires network access and valid Maton API key.","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-inventory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-inventory\u002FSKILL.md",[],[]]