Lodol Docs

Box

API actions for the Box integration.

Box

Upload, share, and manage files stored in Box.


Create or fetch a shared link for a Box file with optional permissions.

Parameters

ParameterTypeRequiredDescription
file_idstringYesBox file ID
accessstringNoAccess level
allow_downloadbooleanNoAllow downloads
allow_previewbooleanNoAllow previews

Response

{
  "shared_link": "https://box.com/s/abc123xyz789def456"
}

Download file

Download a Box file to a specific path on disk.

Parameters

ParameterTypeRequiredDescription
file_idstringYesBox file ID
destination_pathstringYesDestination file path

Response

{
  "downloaded_path": "/tmp/downloads/report.pdf"
}

List folder items

Return the files and subfolders for a given Box folder.

Parameters

ParameterTypeRequiredDescription
folder_idstringYesBox folder ID
limitnumberNoMaximum items to return
offsetnumberNoFirst item index

Response

{
  "items": [
    {
      "id": "987654321",
      "name": "report.pdf",
      "type": "file"
    }
  ]
}

Upload file

Upload a local file into a Box folder and return a shareable link.

Parameters

ParameterTypeRequiredDescription
folder_idstringYesBox folder ID
file_pathstringYesUploaded file reference for the file to upload.
file_namestringNoUploaded file name override

Response

{
  "file_id": "123456789",
  "file_link": "https://app.box.com/file/123456789"
}

On this page