Confluence · Capability

Confluence Cloud REST API v2 — Attachment

Confluence Cloud REST API v2 — Attachment. 3 operations. Lead operation: Get Attachment by Id. Self-contained Naftiko capability covering one Confluence business surface.

Run with Naftiko ConfluenceAttachment

What You Can Do

GET
Getattachmentbyid — Get Attachment by Id
/v1/attachments/{id}
DELETE
Deleteattachment — Delete Attachment
/v1/attachments/{id}
GET
Getpageattachments — Get Attachments for Page
/v1/pages/{id}/attachments

MCP Tools

get-attachment-id

Get Attachment by Id

read-only idempotent
delete-attachment

Delete Attachment

idempotent
get-attachments-page

Get Attachments for Page

read-only idempotent

Capability Spec

cloud-v2-attachment.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Confluence Cloud REST API v2 — Attachment
  description: 'Confluence Cloud REST API v2 — Attachment. 3 operations. Lead operation: Get Attachment by Id. Self-contained
    Naftiko capability covering one Confluence business surface.'
  tags:
  - Confluence
  - Attachment
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CONFLUENCE_API_KEY: CONFLUENCE_API_KEY
capability:
  consumes:
  - type: http
    namespace: cloud-v2-attachment
    baseUri: https://{domain}.atlassian.net/wiki/api/v2
    description: Confluence Cloud REST API v2 — Attachment business capability. Self-contained, no shared references.
    resources:
    - name: attachments-id
      path: /attachments/{id}
      operations:
      - name: getattachmentbyid
        method: GET
        description: Get Attachment by Id
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: deleteattachment
        method: DELETE
        description: Delete Attachment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: pages-id-attachments
      path: /pages/{id}/attachments
      operations:
      - name: getpageattachments
        method: GET
        description: Get Attachments for Page
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.CONFLUENCE_API_KEY}}'
  exposes:
  - type: rest
    namespace: cloud-v2-attachment-rest
    port: 8080
    description: REST adapter for Confluence Cloud REST API v2 — Attachment. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/attachments/{id}
      name: attachments-id
      description: REST surface for attachments-id.
      operations:
      - method: GET
        name: getattachmentbyid
        description: Get Attachment by Id
        call: cloud-v2-attachment.getattachmentbyid
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteattachment
        description: Delete Attachment
        call: cloud-v2-attachment.deleteattachment
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/pages/{id}/attachments
      name: pages-id-attachments
      description: REST surface for pages-id-attachments.
      operations:
      - method: GET
        name: getpageattachments
        description: Get Attachments for Page
        call: cloud-v2-attachment.getpageattachments
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: cloud-v2-attachment-mcp
    port: 9090
    transport: http
    description: MCP adapter for Confluence Cloud REST API v2 — Attachment. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: get-attachment-id
      description: Get Attachment by Id
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cloud-v2-attachment.getattachmentbyid
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-attachment
      description: Delete Attachment
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: cloud-v2-attachment.deleteattachment
      outputParameters:
      - type: object
        mapping: $.
    - name: get-attachments-page
      description: Get Attachments for Page
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cloud-v2-attachment.getpageattachments
      outputParameters:
      - type: object
        mapping: $.