Box · Capability

Box Platform API — File Version Legal Holds

Box Platform API — File Version Legal Holds. 2 operations. Lead operation: Box List file version legal holds. Self-contained Naftiko capability covering one Box business surface.

Run with Naftiko BoxFile Version Legal Holds

What You Can Do

GET
Getfileversionlegalholds — Box List file version legal holds
/v1/file-version-legal-holds
GET
Getfileversionlegalholdsid — Box Get file version legal hold
/v1/file-version-legal-holds/{file-version-legal-hold-id}

MCP Tools

box-list-file-version-legal

Box List file version legal holds

read-only idempotent
box-get-file-version-legal

Box Get file version legal hold

read-only idempotent

Capability Spec

box-file-version-legal-holds.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Box Platform API — File Version Legal Holds
  description: 'Box Platform API — File Version Legal Holds. 2 operations. Lead operation: Box List file version legal holds.
    Self-contained Naftiko capability covering one Box business surface.'
  tags:
  - Box
  - File Version Legal Holds
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    BOX_API_KEY: BOX_API_KEY
capability:
  consumes:
  - type: http
    namespace: box-file-version-legal-holds
    baseUri: https://api.box.com/2.0
    description: Box Platform API — File Version Legal Holds business capability. Self-contained, no shared references.
    resources:
    - name: file_version_legal_holds
      path: /file_version_legal_holds
      operations:
      - name: getfileversionlegalholds
        method: GET
        description: Box List file version legal holds
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: policy_id
          in: query
          type: string
          description: The ID of the legal hold policy to get the file version legal
          required: true
        - name: marker
          in: query
          type: string
          description: Defines the position marker at which to begin returning results. This is
        - name: limit
          in: query
          type: integer
          description: The maximum number of items to return per page.
    - name: file_version_legal_holds-file_version_legal_hold_id
      path: /file_version_legal_holds/{file_version_legal_hold_id}
      operations:
      - name: getfileversionlegalholdsid
        method: GET
        description: Box Get file version legal hold
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: file_version_legal_hold_id
          in: path
          type: string
          description: The ID of the file version legal hold
          required: true
    authentication:
      type: bearer
      token: '{{env.BOX_API_KEY}}'
  exposes:
  - type: rest
    namespace: box-file-version-legal-holds-rest
    port: 8080
    description: REST adapter for Box Platform API — File Version Legal Holds. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/file-version-legal-holds
      name: file-version-legal-holds
      description: REST surface for file_version_legal_holds.
      operations:
      - method: GET
        name: getfileversionlegalholds
        description: Box List file version legal holds
        call: box-file-version-legal-holds.getfileversionlegalholds
        with:
          policy_id: rest.policy_id
          marker: rest.marker
          limit: rest.limit
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/file-version-legal-holds/{file-version-legal-hold-id}
      name: file-version-legal-holds-file-version-legal-hold-id
      description: REST surface for file_version_legal_holds-file_version_legal_hold_id.
      operations:
      - method: GET
        name: getfileversionlegalholdsid
        description: Box Get file version legal hold
        call: box-file-version-legal-holds.getfileversionlegalholdsid
        with:
          file_version_legal_hold_id: rest.file_version_legal_hold_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: box-file-version-legal-holds-mcp
    port: 9090
    transport: http
    description: MCP adapter for Box Platform API — File Version Legal Holds. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: box-list-file-version-legal
      description: Box List file version legal holds
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: box-file-version-legal-holds.getfileversionlegalholds
      with:
        policy_id: tools.policy_id
        marker: tools.marker
        limit: tools.limit
      outputParameters:
      - type: object
        mapping: $.
    - name: box-get-file-version-legal
      description: Box Get file version legal hold
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: box-file-version-legal-holds.getfileversionlegalholdsid
      with:
        file_version_legal_hold_id: tools.file_version_legal_hold_id
      outputParameters:
      - type: object
        mapping: $.