Lodol Docs

Box

API actions for the Box integration.

Box

Upload, share, and manage files stored in Box.


Create a shared link for a Box file. You can control whether the link allows downloads and previews.

Parameters

ParameterTypeRequiredDescription
file_idstringYes
accessstringNoWho can open the link.
allow_downloadbooleanNoSet to true to let people who can open the link to download the file.
allow_previewbooleanNoSet to true to let people who can open the link to preview the file.

Response

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

Download file

Download a file from Box.

Parameters

ParameterTypeRequiredDescription
file_idstringYes

Response

{
  "document_ref": "doc_0123456789abcdef0123456789abcdef",
  "file_name": "report.pdf"
}

List folder items

List the files and subfolders inside a Box folder.

Parameters

ParameterTypeRequiredDescription
folder_idstringYesThe ID of the Box folder to look in.

Response

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

Upload file

Upload a file to a Box folder and get a shareable link.

Parameters

ParameterTypeRequiredDescription
folder_idstringYes
file_pathstringYes
file_namestringNoA different name to save the file as in Box. If left blank, the original file name is used.

Response

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

On this page