Box

Manage files and folders via Box API. Upload, download, and share content securely.

dvcrn Updated 32 repo stars

File contents

Box

Enterprise cloud storage.

Environment

export BOX_ACCESS_TOKEN="xxxxxxxxxx"

List Files in Folder

curl "https://api.box.com/2.0/folders/0/items" -H "Authorization: Bearer $BOX_ACCESS_TOKEN"

Upload File

curl -X POST "https://upload.box.com/api/2.0/files/content" \
  -H "Authorization: Bearer $BOX_ACCESS_TOKEN" \
  -F "attributes={\"name\":\"file.txt\",\"parent\":{\"id\":\"0\"}}" \
  -F "file=@localfile.txt"

Download File

curl "https://api.box.com/2.0/files/{fileId}/content" -H "Authorization: Bearer $BOX_ACCESS_TOKEN" -o file.txt

Links

dvcrn/openclaw-skills-marketplace/tree/main/plugins/mrgoodb--box/skills/box commit 1fa2196968

Frequently asked questions

npx skillmds@latest add dvcrn/box-4