{
  "schemaVersion": "1.0",
  "item": {
    "slug": "box",
    "name": "Box",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/byungkyu/box",
    "canonicalUrl": "https://clawhub.ai/byungkyu/box",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/box",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=box",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "LICENSE.txt"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "slug": "box",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T23:43:50.037Z",
      "expiresAt": "2026-05-07T23:43:50.037Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=box",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=box",
        "contentDisposition": "attachment; filename=\"box-1.0.5.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "box"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/box"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/box",
    "agentPageUrl": "https://openagent3.xyz/skills/box/agent",
    "manifestUrl": "https://openagent3.xyz/skills/box/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/box/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Box",
        "body": "Access the Box API with managed OAuth authentication. Manage files, folders, collaborations, shared links, and cloud storage."
      },
      {
        "title": "Quick Start",
        "body": "# Get current user info\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/box/2.0/users/me')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Base URL",
        "body": "https://gateway.maton.ai/box/2.0/{resource}\n\nThe gateway proxies requests to api.box.com/2.0 and automatically injects your OAuth token."
      },
      {
        "title": "Authentication",
        "body": "All requests require the Maton API key in the Authorization header:\n\nAuthorization: Bearer $MATON_API_KEY\n\nEnvironment Variable: Set your API key as MATON_API_KEY:\n\nexport MATON_API_KEY=\"YOUR_API_KEY\""
      },
      {
        "title": "Getting Your API Key",
        "body": "Sign in or create an account at maton.ai\nGo to maton.ai/settings\nCopy your API key"
      },
      {
        "title": "Connection Management",
        "body": "Manage your Box OAuth connections at https://ctrl.maton.ai."
      },
      {
        "title": "List Connections",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections?app=box&status=ACTIVE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Create Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'box'}).encode()\nreq = urllib.request.Request('https://ctrl.maton.ai/connections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Get Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nResponse:\n\n{\n  \"connection\": {\n    \"connection_id\": \"bd484938-0902-4fc0-9ffb-2549d7d91f1d\",\n    \"status\": \"ACTIVE\",\n    \"creation_time\": \"2026-02-08T21:14:41.808115Z\",\n    \"last_updated_time\": \"2026-02-08T21:16:10.100340Z\",\n    \"url\": \"https://connect.maton.ai/?session_token=...\",\n    \"app\": \"box\",\n    \"metadata\": {}\n  }\n}\n\nOpen the returned url in a browser to complete OAuth authorization."
      },
      {
        "title": "Delete Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}', method='DELETE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Specifying Connection",
        "body": "If you have multiple Box connections, specify which one to use with the Maton-Connection header:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/box/2.0/users/me')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Maton-Connection', 'bd484938-0902-4fc0-9ffb-2549d7d91f1d')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nIf omitted, the gateway uses the default (oldest) active connection."
      },
      {
        "title": "User Info",
        "body": "Get Current User\n\nGET /box/2.0/users/me\n\nResponse:\n\n{\n  \"type\": \"user\",\n  \"id\": \"48806418054\",\n  \"name\": \"Chris\",\n  \"login\": \"chris@example.com\",\n  \"created_at\": \"2026-02-08T13:12:34-08:00\",\n  \"modified_at\": \"2026-02-08T13:12:35-08:00\",\n  \"language\": \"en\",\n  \"timezone\": \"America/Los_Angeles\",\n  \"space_amount\": 10737418240,\n  \"space_used\": 0,\n  \"max_upload_size\": 262144000,\n  \"status\": \"active\",\n  \"avatar_url\": \"https://app.box.com/api/avatar/large/48806418054\"\n}\n\nGet User\n\nGET /box/2.0/users/{user_id}"
      },
      {
        "title": "Folder Operations",
        "body": "Get Root Folder\n\nThe root folder has ID 0:\n\nGET /box/2.0/folders/0\n\nGet Folder\n\nGET /box/2.0/folders/{folder_id}\n\nResponse:\n\n{\n  \"type\": \"folder\",\n  \"id\": \"365037181307\",\n  \"name\": \"My Folder\",\n  \"description\": \"Folder description\",\n  \"size\": 0,\n  \"path_collection\": {\n    \"total_count\": 1,\n    \"entries\": [\n      {\"type\": \"folder\", \"id\": \"0\", \"name\": \"All Files\"}\n    ]\n  },\n  \"created_by\": {\"type\": \"user\", \"id\": \"48806418054\", \"name\": \"Chris\"},\n  \"owned_by\": {\"type\": \"user\", \"id\": \"48806418054\", \"name\": \"Chris\"},\n  \"item_status\": \"active\"\n}\n\nList Folder Items\n\nGET /box/2.0/folders/{folder_id}/items\n\nQuery parameters:\n\nlimit - Maximum items to return (default 100, max 1000)\noffset - Offset for pagination\nfields - Comma-separated list of fields to include\n\nResponse:\n\n{\n  \"total_count\": 1,\n  \"entries\": [\n    {\n      \"type\": \"folder\",\n      \"id\": \"365036703666\",\n      \"name\": \"Subfolder\"\n    }\n  ],\n  \"offset\": 0,\n  \"limit\": 100\n}\n\nCreate Folder\n\nPOST /box/2.0/folders\nContent-Type: application/json\n\n{\n  \"name\": \"New Folder\",\n  \"parent\": {\"id\": \"0\"}\n}\n\nResponse:\n\n{\n  \"type\": \"folder\",\n  \"id\": \"365037181307\",\n  \"name\": \"New Folder\",\n  \"created_at\": \"2026-02-08T14:56:17-08:00\"\n}\n\nUpdate Folder\n\nPUT /box/2.0/folders/{folder_id}\nContent-Type: application/json\n\n{\n  \"name\": \"Updated Folder Name\",\n  \"description\": \"Updated description\"\n}\n\nCopy Folder\n\nPOST /box/2.0/folders/{folder_id}/copy\nContent-Type: application/json\n\n{\n  \"name\": \"Copied Folder\",\n  \"parent\": {\"id\": \"0\"}\n}\n\nDelete Folder\n\nDELETE /box/2.0/folders/{folder_id}\n\nQuery parameters:\n\nrecursive - Set to true to delete non-empty folders\n\nReturns 204 No Content on success."
      },
      {
        "title": "File Operations",
        "body": "Get File Info\n\nGET /box/2.0/files/{file_id}\n\nDownload File\n\nGET /box/2.0/files/{file_id}/content\n\nReturns a redirect to the download URL.\n\nUpload File\n\nPOST https://upload.box.com/api/2.0/files/content\nContent-Type: multipart/form-data\n\nattributes={\"name\":\"file.txt\",\"parent\":{\"id\":\"0\"}}\nfile=<binary data>\n\nNote: File uploads use a different base URL: upload.box.com\n\nUpdate File Info\n\nPUT /box/2.0/files/{file_id}\nContent-Type: application/json\n\n{\n  \"name\": \"renamed-file.txt\",\n  \"description\": \"File description\"\n}\n\nCopy File\n\nPOST /box/2.0/files/{file_id}/copy\nContent-Type: application/json\n\n{\n  \"name\": \"copied-file.txt\",\n  \"parent\": {\"id\": \"0\"}\n}\n\nDelete File\n\nDELETE /box/2.0/files/{file_id}\n\nReturns 204 No Content on success.\n\nGet File Versions\n\nGET /box/2.0/files/{file_id}/versions"
      },
      {
        "title": "Shared Links",
        "body": "Create a shared link by updating a file or folder:\n\nPUT /box/2.0/folders/{folder_id}\nContent-Type: application/json\n\n{\n  \"shared_link\": {\n    \"access\": \"open\"\n  }\n}\n\nAccess levels:\n\nopen - Anyone with the link\ncompany - Only users in the enterprise\ncollaborators - Only collaborators\n\nResponse includes:\n\n{\n  \"shared_link\": {\n    \"url\": \"https://app.box.com/s/sisarrztrenabyygfwqggbwommf8uucv\",\n    \"access\": \"open\",\n    \"effective_access\": \"open\",\n    \"is_password_enabled\": false,\n    \"permissions\": {\n      \"can_preview\": true,\n      \"can_download\": true,\n      \"can_edit\": false\n    }\n  }\n}"
      },
      {
        "title": "Collaborations",
        "body": "List Folder Collaborations\n\nGET /box/2.0/folders/{folder_id}/collaborations\n\nCreate Collaboration\n\nPOST /box/2.0/collaborations\nContent-Type: application/json\n\n{\n  \"item\": {\"type\": \"folder\", \"id\": \"365037181307\"},\n  \"accessible_by\": {\"type\": \"user\", \"login\": \"user@example.com\"},\n  \"role\": \"editor\"\n}\n\nRoles: editor, viewer, previewer, uploader, previewer_uploader, viewer_uploader, co-owner\n\nUpdate Collaboration\n\nPUT /box/2.0/collaborations/{collaboration_id}\nContent-Type: application/json\n\n{\n  \"role\": \"viewer\"\n}\n\nDelete Collaboration\n\nDELETE /box/2.0/collaborations/{collaboration_id}"
      },
      {
        "title": "Search",
        "body": "GET /box/2.0/search?query=document\n\nQuery parameters:\n\nquery - Search query (required)\ntype - Filter by type: file, folder, web_link\nfile_extensions - Comma-separated extensions\nancestor_folder_ids - Limit to specific folders\nlimit - Max results (default 30)\noffset - Pagination offset\n\nResponse:\n\n{\n  \"total_count\": 5,\n  \"entries\": [...],\n  \"limit\": 30,\n  \"offset\": 0,\n  \"type\": \"search_results_items\"\n}"
      },
      {
        "title": "Events",
        "body": "GET /box/2.0/events\n\nQuery parameters:\n\nstream_type - all, changes, sync, admin_logs\nstream_position - Position to start from\nlimit - Max events to return\n\nResponse:\n\n{\n  \"chunk_size\": 4,\n  \"next_stream_position\": \"30401068076164269\",\n  \"entries\": [...]\n}"
      },
      {
        "title": "Trash",
        "body": "List Trashed Items\n\nGET /box/2.0/folders/trash/items\n\nGet Trashed Item\n\nGET /box/2.0/files/{file_id}/trash\nGET /box/2.0/folders/{folder_id}/trash\n\nRestore Trashed Item\n\nPOST /box/2.0/files/{file_id}\nPOST /box/2.0/folders/{folder_id}\n\nPermanently Delete\n\nDELETE /box/2.0/files/{file_id}/trash\nDELETE /box/2.0/folders/{folder_id}/trash"
      },
      {
        "title": "Collections (Favorites)",
        "body": "List Collections\n\nGET /box/2.0/collections\n\nResponse:\n\n{\n  \"total_count\": 1,\n  \"entries\": [\n    {\n      \"type\": \"collection\",\n      \"name\": \"Favorites\",\n      \"collection_type\": \"favorites\",\n      \"id\": \"35223030868\"\n    }\n  ]\n}\n\nGet Collection Items\n\nGET /box/2.0/collections/{collection_id}/items"
      },
      {
        "title": "Recent Items",
        "body": "GET /box/2.0/recent_items"
      },
      {
        "title": "Webhooks",
        "body": "List Webhooks\n\nGET /box/2.0/webhooks\n\nCreate Webhook\n\nPOST /box/2.0/webhooks\nContent-Type: application/json\n\n{\n  \"target\": {\"id\": \"365037181307\", \"type\": \"folder\"},\n  \"address\": \"https://example.com/webhook\",\n  \"triggers\": [\"FILE.UPLOADED\", \"FILE.DOWNLOADED\"]\n}\n\nNote: Webhook creation may require enterprise permissions.\n\nDelete Webhook\n\nDELETE /box/2.0/webhooks/{webhook_id}"
      },
      {
        "title": "Pagination",
        "body": "Box uses offset-based pagination:\n\nGET /box/2.0/folders/0/items?limit=100&offset=0\nGET /box/2.0/folders/0/items?limit=100&offset=100\n\nSome endpoints use marker-based pagination with marker parameter.\n\nResponse:\n\n{\n  \"total_count\": 250,\n  \"entries\": [...],\n  \"offset\": 0,\n  \"limit\": 100\n}"
      },
      {
        "title": "JavaScript",
        "body": "const response = await fetch(\n  'https://gateway.maton.ai/box/2.0/folders/0/items',\n  {\n    headers: {\n      'Authorization': `Bearer ${process.env.MATON_API_KEY}`\n    }\n  }\n);\nconst data = await response.json();"
      },
      {
        "title": "Python",
        "body": "import os\nimport requests\n\nresponse = requests.get(\n    'https://gateway.maton.ai/box/2.0/folders/0/items',\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'}\n)\ndata = response.json()"
      },
      {
        "title": "Python (Create Folder)",
        "body": "import os\nimport requests\n\nresponse = requests.post(\n    'https://gateway.maton.ai/box/2.0/folders',\n    headers={\n        'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}',\n        'Content-Type': 'application/json'\n    },\n    json={\n        'name': 'New Folder',\n        'parent': {'id': '0'}\n    }\n)\nfolder = response.json()\nprint(f\"Created folder: {folder['id']}\")"
      },
      {
        "title": "Notes",
        "body": "Root folder ID is 0\nFile uploads use upload.box.com instead of api.box.com\nDelete operations return 204 No Content on success\nUse fields parameter to request specific fields and reduce response size\nShared links can have password protection and expiration dates\nSome operations (list users, create webhooks) require enterprise admin permissions\nETags can be used for conditional updates with If-Match header\nIMPORTANT: When piping curl output to jq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environments"
      },
      {
        "title": "Error Handling",
        "body": "StatusMeaning400Missing Box connection or bad request401Invalid or missing Maton API key403Insufficient permissions for the operation404Resource not found409Conflict (e.g., item with same name exists)429Rate limited4xx/5xxPassthrough error from Box API\n\nBox errors include detailed messages:\n\n{\n  \"type\": \"error\",\n  \"status\": 409,\n  \"code\": \"item_name_in_use\",\n  \"message\": \"Item with the same name already exists\"\n}"
      },
      {
        "title": "Troubleshooting: API Key Issues",
        "body": "Check that the MATON_API_KEY environment variable is set:\n\necho $MATON_API_KEY\n\nVerify the API key is valid by listing connections:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Troubleshooting: Invalid App Name",
        "body": "Ensure your URL path starts with box. For example:\n\nCorrect: https://gateway.maton.ai/box/2.0/users/me\nIncorrect: https://gateway.maton.ai/2.0/users/me"
      },
      {
        "title": "Resources",
        "body": "Box API Reference\nBox Developer Documentation\nAuthentication Guide\nBox SDKs\nMaton Community\nMaton Support"
      }
    ],
    "body": "Box\n\nAccess the Box API with managed OAuth authentication. Manage files, folders, collaborations, shared links, and cloud storage.\n\nQuick Start\n# Get current user info\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/box/2.0/users/me')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nBase URL\nhttps://gateway.maton.ai/box/2.0/{resource}\n\n\nThe gateway proxies requests to api.box.com/2.0 and automatically injects your OAuth token.\n\nAuthentication\n\nAll requests require the Maton API key in the Authorization header:\n\nAuthorization: Bearer $MATON_API_KEY\n\n\nEnvironment Variable: Set your API key as MATON_API_KEY:\n\nexport MATON_API_KEY=\"YOUR_API_KEY\"\n\nGetting Your API Key\nSign in or create an account at maton.ai\nGo to maton.ai/settings\nCopy your API key\nConnection Management\n\nManage your Box OAuth connections at https://ctrl.maton.ai.\n\nList Connections\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections?app=box&status=ACTIVE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nCreate Connection\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'box'}).encode()\nreq = urllib.request.Request('https://ctrl.maton.ai/connections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nGet Connection\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nResponse:\n\n{\n  \"connection\": {\n    \"connection_id\": \"bd484938-0902-4fc0-9ffb-2549d7d91f1d\",\n    \"status\": \"ACTIVE\",\n    \"creation_time\": \"2026-02-08T21:14:41.808115Z\",\n    \"last_updated_time\": \"2026-02-08T21:16:10.100340Z\",\n    \"url\": \"https://connect.maton.ai/?session_token=...\",\n    \"app\": \"box\",\n    \"metadata\": {}\n  }\n}\n\n\nOpen the returned url in a browser to complete OAuth authorization.\n\nDelete Connection\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}', method='DELETE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nSpecifying Connection\n\nIf you have multiple Box connections, specify which one to use with the Maton-Connection header:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/box/2.0/users/me')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Maton-Connection', 'bd484938-0902-4fc0-9ffb-2549d7d91f1d')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nIf omitted, the gateway uses the default (oldest) active connection.\n\nAPI Reference\nUser Info\nGet Current User\nGET /box/2.0/users/me\n\n\nResponse:\n\n{\n  \"type\": \"user\",\n  \"id\": \"48806418054\",\n  \"name\": \"Chris\",\n  \"login\": \"chris@example.com\",\n  \"created_at\": \"2026-02-08T13:12:34-08:00\",\n  \"modified_at\": \"2026-02-08T13:12:35-08:00\",\n  \"language\": \"en\",\n  \"timezone\": \"America/Los_Angeles\",\n  \"space_amount\": 10737418240,\n  \"space_used\": 0,\n  \"max_upload_size\": 262144000,\n  \"status\": \"active\",\n  \"avatar_url\": \"https://app.box.com/api/avatar/large/48806418054\"\n}\n\nGet User\nGET /box/2.0/users/{user_id}\n\nFolder Operations\nGet Root Folder\n\nThe root folder has ID 0:\n\nGET /box/2.0/folders/0\n\nGet Folder\nGET /box/2.0/folders/{folder_id}\n\n\nResponse:\n\n{\n  \"type\": \"folder\",\n  \"id\": \"365037181307\",\n  \"name\": \"My Folder\",\n  \"description\": \"Folder description\",\n  \"size\": 0,\n  \"path_collection\": {\n    \"total_count\": 1,\n    \"entries\": [\n      {\"type\": \"folder\", \"id\": \"0\", \"name\": \"All Files\"}\n    ]\n  },\n  \"created_by\": {\"type\": \"user\", \"id\": \"48806418054\", \"name\": \"Chris\"},\n  \"owned_by\": {\"type\": \"user\", \"id\": \"48806418054\", \"name\": \"Chris\"},\n  \"item_status\": \"active\"\n}\n\nList Folder Items\nGET /box/2.0/folders/{folder_id}/items\n\n\nQuery parameters:\n\nlimit - Maximum items to return (default 100, max 1000)\noffset - Offset for pagination\nfields - Comma-separated list of fields to include\n\nResponse:\n\n{\n  \"total_count\": 1,\n  \"entries\": [\n    {\n      \"type\": \"folder\",\n      \"id\": \"365036703666\",\n      \"name\": \"Subfolder\"\n    }\n  ],\n  \"offset\": 0,\n  \"limit\": 100\n}\n\nCreate Folder\nPOST /box/2.0/folders\nContent-Type: application/json\n\n{\n  \"name\": \"New Folder\",\n  \"parent\": {\"id\": \"0\"}\n}\n\n\nResponse:\n\n{\n  \"type\": \"folder\",\n  \"id\": \"365037181307\",\n  \"name\": \"New Folder\",\n  \"created_at\": \"2026-02-08T14:56:17-08:00\"\n}\n\nUpdate Folder\nPUT /box/2.0/folders/{folder_id}\nContent-Type: application/json\n\n{\n  \"name\": \"Updated Folder Name\",\n  \"description\": \"Updated description\"\n}\n\nCopy Folder\nPOST /box/2.0/folders/{folder_id}/copy\nContent-Type: application/json\n\n{\n  \"name\": \"Copied Folder\",\n  \"parent\": {\"id\": \"0\"}\n}\n\nDelete Folder\nDELETE /box/2.0/folders/{folder_id}\n\n\nQuery parameters:\n\nrecursive - Set to true to delete non-empty folders\n\nReturns 204 No Content on success.\n\nFile Operations\nGet File Info\nGET /box/2.0/files/{file_id}\n\nDownload File\nGET /box/2.0/files/{file_id}/content\n\n\nReturns a redirect to the download URL.\n\nUpload File\nPOST https://upload.box.com/api/2.0/files/content\nContent-Type: multipart/form-data\n\nattributes={\"name\":\"file.txt\",\"parent\":{\"id\":\"0\"}}\nfile=<binary data>\n\n\nNote: File uploads use a different base URL: upload.box.com\n\nUpdate File Info\nPUT /box/2.0/files/{file_id}\nContent-Type: application/json\n\n{\n  \"name\": \"renamed-file.txt\",\n  \"description\": \"File description\"\n}\n\nCopy File\nPOST /box/2.0/files/{file_id}/copy\nContent-Type: application/json\n\n{\n  \"name\": \"copied-file.txt\",\n  \"parent\": {\"id\": \"0\"}\n}\n\nDelete File\nDELETE /box/2.0/files/{file_id}\n\n\nReturns 204 No Content on success.\n\nGet File Versions\nGET /box/2.0/files/{file_id}/versions\n\nShared Links\n\nCreate a shared link by updating a file or folder:\n\nPUT /box/2.0/folders/{folder_id}\nContent-Type: application/json\n\n{\n  \"shared_link\": {\n    \"access\": \"open\"\n  }\n}\n\n\nAccess levels:\n\nopen - Anyone with the link\ncompany - Only users in the enterprise\ncollaborators - Only collaborators\n\nResponse includes:\n\n{\n  \"shared_link\": {\n    \"url\": \"https://app.box.com/s/sisarrztrenabyygfwqggbwommf8uucv\",\n    \"access\": \"open\",\n    \"effective_access\": \"open\",\n    \"is_password_enabled\": false,\n    \"permissions\": {\n      \"can_preview\": true,\n      \"can_download\": true,\n      \"can_edit\": false\n    }\n  }\n}\n\nCollaborations\nList Folder Collaborations\nGET /box/2.0/folders/{folder_id}/collaborations\n\nCreate Collaboration\nPOST /box/2.0/collaborations\nContent-Type: application/json\n\n{\n  \"item\": {\"type\": \"folder\", \"id\": \"365037181307\"},\n  \"accessible_by\": {\"type\": \"user\", \"login\": \"user@example.com\"},\n  \"role\": \"editor\"\n}\n\n\nRoles: editor, viewer, previewer, uploader, previewer_uploader, viewer_uploader, co-owner\n\nUpdate Collaboration\nPUT /box/2.0/collaborations/{collaboration_id}\nContent-Type: application/json\n\n{\n  \"role\": \"viewer\"\n}\n\nDelete Collaboration\nDELETE /box/2.0/collaborations/{collaboration_id}\n\nSearch\nGET /box/2.0/search?query=document\n\n\nQuery parameters:\n\nquery - Search query (required)\ntype - Filter by type: file, folder, web_link\nfile_extensions - Comma-separated extensions\nancestor_folder_ids - Limit to specific folders\nlimit - Max results (default 30)\noffset - Pagination offset\n\nResponse:\n\n{\n  \"total_count\": 5,\n  \"entries\": [...],\n  \"limit\": 30,\n  \"offset\": 0,\n  \"type\": \"search_results_items\"\n}\n\nEvents\nGET /box/2.0/events\n\n\nQuery parameters:\n\nstream_type - all, changes, sync, admin_logs\nstream_position - Position to start from\nlimit - Max events to return\n\nResponse:\n\n{\n  \"chunk_size\": 4,\n  \"next_stream_position\": \"30401068076164269\",\n  \"entries\": [...]\n}\n\nTrash\nList Trashed Items\nGET /box/2.0/folders/trash/items\n\nGet Trashed Item\nGET /box/2.0/files/{file_id}/trash\nGET /box/2.0/folders/{folder_id}/trash\n\nRestore Trashed Item\nPOST /box/2.0/files/{file_id}\nPOST /box/2.0/folders/{folder_id}\n\nPermanently Delete\nDELETE /box/2.0/files/{file_id}/trash\nDELETE /box/2.0/folders/{folder_id}/trash\n\nCollections (Favorites)\nList Collections\nGET /box/2.0/collections\n\n\nResponse:\n\n{\n  \"total_count\": 1,\n  \"entries\": [\n    {\n      \"type\": \"collection\",\n      \"name\": \"Favorites\",\n      \"collection_type\": \"favorites\",\n      \"id\": \"35223030868\"\n    }\n  ]\n}\n\nGet Collection Items\nGET /box/2.0/collections/{collection_id}/items\n\nRecent Items\nGET /box/2.0/recent_items\n\nWebhooks\nList Webhooks\nGET /box/2.0/webhooks\n\nCreate Webhook\nPOST /box/2.0/webhooks\nContent-Type: application/json\n\n{\n  \"target\": {\"id\": \"365037181307\", \"type\": \"folder\"},\n  \"address\": \"https://example.com/webhook\",\n  \"triggers\": [\"FILE.UPLOADED\", \"FILE.DOWNLOADED\"]\n}\n\n\nNote: Webhook creation may require enterprise permissions.\n\nDelete Webhook\nDELETE /box/2.0/webhooks/{webhook_id}\n\nPagination\n\nBox uses offset-based pagination:\n\nGET /box/2.0/folders/0/items?limit=100&offset=0\nGET /box/2.0/folders/0/items?limit=100&offset=100\n\n\nSome endpoints use marker-based pagination with marker parameter.\n\nResponse:\n\n{\n  \"total_count\": 250,\n  \"entries\": [...],\n  \"offset\": 0,\n  \"limit\": 100\n}\n\nCode Examples\nJavaScript\nconst response = await fetch(\n  'https://gateway.maton.ai/box/2.0/folders/0/items',\n  {\n    headers: {\n      'Authorization': `Bearer ${process.env.MATON_API_KEY}`\n    }\n  }\n);\nconst data = await response.json();\n\nPython\nimport os\nimport requests\n\nresponse = requests.get(\n    'https://gateway.maton.ai/box/2.0/folders/0/items',\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'}\n)\ndata = response.json()\n\nPython (Create Folder)\nimport os\nimport requests\n\nresponse = requests.post(\n    'https://gateway.maton.ai/box/2.0/folders',\n    headers={\n        'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}',\n        'Content-Type': 'application/json'\n    },\n    json={\n        'name': 'New Folder',\n        'parent': {'id': '0'}\n    }\n)\nfolder = response.json()\nprint(f\"Created folder: {folder['id']}\")\n\nNotes\nRoot folder ID is 0\nFile uploads use upload.box.com instead of api.box.com\nDelete operations return 204 No Content on success\nUse fields parameter to request specific fields and reduce response size\nShared links can have password protection and expiration dates\nSome operations (list users, create webhooks) require enterprise admin permissions\nETags can be used for conditional updates with If-Match header\nIMPORTANT: When piping curl output to jq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environments\nError Handling\nStatus\tMeaning\n400\tMissing Box connection or bad request\n401\tInvalid or missing Maton API key\n403\tInsufficient permissions for the operation\n404\tResource not found\n409\tConflict (e.g., item with same name exists)\n429\tRate limited\n4xx/5xx\tPassthrough error from Box API\n\nBox errors include detailed messages:\n\n{\n  \"type\": \"error\",\n  \"status\": 409,\n  \"code\": \"item_name_in_use\",\n  \"message\": \"Item with the same name already exists\"\n}\n\nTroubleshooting: API Key Issues\nCheck that the MATON_API_KEY environment variable is set:\necho $MATON_API_KEY\n\nVerify the API key is valid by listing connections:\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nTroubleshooting: Invalid App Name\nEnsure your URL path starts with box. For example:\nCorrect: https://gateway.maton.ai/box/2.0/users/me\nIncorrect: https://gateway.maton.ai/2.0/users/me\nResources\nBox API Reference\nBox Developer Documentation\nAuthentication Guide\nBox SDKs\nMaton Community\nMaton Support"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/byungkyu/box",
    "publisherUrl": "https://clawhub.ai/byungkyu/box",
    "owner": "byungkyu",
    "version": "1.0.2",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/box",
    "downloadUrl": "https://openagent3.xyz/downloads/box",
    "agentUrl": "https://openagent3.xyz/skills/box/agent",
    "manifestUrl": "https://openagent3.xyz/skills/box/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/box/agent.md"
  }
}