Box · Capability

Box Platform API — Uploads

Box Platform API — Uploads. 2 operations. Lead operation: Box Upload file. Self-contained Naftiko capability covering one Box business surface.

Run with Naftiko BoxUploads

What You Can Do

POST
Postfilescontent — Box Upload file
/v1/files/content
POST
Postfilesidcontent — Box Upload file version
/v1/files/{file-id}/content

MCP Tools

box-upload-file

Box Upload file

box-upload-file-version

Box Upload file version

Capability Spec

box-uploads.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Box Platform API — Uploads
  description: 'Box Platform API — Uploads. 2 operations. Lead operation: Box Upload file. Self-contained Naftiko capability
    covering one Box business surface.'
  tags:
  - Box
  - Uploads
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    BOX_API_KEY: BOX_API_KEY
capability:
  consumes:
  - type: http
    namespace: box-uploads
    baseUri: https://api.box.com/2.0
    description: Box Platform API — Uploads business capability. Self-contained, no shared references.
    resources:
    - name: files-content
      path: /files/content
      operations:
      - 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-file_id-content
      path: /files/{file_id}/content
      operations:
      - 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
    authentication:
      type: bearer
      token: '{{env.BOX_API_KEY}}'
  exposes:
  - type: rest
    namespace: box-uploads-rest
    port: 8080
    description: REST adapter for Box Platform API — Uploads. 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: POST
        name: postfilescontent
        description: Box Upload file
        call: box-uploads.postfilescontent
        with:
          fields: rest.fields
          content-md5: rest.content-md5
          body: rest.body
        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: POST
        name: postfilesidcontent
        description: Box Upload file version
        call: box-uploads.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: $.
  - type: mcp
    namespace: box-uploads-mcp
    port: 9090
    transport: http
    description: MCP adapter for Box Platform API — Uploads. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: box-upload-file
      description: Box Upload file
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: box-uploads.postfilescontent
      with:
        fields: tools.fields
        content-md5: tools.content-md5
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: box-upload-file-version
      description: Box Upload file version
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: box-uploads.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: $.