naftiko: 1.0.0-alpha2 info: label: Box Files API — Files description: 'Box Files API — Files. 47 operations. Lead operation: Box Preflight check before upload. Self-contained Naftiko capability covering one Box business surface.' tags: - Box - Files created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: BOX_API_KEY: BOX_API_KEY capability: consumes: - type: http namespace: files-files baseUri: '' description: Box Files API — Files business capability. Self-contained, no shared references. resources: - name: files-content path: /files/content operations: - name: optionsfilescontent method: OPTIONS description: Box Preflight check before upload outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: postfilescontent method: POST description: Box Upload file outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: fields in: query type: array description: A comma-separated list of attributes to include in the - name: content-md5 in: header type: string description: An optional header containing the SHA1 hash of the file to - name: body in: body type: object description: Request body (JSON). required: false - name: files-upload_sessions path: /files/upload_sessions operations: - name: postfilesuploadsessions method: POST description: Box Create upload session outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: files-upload_sessions-upload_session_id path: /files/upload_sessions/{upload_session_id} operations: - name: getfilesuploadsessionsid method: GET description: Box Get upload session outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: upload_session_id in: path type: string description: The ID of the upload session. required: true - name: putfilesuploadsessionsid method: PUT description: Box Upload part of file outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: upload_session_id in: path type: string description: The ID of the upload session. required: true - name: digest in: header type: string description: The [RFC3230][1] message digest of the chunk uploaded. required: true - name: content-range in: header type: string description: The byte range of the chunk. required: true - name: body in: body type: object description: Request body (JSON). required: false - name: deletefilesuploadsessionsid method: DELETE description: Box Remove upload session outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: upload_session_id in: path type: string description: The ID of the upload session. required: true - name: files-upload_sessions-upload_session_id-commit path: /files/upload_sessions/{upload_session_id}/commit operations: - name: postfilesuploadsessionsidcommit method: POST description: Box Commit upload session outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: upload_session_id in: path type: string description: The ID of the upload session. required: true - name: digest in: header type: string description: The [RFC3230][1] message digest of the whole file. required: true - name: if-match in: header type: string description: Ensures this item hasn't recently changed before - name: if-none-match in: header type: string description: Ensures an item is only returned if it has changed. - name: body in: body type: object description: Request body (JSON). required: false - name: files-upload_sessions-upload_session_id-parts path: /files/upload_sessions/{upload_session_id}/parts operations: - name: getfilesuploadsessionsidparts method: GET description: Box List parts outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: upload_session_id in: path type: string description: The ID of the upload session. required: true - name: offset in: query type: integer description: The offset of the item at which to begin the response. - name: limit in: query type: integer description: The maximum number of items to return per page. - name: files-file_id path: /files/{file_id} operations: - name: getfilesid method: GET description: Box Get file information 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: if-none-match in: header type: string description: Ensures an item is only returned if it has changed. - name: boxapi in: header type: string description: The URL, and optional password, for the shared link of this item. - name: x-rep-hints in: header type: string description: A header required to request specific `representations` - name: postfilesid method: POST description: Box Restore file 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: putfilesid method: PUT description: Box Update file 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: if-match in: header type: string description: Ensures this item hasn't recently changed before - name: body in: body type: object description: Request body (JSON). required: false - name: deletefilesid method: DELETE description: Box Delete file 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: if-match in: header type: string description: Ensures this item hasn't recently changed before - name: files-file_id}#add_shared_link path: /files/{file_id}#add_shared_link operations: - name: putfilesidaddsharedlink method: PUT description: Box Add shared link to file 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: string description: Explicitly request the `shared_link` fields required: true - name: body in: body type: object description: Request body (JSON). required: false - name: files-file_id}#get_shared_link path: /files/{file_id}#get_shared_link operations: - name: getfilesidgetsharedlink method: GET description: Box Get shared link for file 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: string description: Explicitly request the `shared_link` fields required: true - name: files-file_id}#remove_shared_link path: /files/{file_id}#remove_shared_link operations: - name: putfilesidremovesharedlink method: PUT description: Box Remove shared link from file 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: string description: Explicitly request the `shared_link` fields required: true - name: body in: body type: object description: Request body (JSON). required: false - name: files-file_id}#update_shared_link path: /files/{file_id}#update_shared_link operations: - name: putfilesidupdatesharedlink method: PUT description: Box Update shared link on file 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: string description: Explicitly request the `shared_link` fields required: true - name: body in: body type: object description: Request body (JSON). required: false - name: files-file_id-collaborations path: /files/{file_id}/collaborations operations: - name: getfilesidcollaborations method: GET description: Box List file collaborations 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: marker in: query type: string description: Defines the position marker at which to begin returning results. This is - name: files-file_id-comments path: /files/{file_id}/comments operations: - name: getfilesidcomments method: GET description: Box List file comments 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-content path: /files/{file_id}/content operations: - name: getfilesidcontent method: GET description: Box Download file 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: range in: header type: string description: The byte range of the content to download. - name: boxapi in: header type: string description: The URL, and optional password, for the shared link of this item. - name: version in: query type: string description: The file version to download - name: access_token in: query type: string description: An optional access token that can be used to pre-authenticate this request, which means that a download link can be shared with a browser or a third party servi - name: postfilesidcontent method: POST description: Box Upload 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: if-match in: header type: string description: Ensures this item hasn't recently changed before - name: fields in: query type: array description: A comma-separated list of attributes to include in the - name: content-md5 in: header type: string description: An optional header containing the SHA1 hash of the file to - name: body in: body type: object description: Request body (JSON). required: false - name: files-file_id-copy path: /files/{file_id}/copy operations: - name: postfilesidcopy method: POST description: Box Copy file 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-metadata path: /files/{file_id}/metadata operations: - name: getfilesidmetadata method: GET description: Box List metadata instances on file 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: files-file_id-metadata-enterprise-securityClassification-6VMVochwUWo path: /files/{file_id}/metadata/enterprise/securityClassification-6VMVochwUWo operations: - name: getfilesidmetadataenterprisesecurityclassification6vmvochwuwo method: GET description: Box Get classification on file 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: postfilesidmetadataenterprisesecurityclassification6vmvochwuwo method: POST description: Box Add classification to file 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: body in: body type: object description: Request body (JSON). required: false - name: putfilesidmetadataenterprisesecurityclassification6vmvochwuwo method: PUT description: Box Update classification on file 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: body in: body type: object description: Request body (JSON). required: false - name: deletefilesidmetadataenterprisesecurityclassification6vmvochwuwo method: DELETE description: Box Remove classification from file 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: files-file_id-metadata-global-boxSkillsCards path: /files/{file_id}/metadata/global/boxSkillsCards operations: - name: getfilesidmetadataglobalboxskillscards method: GET description: List Box Skill cards on file 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: postfilesidmetadataglobalboxskillscards method: POST description: Create Box Skill cards on file 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: body in: body type: object description: Request body (JSON). required: false - name: putfilesidmetadataglobalboxskillscards method: PUT description: Update Box Skill cards on file 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: body in: body type: object description: Request body (JSON). required: false - name: deletefilesidmetadataglobalboxskillscards method: DELETE description: Remove Box Skill cards from file 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: files-file_id-metadata-scope-template_key path: /files/{file_id}/metadata/{scope}/{template_key} operations: - name: getfilesidmetadataidid method: GET description: Box Get metadata instance on file 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: scope in: path type: string description: The scope of the metadata template required: true - name: template_key in: path type: string description: The name of the metadata template required: true - name: postfilesidmetadataidid method: POST description: Box Create metadata instance on file 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: scope in: path type: string description: The scope of the metadata template required: true - name: template_key in: path type: string description: The name of the metadata template required: true - name: body in: body type: object description: Request body (JSON). required: false - name: putfilesidmetadataidid method: PUT description: Box Update metadata instance on file 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: scope in: path type: string description: The scope of the metadata template required: true - name: template_key in: path type: string description: The name of the metadata template required: true - name: body in: body type: object description: Request body (JSON). required: false - name: deletefilesidmetadataidid method: DELETE description: Box Remove metadata instance from file 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: scope in: path type: string description: The scope of the metadata template required: true - name: template_key in: path type: string description: The name of the metadata template required: true - name: files-file_id-tasks path: /files/{file_id}/tasks operations: - name: getfilesidtasks method: GET description: Box List tasks on file 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: files-file_id-thumbnail.{extension} path: /files/{file_id}/thumbnail.{extension} operations: - name: getfilesidthumbnailid method: GET description: Box Get file thumbnail 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: extension in: path type: string description: The file format for the thumbnail required: true - name: min_height in: query type: integer description: The minimum height of the thumbnail - name: min_width in: query type: integer description: The minimum width of the thumbnail - name: max_height in: query type: integer description: The maximum height of the thumbnail - name: max_width in: query type: integer description: The maximum width of the thumbnail - name: files-file_id-trash path: /files/{file_id}/trash operations: - name: getfilesidtrash method: GET description: Box Get trashed file 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: deletefilesidtrash method: DELETE description: Box Permanently remove file 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: files-file_id-upload_sessions path: /files/{file_id}/upload_sessions operations: - name: postfilesiduploadsessions method: POST description: Box Create upload session for existing file 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: body in: body type: object description: Request body (JSON). required: false - 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 - name: files-file_id-watermark path: /files/{file_id}/watermark operations: - name: getfilesidwatermark method: GET description: Box Get watermark on file 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: putfilesidwatermark method: PUT description: Box Apply watermark to file 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: body in: body type: object description: Request body (JSON). required: false - name: deletefilesidwatermark method: DELETE description: Box Remove watermark from file 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 exposes: - type: rest namespace: files-files-rest port: 8080 description: REST adapter for Box Files API — Files. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/files/content name: files-content description: REST surface for files-content. operations: - method: OPTIONS name: optionsfilescontent description: Box Preflight check before upload call: files-files.optionsfilescontent with: body: rest.body outputParameters: - type: object mapping: $. - method: POST name: postfilescontent description: Box Upload file call: files-files.postfilescontent with: fields: rest.fields content-md5: rest.content-md5 body: rest.body outputParameters: - type: object mapping: $. - path: /v1/files/upload-sessions name: files-upload-sessions description: REST surface for files-upload_sessions. operations: - method: POST name: postfilesuploadsessions description: Box Create upload session call: files-files.postfilesuploadsessions with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/files/upload-sessions/{upload-session-id} name: files-upload-sessions-upload-session-id description: REST surface for files-upload_sessions-upload_session_id. operations: - method: GET name: getfilesuploadsessionsid description: Box Get upload session call: files-files.getfilesuploadsessionsid with: upload_session_id: rest.upload_session_id outputParameters: - type: object mapping: $. - method: PUT name: putfilesuploadsessionsid description: Box Upload part of file call: files-files.putfilesuploadsessionsid with: upload_session_id: rest.upload_session_id digest: rest.digest content-range: rest.content-range body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletefilesuploadsessionsid description: Box Remove upload session call: files-files.deletefilesuploadsessionsid with: upload_session_id: rest.upload_session_id outputParameters: - type: object mapping: $. - path: /v1/files/upload-sessions/{upload-session-id}/commit name: files-upload-sessions-upload-session-id-commit description: REST surface for files-upload_sessions-upload_session_id-commit. operations: - method: POST name: postfilesuploadsessionsidcommit description: Box Commit upload session call: files-files.postfilesuploadsessionsidcommit with: upload_session_id: rest.upload_session_id digest: rest.digest if-match: rest.if-match if-none-match: rest.if-none-match body: rest.body outputParameters: - type: object mapping: $. - path: /v1/files/upload-sessions/{upload-session-id}/parts name: files-upload-sessions-upload-session-id-parts description: REST surface for files-upload_sessions-upload_session_id-parts. operations: - method: GET name: getfilesuploadsessionsidparts description: Box List parts call: files-files.getfilesuploadsessionsidparts with: upload_session_id: rest.upload_session_id offset: rest.offset limit: rest.limit outputParameters: - type: object mapping: $. - path: /v1/files/{file-id} name: files-file-id description: REST surface for files-file_id. operations: - method: GET name: getfilesid description: Box Get file information call: files-files.getfilesid with: file_id: rest.file_id fields: rest.fields if-none-match: rest.if-none-match boxapi: rest.boxapi x-rep-hints: rest.x-rep-hints outputParameters: - type: object mapping: $. - method: POST name: postfilesid description: Box Restore file call: files-files.postfilesid with: file_id: rest.file_id fields: rest.fields body: rest.body outputParameters: - type: object mapping: $. - method: PUT name: putfilesid description: Box Update file call: files-files.putfilesid with: file_id: rest.file_id fields: rest.fields if-match: rest.if-match body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletefilesid description: Box Delete file call: files-files.deletefilesid with: file_id: rest.file_id if-match: rest.if-match outputParameters: - type: object mapping: $. - path: /v1/files/file-id-add-shared-link name: files-file-id-add-shared-link description: REST surface for files-file_id}#add_shared_link. operations: - method: PUT name: putfilesidaddsharedlink description: Box Add shared link to file call: files-files.putfilesidaddsharedlink with: file_id: rest.file_id fields: rest.fields body: rest.body outputParameters: - type: object mapping: $. - path: /v1/files/file-id-get-shared-link name: files-file-id-get-shared-link description: REST surface for files-file_id}#get_shared_link. operations: - method: GET name: getfilesidgetsharedlink description: Box Get shared link for file call: files-files.getfilesidgetsharedlink with: file_id: rest.file_id fields: rest.fields outputParameters: - type: object mapping: $. - path: /v1/files/file-id-remove-shared-link name: files-file-id-remove-shared-link description: REST surface for files-file_id}#remove_shared_link. operations: - method: PUT name: putfilesidremovesharedlink description: Box Remove shared link from file call: files-files.putfilesidremovesharedlink with: file_id: rest.file_id fields: rest.fields body: rest.body outputParameters: - type: object mapping: $. - path: /v1/files/file-id-update-shared-link name: files-file-id-update-shared-link description: REST surface for files-file_id}#update_shared_link. operations: - method: PUT name: putfilesidupdatesharedlink description: Box Update shared link on file call: files-files.putfilesidupdatesharedlink with: file_id: rest.file_id fields: rest.fields body: rest.body outputParameters: - type: object mapping: $. - path: /v1/files/{file-id}/collaborations name: files-file-id-collaborations description: REST surface for files-file_id-collaborations. operations: - method: GET name: getfilesidcollaborations description: Box List file collaborations call: files-files.getfilesidcollaborations with: file_id: rest.file_id fields: rest.fields limit: rest.limit marker: rest.marker outputParameters: - type: object mapping: $. - path: /v1/files/{file-id}/comments name: files-file-id-comments description: REST surface for files-file_id-comments. operations: - method: GET name: getfilesidcomments description: Box List file comments call: files-files.getfilesidcomments with: file_id: rest.file_id fields: rest.fields limit: rest.limit offset: rest.offset outputParameters: - type: object mapping: $. - path: /v1/files/{file-id}/content name: files-file-id-content description: REST surface for files-file_id-content. operations: - method: GET name: getfilesidcontent description: Box Download file call: files-files.getfilesidcontent with: file_id: rest.file_id range: rest.range boxapi: rest.boxapi version: rest.version access_token: rest.access_token outputParameters: - type: object mapping: $. - method: POST name: postfilesidcontent description: Box Upload file version call: files-files.postfilesidcontent with: file_id: rest.file_id if-match: rest.if-match fields: rest.fields content-md5: rest.content-md5 body: rest.body outputParameters: - type: object mapping: $. - path: /v1/files/{file-id}/copy name: files-file-id-copy description: REST surface for files-file_id-copy. operations: - method: POST name: postfilesidcopy description: Box Copy file call: files-files.postfilesidcopy with: file_id: rest.file_id fields: rest.fields body: rest.body outputParameters: - type: object mapping: $. - path: /v1/files/{file-id}/metadata name: files-file-id-metadata description: REST surface for files-file_id-metadata. operations: - method: GET name: getfilesidmetadata description: Box List metadata instances on file call: files-files.getfilesidmetadata with: file_id: rest.file_id outputParameters: - type: object mapping: $. - path: /v1/files/{file-id}/metadata/enterprise/securityclassification-6vmvochwuwo name: files-file-id-metadata-enterprise-securityclassification-6vmvochwuwo description: REST surface for files-file_id-metadata-enterprise-securityClassification-6VMVochwUWo. operations: - method: GET name: getfilesidmetadataenterprisesecurityclassification6vmvochwuwo description: Box Get classification on file call: files-files.getfilesidmetadataenterprisesecurityclassification6vmvochwuwo with: file_id: rest.file_id outputParameters: - type: object mapping: $. - method: POST name: postfilesidmetadataenterprisesecurityclassification6vmvochwuwo description: Box Add classification to file call: files-files.postfilesidmetadataenterprisesecurityclassification6vmvochwuwo with: file_id: rest.file_id body: rest.body outputParameters: - type: object mapping: $. - method: PUT name: putfilesidmetadataenterprisesecurityclassification6vmvochwuwo description: Box Update classification on file call: files-files.putfilesidmetadataenterprisesecurityclassification6vmvochwuwo with: file_id: rest.file_id body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletefilesidmetadataenterprisesecurityclassification6vmvochwuwo description: Box Remove classification from file call: files-files.deletefilesidmetadataenterprisesecurityclassification6vmvochwuwo with: file_id: rest.file_id outputParameters: - type: object mapping: $. - path: /v1/files/{file-id}/metadata/global/boxskillscards name: files-file-id-metadata-global-boxskillscards description: REST surface for files-file_id-metadata-global-boxSkillsCards. operations: - method: GET name: getfilesidmetadataglobalboxskillscards description: List Box Skill cards on file call: files-files.getfilesidmetadataglobalboxskillscards with: file_id: rest.file_id outputParameters: - type: object mapping: $. - method: POST name: postfilesidmetadataglobalboxskillscards description: Create Box Skill cards on file call: files-files.postfilesidmetadataglobalboxskillscards with: file_id: rest.file_id body: rest.body outputParameters: - type: object mapping: $. - method: PUT name: putfilesidmetadataglobalboxskillscards description: Update Box Skill cards on file call: files-files.putfilesidmetadataglobalboxskillscards with: file_id: rest.file_id body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletefilesidmetadataglobalboxskillscards description: Remove Box Skill cards from file call: files-files.deletefilesidmetadataglobalboxskillscards with: file_id: rest.file_id outputParameters: - type: object mapping: $. - path: /v1/files/{file-id}/metadata/{scope}/{template-key} name: files-file-id-metadata-scope-template-key description: REST surface for files-file_id-metadata-scope-template_key. operations: - method: GET name: getfilesidmetadataidid description: Box Get metadata instance on file call: files-files.getfilesidmetadataidid with: file_id: rest.file_id scope: rest.scope template_key: rest.template_key outputParameters: - type: object mapping: $. - method: POST name: postfilesidmetadataidid description: Box Create metadata instance on file call: files-files.postfilesidmetadataidid with: file_id: rest.file_id scope: rest.scope template_key: rest.template_key body: rest.body outputParameters: - type: object mapping: $. - method: PUT name: putfilesidmetadataidid description: Box Update metadata instance on file call: files-files.putfilesidmetadataidid with: file_id: rest.file_id scope: rest.scope template_key: rest.template_key body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletefilesidmetadataidid description: Box Remove metadata instance from file call: files-files.deletefilesidmetadataidid with: file_id: rest.file_id scope: rest.scope template_key: rest.template_key outputParameters: - type: object mapping: $. - path: /v1/files/{file-id}/tasks name: files-file-id-tasks description: REST surface for files-file_id-tasks. operations: - method: GET name: getfilesidtasks description: Box List tasks on file call: files-files.getfilesidtasks with: file_id: rest.file_id outputParameters: - type: object mapping: $. - path: /v1/files/{file-id}/thumbnail-extension name: files-file-id-thumbnail-extension description: REST surface for files-file_id-thumbnail.{extension}. operations: - method: GET name: getfilesidthumbnailid description: Box Get file thumbnail call: files-files.getfilesidthumbnailid with: file_id: rest.file_id extension: rest.extension min_height: rest.min_height min_width: rest.min_width max_height: rest.max_height max_width: rest.max_width outputParameters: - type: object mapping: $. - path: /v1/files/{file-id}/trash name: files-file-id-trash description: REST surface for files-file_id-trash. operations: - method: GET name: getfilesidtrash description: Box Get trashed file call: files-files.getfilesidtrash with: file_id: rest.file_id fields: rest.fields outputParameters: - type: object mapping: $. - method: DELETE name: deletefilesidtrash description: Box Permanently remove file call: files-files.deletefilesidtrash with: file_id: rest.file_id outputParameters: - type: object mapping: $. - path: /v1/files/{file-id}/upload-sessions name: files-file-id-upload-sessions description: REST surface for files-file_id-upload_sessions. operations: - method: POST name: postfilesiduploadsessions description: Box Create upload session for existing file call: files-files.postfilesiduploadsessions with: file_id: rest.file_id body: rest.body outputParameters: - type: object mapping: $. - 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: files-files.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: files-files.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: files-files.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: files-files.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: files-files.putfilesidversionsid with: file_id: rest.file_id file_version_id: rest.file_version_id body: rest.body outputParameters: - type: object mapping: $. - path: /v1/files/{file-id}/watermark name: files-file-id-watermark description: REST surface for files-file_id-watermark. operations: - method: GET name: getfilesidwatermark description: Box Get watermark on file call: files-files.getfilesidwatermark with: file_id: rest.file_id outputParameters: - type: object mapping: $. - method: PUT name: putfilesidwatermark description: Box Apply watermark to file call: files-files.putfilesidwatermark with: file_id: rest.file_id body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletefilesidwatermark description: Box Remove watermark from file call: files-files.deletefilesidwatermark with: file_id: rest.file_id outputParameters: - type: object mapping: $. - type: mcp namespace: files-files-mcp port: 9090 transport: http description: MCP adapter for Box Files API — Files. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: box-preflight-check-before-upload description: Box Preflight check before upload hints: readOnly: false destructive: false idempotent: false call: files-files.optionsfilescontent with: body: tools.body outputParameters: - type: object mapping: $. - name: box-upload-file description: Box Upload file hints: readOnly: false destructive: false idempotent: false call: files-files.postfilescontent with: fields: tools.fields content-md5: tools.content-md5 body: tools.body outputParameters: - type: object mapping: $. - name: box-create-upload-session description: Box Create upload session hints: readOnly: false destructive: false idempotent: false call: files-files.postfilesuploadsessions with: body: tools.body outputParameters: - type: object mapping: $. - name: box-get-upload-session description: Box Get upload session hints: readOnly: true destructive: false idempotent: true call: files-files.getfilesuploadsessionsid with: upload_session_id: tools.upload_session_id outputParameters: - type: object mapping: $. - name: box-upload-part-file description: Box Upload part of file hints: readOnly: false destructive: false idempotent: true call: files-files.putfilesuploadsessionsid with: upload_session_id: tools.upload_session_id digest: tools.digest content-range: tools.content-range body: tools.body outputParameters: - type: object mapping: $. - name: box-remove-upload-session description: Box Remove upload session hints: readOnly: false destructive: true idempotent: true call: files-files.deletefilesuploadsessionsid with: upload_session_id: tools.upload_session_id outputParameters: - type: object mapping: $. - name: box-commit-upload-session description: Box Commit upload session hints: readOnly: false destructive: false idempotent: false call: files-files.postfilesuploadsessionsidcommit with: upload_session_id: tools.upload_session_id digest: tools.digest if-match: tools.if-match if-none-match: tools.if-none-match body: tools.body outputParameters: - type: object mapping: $. - name: box-list-parts description: Box List parts hints: readOnly: true destructive: false idempotent: true call: files-files.getfilesuploadsessionsidparts with: upload_session_id: tools.upload_session_id offset: tools.offset limit: tools.limit outputParameters: - type: object mapping: $. - name: box-get-file-information description: Box Get file information hints: readOnly: true destructive: false idempotent: true call: files-files.getfilesid with: file_id: tools.file_id fields: tools.fields if-none-match: tools.if-none-match boxapi: tools.boxapi x-rep-hints: tools.x-rep-hints outputParameters: - type: object mapping: $. - name: box-restore-file description: Box Restore file hints: readOnly: false destructive: false idempotent: false call: files-files.postfilesid with: file_id: tools.file_id fields: tools.fields body: tools.body outputParameters: - type: object mapping: $. - name: box-update-file description: Box Update file hints: readOnly: false destructive: false idempotent: true call: files-files.putfilesid with: file_id: tools.file_id fields: tools.fields if-match: tools.if-match body: tools.body outputParameters: - type: object mapping: $. - name: box-delete-file description: Box Delete file hints: readOnly: false destructive: true idempotent: true call: files-files.deletefilesid with: file_id: tools.file_id if-match: tools.if-match outputParameters: - type: object mapping: $. - name: box-add-shared-link-file description: Box Add shared link to file hints: readOnly: false destructive: false idempotent: true call: files-files.putfilesidaddsharedlink with: file_id: tools.file_id fields: tools.fields body: tools.body outputParameters: - type: object mapping: $. - name: box-get-shared-link-file description: Box Get shared link for file hints: readOnly: true destructive: false idempotent: true call: files-files.getfilesidgetsharedlink with: file_id: tools.file_id fields: tools.fields outputParameters: - type: object mapping: $. - name: box-remove-shared-link-file description: Box Remove shared link from file hints: readOnly: false destructive: false idempotent: true call: files-files.putfilesidremovesharedlink with: file_id: tools.file_id fields: tools.fields body: tools.body outputParameters: - type: object mapping: $. - name: box-update-shared-link-file description: Box Update shared link on file hints: readOnly: false destructive: false idempotent: true call: files-files.putfilesidupdatesharedlink with: file_id: tools.file_id fields: tools.fields body: tools.body outputParameters: - type: object mapping: $. - name: box-list-file-collaborations description: Box List file collaborations hints: readOnly: true destructive: false idempotent: true call: files-files.getfilesidcollaborations with: file_id: tools.file_id fields: tools.fields limit: tools.limit marker: tools.marker outputParameters: - type: object mapping: $. - name: box-list-file-comments description: Box List file comments hints: readOnly: true destructive: false idempotent: true call: files-files.getfilesidcomments with: file_id: tools.file_id fields: tools.fields limit: tools.limit offset: tools.offset outputParameters: - type: object mapping: $. - name: box-download-file description: Box Download file hints: readOnly: true destructive: false idempotent: true call: files-files.getfilesidcontent with: file_id: tools.file_id range: tools.range boxapi: tools.boxapi version: tools.version access_token: tools.access_token outputParameters: - type: object mapping: $. - name: box-upload-file-version description: Box Upload file version hints: readOnly: false destructive: false idempotent: false call: files-files.postfilesidcontent with: file_id: tools.file_id if-match: tools.if-match fields: tools.fields content-md5: tools.content-md5 body: tools.body outputParameters: - type: object mapping: $. - name: box-copy-file description: Box Copy file hints: readOnly: false destructive: false idempotent: false call: files-files.postfilesidcopy with: file_id: tools.file_id fields: tools.fields body: tools.body outputParameters: - type: object mapping: $. - name: box-list-metadata-instances-file description: Box List metadata instances on file hints: readOnly: true destructive: false idempotent: true call: files-files.getfilesidmetadata with: file_id: tools.file_id outputParameters: - type: object mapping: $. - name: box-get-classification-file description: Box Get classification on file hints: readOnly: true destructive: false idempotent: true call: files-files.getfilesidmetadataenterprisesecurityclassification6vmvochwuwo with: file_id: tools.file_id outputParameters: - type: object mapping: $. - name: box-add-classification-file description: Box Add classification to file hints: readOnly: false destructive: false idempotent: false call: files-files.postfilesidmetadataenterprisesecurityclassification6vmvochwuwo with: file_id: tools.file_id body: tools.body outputParameters: - type: object mapping: $. - name: box-update-classification-file description: Box Update classification on file hints: readOnly: false destructive: false idempotent: true call: files-files.putfilesidmetadataenterprisesecurityclassification6vmvochwuwo with: file_id: tools.file_id body: tools.body outputParameters: - type: object mapping: $. - name: box-remove-classification-file description: Box Remove classification from file hints: readOnly: false destructive: true idempotent: true call: files-files.deletefilesidmetadataenterprisesecurityclassification6vmvochwuwo with: file_id: tools.file_id outputParameters: - type: object mapping: $. - name: list-box-skill-cards-file description: List Box Skill cards on file hints: readOnly: true destructive: false idempotent: true call: files-files.getfilesidmetadataglobalboxskillscards with: file_id: tools.file_id outputParameters: - type: object mapping: $. - name: create-box-skill-cards-file description: Create Box Skill cards on file hints: readOnly: false destructive: false idempotent: false call: files-files.postfilesidmetadataglobalboxskillscards with: file_id: tools.file_id body: tools.body outputParameters: - type: object mapping: $. - name: update-box-skill-cards-file description: Update Box Skill cards on file hints: readOnly: false destructive: false idempotent: true call: files-files.putfilesidmetadataglobalboxskillscards with: file_id: tools.file_id body: tools.body outputParameters: - type: object mapping: $. - name: remove-box-skill-cards-file description: Remove Box Skill cards from file hints: readOnly: false destructive: true idempotent: true call: files-files.deletefilesidmetadataglobalboxskillscards with: file_id: tools.file_id outputParameters: - type: object mapping: $. - name: box-get-metadata-instance-file description: Box Get metadata instance on file hints: readOnly: true destructive: false idempotent: true call: files-files.getfilesidmetadataidid with: file_id: tools.file_id scope: tools.scope template_key: tools.template_key outputParameters: - type: object mapping: $. - name: box-create-metadata-instance-file description: Box Create metadata instance on file hints: readOnly: false destructive: false idempotent: false call: files-files.postfilesidmetadataidid with: file_id: tools.file_id scope: tools.scope template_key: tools.template_key body: tools.body outputParameters: - type: object mapping: $. - name: box-update-metadata-instance-file description: Box Update metadata instance on file hints: readOnly: false destructive: false idempotent: true call: files-files.putfilesidmetadataidid with: file_id: tools.file_id scope: tools.scope template_key: tools.template_key body: tools.body outputParameters: - type: object mapping: $. - name: box-remove-metadata-instance-file description: Box Remove metadata instance from file hints: readOnly: false destructive: true idempotent: true call: files-files.deletefilesidmetadataidid with: file_id: tools.file_id scope: tools.scope template_key: tools.template_key outputParameters: - type: object mapping: $. - name: box-list-tasks-file description: Box List tasks on file hints: readOnly: true destructive: false idempotent: true call: files-files.getfilesidtasks with: file_id: tools.file_id outputParameters: - type: object mapping: $. - name: box-get-file-thumbnail description: Box Get file thumbnail hints: readOnly: true destructive: false idempotent: true call: files-files.getfilesidthumbnailid with: file_id: tools.file_id extension: tools.extension min_height: tools.min_height min_width: tools.min_width max_height: tools.max_height max_width: tools.max_width outputParameters: - type: object mapping: $. - name: box-get-trashed-file description: Box Get trashed file hints: readOnly: true destructive: false idempotent: true call: files-files.getfilesidtrash with: file_id: tools.file_id fields: tools.fields outputParameters: - type: object mapping: $. - name: box-permanently-remove-file description: Box Permanently remove file hints: readOnly: false destructive: true idempotent: true call: files-files.deletefilesidtrash with: file_id: tools.file_id outputParameters: - type: object mapping: $. - name: box-create-upload-session-existing description: Box Create upload session for existing file hints: readOnly: false destructive: false idempotent: false call: files-files.postfilesiduploadsessions with: file_id: tools.file_id body: tools.body outputParameters: - type: object mapping: $. - name: box-list-all-file-versions description: Box List all file versions hints: readOnly: true destructive: false idempotent: true call: files-files.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: files-files.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: files-files.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: files-files.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: files-files.putfilesidversionsid with: file_id: tools.file_id file_version_id: tools.file_version_id body: tools.body outputParameters: - type: object mapping: $. - name: box-get-watermark-file description: Box Get watermark on file hints: readOnly: true destructive: false idempotent: true call: files-files.getfilesidwatermark with: file_id: tools.file_id outputParameters: - type: object mapping: $. - name: box-apply-watermark-file description: Box Apply watermark to file hints: readOnly: false destructive: false idempotent: true call: files-files.putfilesidwatermark with: file_id: tools.file_id body: tools.body outputParameters: - type: object mapping: $. - name: box-remove-watermark-file description: Box Remove watermark from file hints: readOnly: false destructive: true idempotent: true call: files-files.deletefilesidwatermark with: file_id: tools.file_id outputParameters: - type: object mapping: $.