naftiko: 1.0.0-alpha2 info: label: Box Platform API — File Versions description: 'Box Platform API — File Versions. 5 operations. Lead operation: Box List all file versions. Self-contained Naftiko capability covering one Box business surface.' tags: - Box - File Versions 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-versions baseUri: https://api.box.com/2.0 description: Box Platform API — File Versions business capability. Self-contained, no shared references. resources: - name: files-file_id-versions path: /files/{file_id}/versions operations: - name: getfilesidversions method: GET description: Box List all file versions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: file_id in: path type: string description: The unique identifier that represents a file. required: true - name: fields in: query type: array description: A comma-separated list of attributes to include in the - name: limit in: query type: integer description: The maximum number of items to return per page. - name: offset in: query type: integer description: The offset of the item at which to begin the response. - name: files-file_id-versions-current path: /files/{file_id}/versions/current operations: - name: postfilesidversionscurrent method: POST description: Box Promote file version outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: file_id in: path type: string description: The unique identifier that represents a file. required: true - name: fields in: query type: array description: A comma-separated list of attributes to include in the - name: body in: body type: object description: Request body (JSON). required: false - name: files-file_id-versions-file_version_id path: /files/{file_id}/versions/{file_version_id} operations: - name: getfilesidversionsid method: GET description: Box Get file version outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: file_id in: path type: string description: The unique identifier that represents a file. required: true - name: fields in: query type: array description: A comma-separated list of attributes to include in the - name: file_version_id in: path type: string description: The ID of the file version required: true - name: deletefilesidversionsid method: DELETE description: Box Remove file version outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: file_id in: path type: string description: The unique identifier that represents a file. required: true - name: file_version_id in: path type: string description: The ID of the file version required: true - name: if-match in: header type: string description: Ensures this item hasn't recently changed before - name: putfilesidversionsid method: PUT description: Box Restore file version outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: file_id in: path type: string description: The unique identifier that represents a file. required: true - name: file_version_id in: path type: string description: The ID of the file version required: true - name: body in: body type: object description: Request body (JSON). required: false authentication: type: bearer token: '{{env.BOX_API_KEY}}' exposes: - type: rest namespace: box-file-versions-rest port: 8080 description: REST adapter for Box Platform API — File Versions. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/files/{file-id}/versions name: files-file-id-versions description: REST surface for files-file_id-versions. operations: - method: GET name: getfilesidversions description: Box List all file versions call: box-file-versions.getfilesidversions with: file_id: rest.file_id fields: rest.fields limit: rest.limit offset: rest.offset outputParameters: - type: object mapping: $. - path: /v1/files/{file-id}/versions/current name: files-file-id-versions-current description: REST surface for files-file_id-versions-current. operations: - method: POST name: postfilesidversionscurrent description: Box Promote file version call: box-file-versions.postfilesidversionscurrent with: file_id: rest.file_id fields: rest.fields body: rest.body outputParameters: - type: object mapping: $. - path: /v1/files/{file-id}/versions/{file-version-id} name: files-file-id-versions-file-version-id description: REST surface for files-file_id-versions-file_version_id. operations: - method: GET name: getfilesidversionsid description: Box Get file version call: box-file-versions.getfilesidversionsid with: file_id: rest.file_id fields: rest.fields file_version_id: rest.file_version_id outputParameters: - type: object mapping: $. - method: DELETE name: deletefilesidversionsid description: Box Remove file version call: box-file-versions.deletefilesidversionsid with: file_id: rest.file_id file_version_id: rest.file_version_id if-match: rest.if-match outputParameters: - type: object mapping: $. - method: PUT name: putfilesidversionsid description: Box Restore file version call: box-file-versions.putfilesidversionsid with: file_id: rest.file_id file_version_id: rest.file_version_id body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: box-file-versions-mcp port: 9090 transport: http description: MCP adapter for Box Platform API — File Versions. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: box-list-all-file-versions description: Box List all file versions hints: readOnly: true destructive: false idempotent: true call: box-file-versions.getfilesidversions with: file_id: tools.file_id fields: tools.fields limit: tools.limit offset: tools.offset outputParameters: - type: object mapping: $. - name: box-promote-file-version description: Box Promote file version hints: readOnly: false destructive: false idempotent: false call: box-file-versions.postfilesidversionscurrent with: file_id: tools.file_id fields: tools.fields body: tools.body outputParameters: - type: object mapping: $. - name: box-get-file-version description: Box Get file version hints: readOnly: true destructive: false idempotent: true call: box-file-versions.getfilesidversionsid with: file_id: tools.file_id fields: tools.fields file_version_id: tools.file_version_id outputParameters: - type: object mapping: $. - name: box-remove-file-version description: Box Remove file version hints: readOnly: false destructive: true idempotent: true call: box-file-versions.deletefilesidversionsid with: file_id: tools.file_id file_version_id: tools.file_version_id if-match: tools.if-match outputParameters: - type: object mapping: $. - name: box-restore-file-version description: Box Restore file version hints: readOnly: false destructive: false idempotent: true call: box-file-versions.putfilesidversionsid with: file_id: tools.file_id file_version_id: tools.file_version_id body: tools.body outputParameters: - type: object mapping: $.