Atlassian · Capability

Atlassian Confluence Content API — Macro

Atlassian Confluence Content API — Macro. 1 operations. Lead operation: Atlassian Get Macro Body by Macro Id. Self-contained Naftiko capability covering one Atlassian business surface.

Run with Naftiko AtlassianMacro

What You Can Do

GET
Getmacrobodybymacroid — Atlassian Get Macro Body by Macro Id
/v1/wiki/rest/api/content/{id}/history/{version}/macro/id/{macroid}

MCP Tools

atlassian-get-macro-body-macro

Atlassian Get Macro Body by Macro Id

read-only idempotent

Capability Spec

confluence-content-macro.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Atlassian Confluence Content API — Macro
  description: 'Atlassian Confluence Content API — Macro. 1 operations. Lead operation: Atlassian Get Macro Body by Macro
    Id. Self-contained Naftiko capability covering one Atlassian business surface.'
  tags:
  - Atlassian
  - Macro
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ATLASSIAN_API_KEY: ATLASSIAN_API_KEY
capability:
  consumes:
  - type: http
    namespace: confluence-content-macro
    baseUri: ''
    description: Atlassian Confluence Content API — Macro business capability. Self-contained, no shared references.
    resources:
    - name: wiki-rest-api-content-id-history-version-macro-id-macroId
      path: /wiki/rest/api/content/{id}/history/{version}/macro/id/{macroId}
      operations:
      - name: getmacrobodybymacroid
        method: GET
        description: Atlassian Get Macro Body by Macro Id
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The ID for the content that contains the macro.
          required: true
        - name: version
          in: path
          type: integer
          description: The version of the content that contains the macro. Specifying `0` as the `version` will return
          required: true
        - name: macroId
          in: path
          type: string
          description: The ID of the macro. This is usually passed by the app that the
          required: true
    authentication:
      type: bearer
      token: '{{env.ATLASSIAN_API_KEY}}'
  exposes:
  - type: rest
    namespace: confluence-content-macro-rest
    port: 8080
    description: REST adapter for Atlassian Confluence Content API — Macro. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/wiki/rest/api/content/{id}/history/{version}/macro/id/{macroid}
      name: wiki-rest-api-content-id-history-version-macro-id-macroid
      description: REST surface for wiki-rest-api-content-id-history-version-macro-id-macroId.
      operations:
      - method: GET
        name: getmacrobodybymacroid
        description: Atlassian Get Macro Body by Macro Id
        call: confluence-content-macro.getmacrobodybymacroid
        with:
          id: rest.id
          version: rest.version
          macroId: rest.macroId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: confluence-content-macro-mcp
    port: 9090
    transport: http
    description: MCP adapter for Atlassian Confluence Content API — Macro. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: atlassian-get-macro-body-macro
      description: Atlassian Get Macro Body by Macro Id
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: confluence-content-macro.getmacrobodybymacroid
      with:
        id: tools.id
        version: tools.version
        macroId: tools.macroId
      outputParameters:
      - type: object
        mapping: $.