FINOS · Capability

Agent API — Attachments

Agent API — Attachments. 1 operations. Lead operation: Download an attachment.. Self-contained Naftiko capability covering one Finos business surface.

Run with Naftiko FinosAttachments

What You Can Do

GET
Get — Download an attachment.
/v1/v1/stream/{sid}/attachment

MCP Tools

download-attachment

Download an attachment.

read-only idempotent

Capability Spec

symphony-agent-attachments.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Agent API — Attachments
  description: 'Agent API — Attachments. 1 operations. Lead operation: Download an attachment.. Self-contained Naftiko capability
    covering one Finos business surface.'
  tags:
  - Finos
  - Attachments
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    FINOS_API_KEY: FINOS_API_KEY
capability:
  consumes:
  - type: http
    namespace: symphony-agent-attachments
    baseUri: ''
    description: Agent API — Attachments business capability. Self-contained, no shared references.
    resources:
    - name: v1-stream-sid-attachment
      path: /v1/stream/{sid}/attachment
      operations:
      - name: get
        method: GET
        description: Download an attachment.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: sid
          in: path
          type: string
          description: Stream ID
          required: true
        - name: fileId
          in: query
          type: string
          description: The attachment ID (Base64-encoded)
          required: true
        - name: messageId
          in: query
          type: string
          description: The ID of the message containing the attachment
          required: true
        - name: sessionToken
          in: header
          type: string
          description: Session authentication token.
          required: true
        - name: keyManagerToken
          in: header
          type: string
          description: Key Manager authentication token.
  exposes:
  - type: rest
    namespace: symphony-agent-attachments-rest
    port: 8080
    description: REST adapter for Agent API — Attachments. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/v1/stream/{sid}/attachment
      name: v1-stream-sid-attachment
      description: REST surface for v1-stream-sid-attachment.
      operations:
      - method: GET
        name: get
        description: Download an attachment.
        call: symphony-agent-attachments.get
        with:
          sid: rest.sid
          fileId: rest.fileId
          messageId: rest.messageId
          sessionToken: rest.sessionToken
          keyManagerToken: rest.keyManagerToken
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: symphony-agent-attachments-mcp
    port: 9090
    transport: http
    description: MCP adapter for Agent API — Attachments. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: download-attachment
      description: Download an attachment.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: symphony-agent-attachments.get
      with:
        sid: tools.sid
        fileId: tools.fileId
        messageId: tools.messageId
        sessionToken: tools.sessionToken
        keyManagerToken: tools.keyManagerToken
      outputParameters:
      - type: object
        mapping: $.