{
  "schemaVersion": "1.0",
  "item": {
    "slug": "dropbox-api",
    "name": "Dropbox",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/byungkyu/dropbox-api",
    "canonicalUrl": "https://clawhub.ai/byungkyu/dropbox-api",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/dropbox-api",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=dropbox-api",
    "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": "dropbox-api",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-02T18:07:35.357Z",
      "expiresAt": "2026-05-09T18:07:35.357Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=dropbox-api",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=dropbox-api",
        "contentDisposition": "attachment; filename=\"dropbox-api-1.0.4.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "dropbox-api"
      },
      "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/dropbox-api"
    },
    "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/dropbox-api",
    "agentPageUrl": "https://openagent3.xyz/skills/dropbox-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/dropbox-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/dropbox-api/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": "Dropbox",
        "body": "Access the Dropbox API with managed OAuth authentication. Manage files and folders, search content, retrieve metadata, and work with file revisions."
      },
      {
        "title": "Quick Start",
        "body": "# List files in root folder\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({\"path\": \"\"}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/dropbox/2/files/list_folder', 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": "Base URL",
        "body": "https://gateway.maton.ai/dropbox/2/{endpoint}\n\nThe gateway proxies requests to api.dropboxapi.com and automatically injects your OAuth token.\n\nImportant: Dropbox API v2 uses POST for all endpoints with JSON request bodies."
      },
      {
        "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 Dropbox 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=dropbox&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': 'dropbox'}).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\": \"1efbb655-88e9-4a23-ad3b-f3e19cbff279\",\n    \"status\": \"ACTIVE\",\n    \"creation_time\": \"2026-02-09T23:34:49.818074Z\",\n    \"last_updated_time\": \"2026-02-09T23:37:09.697559Z\",\n    \"url\": \"https://connect.maton.ai/?session_token=...\",\n    \"app\": \"dropbox\",\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 Dropbox connections, specify which one to use with the Maton-Connection header:\n\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({\"path\": \"\"}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/dropbox/2/files/list_folder', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nreq.add_header('Maton-Connection', '1efbb655-88e9-4a23-ad3b-f3e19cbff279')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nIf omitted, the gateway uses the default (oldest) active connection."
      },
      {
        "title": "Users",
        "body": "Get Current Account\n\nPOST /dropbox/2/users/get_current_account\nContent-Type: application/json\n\nnull\n\nResponse:\n\n{\n  \"account_id\": \"dbid:AAA-AdT84WzkyLw5s590DbYF1nGomiAoO8I\",\n  \"name\": {\n    \"given_name\": \"John\",\n    \"surname\": \"Doe\",\n    \"familiar_name\": \"John\",\n    \"display_name\": \"John Doe\",\n    \"abbreviated_name\": \"JD\"\n  },\n  \"email\": \"john@example.com\",\n  \"email_verified\": true,\n  \"disabled\": false,\n  \"country\": \"US\",\n  \"locale\": \"en\",\n  \"account_type\": {\n    \".tag\": \"basic\"\n  },\n  \"root_info\": {\n    \".tag\": \"user\",\n    \"root_namespace_id\": \"11989877987\",\n    \"home_namespace_id\": \"11989877987\"\n  }\n}\n\nGet Space Usage\n\nPOST /dropbox/2/users/get_space_usage\nContent-Type: application/json\n\nnull\n\nResponse:\n\n{\n  \"used\": 538371,\n  \"allocation\": {\n    \".tag\": \"individual\",\n    \"allocated\": 2147483648\n  }\n}"
      },
      {
        "title": "Files and Folders",
        "body": "List Folder\n\nPOST /dropbox/2/files/list_folder\nContent-Type: application/json\n\n{\n  \"path\": \"\",\n  \"recursive\": false,\n  \"include_deleted\": false,\n  \"include_has_explicit_shared_members\": false\n}\n\nUse empty string \"\" for the root folder.\n\nOptional Parameters:\n\nrecursive - Include contents of subdirectories (default: false)\ninclude_deleted - Include deleted files (default: false)\ninclude_media_info - Include media info for photos/videos\nlimit - Maximum entries per response (1-2000)\n\nResponse:\n\n{\n  \"entries\": [\n    {\n      \".tag\": \"file\",\n      \"name\": \"document.pdf\",\n      \"path_lower\": \"/document.pdf\",\n      \"path_display\": \"/document.pdf\",\n      \"id\": \"id:Awe3Av8A8YYAAAAAAAAABQ\",\n      \"client_modified\": \"2026-02-09T19:58:12Z\",\n      \"server_modified\": \"2026-02-09T19:58:13Z\",\n      \"rev\": \"016311c063b4f8700000002caa704e3\",\n      \"size\": 538371,\n      \"is_downloadable\": true,\n      \"content_hash\": \"6542845d7b65ffc5358ebaa6981d991bab9fda194afa48bd727fcbe9e4a3158b\"\n    },\n    {\n      \".tag\": \"folder\",\n      \"name\": \"Documents\",\n      \"path_lower\": \"/documents\",\n      \"path_display\": \"/Documents\",\n      \"id\": \"id:Awe3Av8A8YYAAAAAAAAABw\"\n    }\n  ],\n  \"cursor\": \"AAVqv-MUYFlM98b1QpFK6YaYC8L1s39lWjqbeqgWu4un...\",\n  \"has_more\": false\n}\n\nContinue Listing Folder\n\nPOST /dropbox/2/files/list_folder/continue\nContent-Type: application/json\n\n{\n  \"cursor\": \"AAVqv-MUYFlM98b1QpFK6YaYC8L1s39lWjqbeqgWu4un...\"\n}\n\nUse when has_more is true in the previous response.\n\nGet Metadata\n\nPOST /dropbox/2/files/get_metadata\nContent-Type: application/json\n\n{\n  \"path\": \"/document.pdf\",\n  \"include_media_info\": false,\n  \"include_deleted\": false,\n  \"include_has_explicit_shared_members\": false\n}\n\nResponse:\n\n{\n  \".tag\": \"file\",\n  \"name\": \"document.pdf\",\n  \"path_lower\": \"/document.pdf\",\n  \"path_display\": \"/document.pdf\",\n  \"id\": \"id:Awe3Av8A8YYAAAAAAAAABQ\",\n  \"client_modified\": \"2026-02-09T19:58:12Z\",\n  \"server_modified\": \"2026-02-09T19:58:13Z\",\n  \"rev\": \"016311c063b4f8700000002caa704e3\",\n  \"size\": 538371,\n  \"is_downloadable\": true,\n  \"content_hash\": \"6542845d7b65ffc5358ebaa6981d991bab9fda194afa48bd727fcbe9e4a3158b\"\n}\n\nCreate Folder\n\nPOST /dropbox/2/files/create_folder_v2\nContent-Type: application/json\n\n{\n  \"path\": \"/New Folder\",\n  \"autorename\": false\n}\n\nResponse:\n\n{\n  \"metadata\": {\n    \"name\": \"New Folder\",\n    \"path_lower\": \"/new folder\",\n    \"path_display\": \"/New Folder\",\n    \"id\": \"id:Awe3Av8A8YYAAAAAAAAABw\"\n  }\n}\n\nCopy File or Folder\n\nPOST /dropbox/2/files/copy_v2\nContent-Type: application/json\n\n{\n  \"from_path\": \"/source/file.pdf\",\n  \"to_path\": \"/destination/file.pdf\",\n  \"autorename\": false\n}\n\nResponse:\n\n{\n  \"metadata\": {\n    \".tag\": \"file\",\n    \"name\": \"file.pdf\",\n    \"path_lower\": \"/destination/file.pdf\",\n    \"path_display\": \"/destination/file.pdf\",\n    \"id\": \"id:Awe3Av8A8YYAAAAAAAAACA\"\n  }\n}\n\nMove File or Folder\n\nPOST /dropbox/2/files/move_v2\nContent-Type: application/json\n\n{\n  \"from_path\": \"/old/location/file.pdf\",\n  \"to_path\": \"/new/location/file.pdf\",\n  \"autorename\": false\n}\n\nResponse:\n\n{\n  \"metadata\": {\n    \".tag\": \"file\",\n    \"name\": \"file.pdf\",\n    \"path_lower\": \"/new/location/file.pdf\",\n    \"path_display\": \"/new/location/file.pdf\",\n    \"id\": \"id:Awe3Av8A8YYAAAAAAAAACA\"\n  }\n}\n\nDelete File or Folder\n\nPOST /dropbox/2/files/delete_v2\nContent-Type: application/json\n\n{\n  \"path\": \"/file-to-delete.pdf\"\n}\n\nResponse:\n\n{\n  \"metadata\": {\n    \".tag\": \"file\",\n    \"name\": \"file-to-delete.pdf\",\n    \"path_lower\": \"/file-to-delete.pdf\",\n    \"path_display\": \"/file-to-delete.pdf\",\n    \"id\": \"id:Awe3Av8A8YYAAAAAAAAABQ\"\n  }\n}\n\nGet Temporary Download Link\n\nPOST /dropbox/2/files/get_temporary_link\nContent-Type: application/json\n\n{\n  \"path\": \"/document.pdf\"\n}\n\nResponse:\n\n{\n  \"metadata\": {\n    \"name\": \"document.pdf\",\n    \"path_lower\": \"/document.pdf\",\n    \"path_display\": \"/document.pdf\",\n    \"id\": \"id:Awe3Av8A8YYAAAAAAAAABQ\",\n    \"size\": 538371,\n    \"is_downloadable\": true\n  },\n  \"link\": \"https://uc785ee484c03b6556c091ea4491.dl.dropboxusercontent.com/cd/0/get/...\"\n}\n\nThe link is valid for 4 hours."
      },
      {
        "title": "Search",
        "body": "Search Files\n\nPOST /dropbox/2/files/search_v2\nContent-Type: application/json\n\n{\n  \"query\": \"document\",\n  \"options\": {\n    \"path\": \"\",\n    \"max_results\": 100,\n    \"file_status\": \"active\",\n    \"filename_only\": false\n  }\n}\n\nResponse:\n\n{\n  \"has_more\": false,\n  \"matches\": [\n    {\n      \"highlight_spans\": [],\n      \"match_type\": {\n        \".tag\": \"filename\"\n      },\n      \"metadata\": {\n        \".tag\": \"metadata\",\n        \"metadata\": {\n          \".tag\": \"file\",\n          \"name\": \"document.pdf\",\n          \"path_display\": \"/document.pdf\",\n          \"path_lower\": \"/document.pdf\",\n          \"id\": \"id:Awe3Av8A8YYAAAAAAAAABw\"\n        }\n      }\n    }\n  ]\n}\n\nContinue Search\n\nPOST /dropbox/2/files/search/continue_v2\nContent-Type: application/json\n\n{\n  \"cursor\": \"...\"\n}"
      },
      {
        "title": "File Revisions",
        "body": "List Revisions\n\nPOST /dropbox/2/files/list_revisions\nContent-Type: application/json\n\n{\n  \"path\": \"/document.pdf\",\n  \"mode\": \"path\",\n  \"limit\": 10\n}\n\nResponse:\n\n{\n  \"is_deleted\": false,\n  \"entries\": [\n    {\n      \"name\": \"document.pdf\",\n      \"path_lower\": \"/document.pdf\",\n      \"path_display\": \"/document.pdf\",\n      \"id\": \"id:Awe3Av8A8YYAAAAAAAAABQ\",\n      \"client_modified\": \"2026-02-09T19:58:12Z\",\n      \"server_modified\": \"2026-02-09T19:58:13Z\",\n      \"rev\": \"016311c063b4f8700000002caa704e3\",\n      \"size\": 538371,\n      \"is_downloadable\": true\n    }\n  ],\n  \"has_more\": false\n}\n\nRestore File\n\nPOST /dropbox/2/files/restore\nContent-Type: application/json\n\n{\n  \"path\": \"/document.pdf\",\n  \"rev\": \"016311c063b4f8700000002caa704e3\"\n}"
      },
      {
        "title": "Tags",
        "body": "Get Tags\n\nPOST /dropbox/2/files/tags/get\nContent-Type: application/json\n\n{\n  \"paths\": [\"/document.pdf\", \"/folder\"]\n}\n\nResponse:\n\n{\n  \"paths_to_tags\": [\n    {\n      \"path\": \"/document.pdf\",\n      \"tags\": [\n        {\n          \".tag\": \"user_generated_tag\",\n          \"tag_text\": \"important\"\n        }\n      ]\n    },\n    {\n      \"path\": \"/folder\",\n      \"tags\": []\n    }\n  ]\n}\n\nAdd Tag\n\nPOST /dropbox/2/files/tags/add\nContent-Type: application/json\n\n{\n  \"path\": \"/document.pdf\",\n  \"tag_text\": \"important\"\n}\n\nReturns null on success.\n\nNote: Tag text must match pattern [\\w]+ (alphanumeric and underscores only, no hyphens or spaces).\n\nRemove Tag\n\nPOST /dropbox/2/files/tags/remove\nContent-Type: application/json\n\n{\n  \"path\": \"/document.pdf\",\n  \"tag_text\": \"important\"\n}\n\nReturns null on success."
      },
      {
        "title": "Batch Operations",
        "body": "Delete Batch\n\nPOST /dropbox/2/files/delete_batch\nContent-Type: application/json\n\n{\n  \"entries\": [\n    {\"path\": \"/file1.pdf\"},\n    {\"path\": \"/file2.pdf\"}\n  ]\n}\n\nReturns async job ID. Check status with /files/delete_batch/check.\n\nCopy Batch\n\nPOST /dropbox/2/files/copy_batch_v2\nContent-Type: application/json\n\n{\n  \"entries\": [\n    {\"from_path\": \"/source/file1.pdf\", \"to_path\": \"/dest/file1.pdf\"},\n    {\"from_path\": \"/source/file2.pdf\", \"to_path\": \"/dest/file2.pdf\"}\n  ],\n  \"autorename\": false\n}\n\nMove Batch\n\nPOST /dropbox/2/files/move_batch_v2\nContent-Type: application/json\n\n{\n  \"entries\": [\n    {\"from_path\": \"/old/file1.pdf\", \"to_path\": \"/new/file1.pdf\"},\n    {\"from_path\": \"/old/file2.pdf\", \"to_path\": \"/new/file2.pdf\"}\n  ],\n  \"autorename\": false\n}"
      },
      {
        "title": "Pagination",
        "body": "Dropbox uses cursor-based pagination. When has_more is true, use the /continue endpoint with the returned cursor.\n\nimport os\nimport requests\n\nheaders = {\n    'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}',\n    'Content-Type': 'application/json'\n}\n\n# Initial request\nresponse = requests.post(\n    'https://gateway.maton.ai/dropbox/2/files/list_folder',\n    headers=headers,\n    json={'path': '', 'limit': 100}\n)\nresult = response.json()\nall_entries = result['entries']\n\n# Continue while has_more is True\nwhile result.get('has_more'):\n    response = requests.post(\n        'https://gateway.maton.ai/dropbox/2/files/list_folder/continue',\n        headers=headers,\n        json={'cursor': result['cursor']}\n    )\n    result = response.json()\n    all_entries.extend(result['entries'])\n\nprint(f\"Total entries: {len(all_entries)}\")"
      },
      {
        "title": "JavaScript",
        "body": "const response = await fetch(\n  'https://gateway.maton.ai/dropbox/2/files/list_folder',\n  {\n    method: 'POST',\n    headers: {\n      'Authorization': `Bearer ${process.env.MATON_API_KEY}`,\n      'Content-Type': 'application/json'\n    },\n    body: JSON.stringify({ path: '' })\n  }\n);\nconst data = await response.json();\nconsole.log(data.entries);"
      },
      {
        "title": "Python",
        "body": "import os\nimport requests\n\nresponse = requests.post(\n    'https://gateway.maton.ai/dropbox/2/files/list_folder',\n    headers={\n        'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}',\n        'Content-Type': 'application/json'\n    },\n    json={'path': ''}\n)\ndata = response.json()\nprint(data['entries'])"
      },
      {
        "title": "Python (Create Folder and Search)",
        "body": "import os\nimport requests\n\nheaders = {\n    'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}',\n    'Content-Type': 'application/json'\n}\n\n# Create folder\nresponse = requests.post(\n    'https://gateway.maton.ai/dropbox/2/files/create_folder_v2',\n    headers=headers,\n    json={'path': '/My New Folder', 'autorename': False}\n)\nfolder = response.json()\nprint(f\"Created folder: {folder['metadata']['path_display']}\")\n\n# Search for files\nresponse = requests.post(\n    'https://gateway.maton.ai/dropbox/2/files/search_v2',\n    headers=headers,\n    json={'query': 'document'}\n)\nresults = response.json()\nprint(f\"Found {len(results['matches'])} matches\")"
      },
      {
        "title": "Notes",
        "body": "All Dropbox API v2 endpoints use HTTP POST method\nRequest bodies are JSON (not form-urlencoded)\nUse empty string \"\" for the root folder path\nPaths are case-insensitive but case-preserving\nFile IDs (e.g., id:Awe3Av8A8YYAAAAAAAAABQ) persist even when files are moved or renamed\nTag text must match pattern [\\w]+ (alphanumeric and underscores only)\nTemporary download links expire after 4 hours\nRate limits are generous and per-user\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 Dropbox connection or bad request401Invalid or missing Maton API key404Resource not found409Conflict (path doesn't exist, already exists, etc.)429Rate limited4xx/5xxPassthrough error from Dropbox API\n\nError responses include details:\n\n{\n  \"error_summary\": \"path/not_found/...\",\n  \"error\": {\n    \".tag\": \"path\",\n    \"path\": {\n      \".tag\": \"not_found\"\n    }\n  }\n}"
      },
      {
        "title": "Troubleshooting: Invalid API Key",
        "body": "When you receive an \"Invalid API key\" error, ALWAYS follow these steps before concluding there is an issue:\n\nCheck 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": "Resources",
        "body": "Dropbox HTTP API Overview\nDropbox Developer Portal\nDropbox API Explorer\nDBX File Access Guide"
      }
    ],
    "body": "Dropbox\n\nAccess the Dropbox API with managed OAuth authentication. Manage files and folders, search content, retrieve metadata, and work with file revisions.\n\nQuick Start\n# List files in root folder\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({\"path\": \"\"}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/dropbox/2/files/list_folder', 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\nBase URL\nhttps://gateway.maton.ai/dropbox/2/{endpoint}\n\n\nThe gateway proxies requests to api.dropboxapi.com and automatically injects your OAuth token.\n\nImportant: Dropbox API v2 uses POST for all endpoints with JSON request bodies.\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 Dropbox 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=dropbox&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': 'dropbox'}).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\": \"1efbb655-88e9-4a23-ad3b-f3e19cbff279\",\n    \"status\": \"ACTIVE\",\n    \"creation_time\": \"2026-02-09T23:34:49.818074Z\",\n    \"last_updated_time\": \"2026-02-09T23:37:09.697559Z\",\n    \"url\": \"https://connect.maton.ai/?session_token=...\",\n    \"app\": \"dropbox\",\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 Dropbox connections, specify which one to use with the Maton-Connection header:\n\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({\"path\": \"\"}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/dropbox/2/files/list_folder', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nreq.add_header('Maton-Connection', '1efbb655-88e9-4a23-ad3b-f3e19cbff279')\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\nUsers\nGet Current Account\nPOST /dropbox/2/users/get_current_account\nContent-Type: application/json\n\nnull\n\n\nResponse:\n\n{\n  \"account_id\": \"dbid:AAA-AdT84WzkyLw5s590DbYF1nGomiAoO8I\",\n  \"name\": {\n    \"given_name\": \"John\",\n    \"surname\": \"Doe\",\n    \"familiar_name\": \"John\",\n    \"display_name\": \"John Doe\",\n    \"abbreviated_name\": \"JD\"\n  },\n  \"email\": \"john@example.com\",\n  \"email_verified\": true,\n  \"disabled\": false,\n  \"country\": \"US\",\n  \"locale\": \"en\",\n  \"account_type\": {\n    \".tag\": \"basic\"\n  },\n  \"root_info\": {\n    \".tag\": \"user\",\n    \"root_namespace_id\": \"11989877987\",\n    \"home_namespace_id\": \"11989877987\"\n  }\n}\n\nGet Space Usage\nPOST /dropbox/2/users/get_space_usage\nContent-Type: application/json\n\nnull\n\n\nResponse:\n\n{\n  \"used\": 538371,\n  \"allocation\": {\n    \".tag\": \"individual\",\n    \"allocated\": 2147483648\n  }\n}\n\nFiles and Folders\nList Folder\nPOST /dropbox/2/files/list_folder\nContent-Type: application/json\n\n{\n  \"path\": \"\",\n  \"recursive\": false,\n  \"include_deleted\": false,\n  \"include_has_explicit_shared_members\": false\n}\n\n\nUse empty string \"\" for the root folder.\n\nOptional Parameters:\n\nrecursive - Include contents of subdirectories (default: false)\ninclude_deleted - Include deleted files (default: false)\ninclude_media_info - Include media info for photos/videos\nlimit - Maximum entries per response (1-2000)\n\nResponse:\n\n{\n  \"entries\": [\n    {\n      \".tag\": \"file\",\n      \"name\": \"document.pdf\",\n      \"path_lower\": \"/document.pdf\",\n      \"path_display\": \"/document.pdf\",\n      \"id\": \"id:Awe3Av8A8YYAAAAAAAAABQ\",\n      \"client_modified\": \"2026-02-09T19:58:12Z\",\n      \"server_modified\": \"2026-02-09T19:58:13Z\",\n      \"rev\": \"016311c063b4f8700000002caa704e3\",\n      \"size\": 538371,\n      \"is_downloadable\": true,\n      \"content_hash\": \"6542845d7b65ffc5358ebaa6981d991bab9fda194afa48bd727fcbe9e4a3158b\"\n    },\n    {\n      \".tag\": \"folder\",\n      \"name\": \"Documents\",\n      \"path_lower\": \"/documents\",\n      \"path_display\": \"/Documents\",\n      \"id\": \"id:Awe3Av8A8YYAAAAAAAAABw\"\n    }\n  ],\n  \"cursor\": \"AAVqv-MUYFlM98b1QpFK6YaYC8L1s39lWjqbeqgWu4un...\",\n  \"has_more\": false\n}\n\nContinue Listing Folder\nPOST /dropbox/2/files/list_folder/continue\nContent-Type: application/json\n\n{\n  \"cursor\": \"AAVqv-MUYFlM98b1QpFK6YaYC8L1s39lWjqbeqgWu4un...\"\n}\n\n\nUse when has_more is true in the previous response.\n\nGet Metadata\nPOST /dropbox/2/files/get_metadata\nContent-Type: application/json\n\n{\n  \"path\": \"/document.pdf\",\n  \"include_media_info\": false,\n  \"include_deleted\": false,\n  \"include_has_explicit_shared_members\": false\n}\n\n\nResponse:\n\n{\n  \".tag\": \"file\",\n  \"name\": \"document.pdf\",\n  \"path_lower\": \"/document.pdf\",\n  \"path_display\": \"/document.pdf\",\n  \"id\": \"id:Awe3Av8A8YYAAAAAAAAABQ\",\n  \"client_modified\": \"2026-02-09T19:58:12Z\",\n  \"server_modified\": \"2026-02-09T19:58:13Z\",\n  \"rev\": \"016311c063b4f8700000002caa704e3\",\n  \"size\": 538371,\n  \"is_downloadable\": true,\n  \"content_hash\": \"6542845d7b65ffc5358ebaa6981d991bab9fda194afa48bd727fcbe9e4a3158b\"\n}\n\nCreate Folder\nPOST /dropbox/2/files/create_folder_v2\nContent-Type: application/json\n\n{\n  \"path\": \"/New Folder\",\n  \"autorename\": false\n}\n\n\nResponse:\n\n{\n  \"metadata\": {\n    \"name\": \"New Folder\",\n    \"path_lower\": \"/new folder\",\n    \"path_display\": \"/New Folder\",\n    \"id\": \"id:Awe3Av8A8YYAAAAAAAAABw\"\n  }\n}\n\nCopy File or Folder\nPOST /dropbox/2/files/copy_v2\nContent-Type: application/json\n\n{\n  \"from_path\": \"/source/file.pdf\",\n  \"to_path\": \"/destination/file.pdf\",\n  \"autorename\": false\n}\n\n\nResponse:\n\n{\n  \"metadata\": {\n    \".tag\": \"file\",\n    \"name\": \"file.pdf\",\n    \"path_lower\": \"/destination/file.pdf\",\n    \"path_display\": \"/destination/file.pdf\",\n    \"id\": \"id:Awe3Av8A8YYAAAAAAAAACA\"\n  }\n}\n\nMove File or Folder\nPOST /dropbox/2/files/move_v2\nContent-Type: application/json\n\n{\n  \"from_path\": \"/old/location/file.pdf\",\n  \"to_path\": \"/new/location/file.pdf\",\n  \"autorename\": false\n}\n\n\nResponse:\n\n{\n  \"metadata\": {\n    \".tag\": \"file\",\n    \"name\": \"file.pdf\",\n    \"path_lower\": \"/new/location/file.pdf\",\n    \"path_display\": \"/new/location/file.pdf\",\n    \"id\": \"id:Awe3Av8A8YYAAAAAAAAACA\"\n  }\n}\n\nDelete File or Folder\nPOST /dropbox/2/files/delete_v2\nContent-Type: application/json\n\n{\n  \"path\": \"/file-to-delete.pdf\"\n}\n\n\nResponse:\n\n{\n  \"metadata\": {\n    \".tag\": \"file\",\n    \"name\": \"file-to-delete.pdf\",\n    \"path_lower\": \"/file-to-delete.pdf\",\n    \"path_display\": \"/file-to-delete.pdf\",\n    \"id\": \"id:Awe3Av8A8YYAAAAAAAAABQ\"\n  }\n}\n\nGet Temporary Download Link\nPOST /dropbox/2/files/get_temporary_link\nContent-Type: application/json\n\n{\n  \"path\": \"/document.pdf\"\n}\n\n\nResponse:\n\n{\n  \"metadata\": {\n    \"name\": \"document.pdf\",\n    \"path_lower\": \"/document.pdf\",\n    \"path_display\": \"/document.pdf\",\n    \"id\": \"id:Awe3Av8A8YYAAAAAAAAABQ\",\n    \"size\": 538371,\n    \"is_downloadable\": true\n  },\n  \"link\": \"https://uc785ee484c03b6556c091ea4491.dl.dropboxusercontent.com/cd/0/get/...\"\n}\n\n\nThe link is valid for 4 hours.\n\nSearch\nSearch Files\nPOST /dropbox/2/files/search_v2\nContent-Type: application/json\n\n{\n  \"query\": \"document\",\n  \"options\": {\n    \"path\": \"\",\n    \"max_results\": 100,\n    \"file_status\": \"active\",\n    \"filename_only\": false\n  }\n}\n\n\nResponse:\n\n{\n  \"has_more\": false,\n  \"matches\": [\n    {\n      \"highlight_spans\": [],\n      \"match_type\": {\n        \".tag\": \"filename\"\n      },\n      \"metadata\": {\n        \".tag\": \"metadata\",\n        \"metadata\": {\n          \".tag\": \"file\",\n          \"name\": \"document.pdf\",\n          \"path_display\": \"/document.pdf\",\n          \"path_lower\": \"/document.pdf\",\n          \"id\": \"id:Awe3Av8A8YYAAAAAAAAABw\"\n        }\n      }\n    }\n  ]\n}\n\nContinue Search\nPOST /dropbox/2/files/search/continue_v2\nContent-Type: application/json\n\n{\n  \"cursor\": \"...\"\n}\n\nFile Revisions\nList Revisions\nPOST /dropbox/2/files/list_revisions\nContent-Type: application/json\n\n{\n  \"path\": \"/document.pdf\",\n  \"mode\": \"path\",\n  \"limit\": 10\n}\n\n\nResponse:\n\n{\n  \"is_deleted\": false,\n  \"entries\": [\n    {\n      \"name\": \"document.pdf\",\n      \"path_lower\": \"/document.pdf\",\n      \"path_display\": \"/document.pdf\",\n      \"id\": \"id:Awe3Av8A8YYAAAAAAAAABQ\",\n      \"client_modified\": \"2026-02-09T19:58:12Z\",\n      \"server_modified\": \"2026-02-09T19:58:13Z\",\n      \"rev\": \"016311c063b4f8700000002caa704e3\",\n      \"size\": 538371,\n      \"is_downloadable\": true\n    }\n  ],\n  \"has_more\": false\n}\n\nRestore File\nPOST /dropbox/2/files/restore\nContent-Type: application/json\n\n{\n  \"path\": \"/document.pdf\",\n  \"rev\": \"016311c063b4f8700000002caa704e3\"\n}\n\nTags\nGet Tags\nPOST /dropbox/2/files/tags/get\nContent-Type: application/json\n\n{\n  \"paths\": [\"/document.pdf\", \"/folder\"]\n}\n\n\nResponse:\n\n{\n  \"paths_to_tags\": [\n    {\n      \"path\": \"/document.pdf\",\n      \"tags\": [\n        {\n          \".tag\": \"user_generated_tag\",\n          \"tag_text\": \"important\"\n        }\n      ]\n    },\n    {\n      \"path\": \"/folder\",\n      \"tags\": []\n    }\n  ]\n}\n\nAdd Tag\nPOST /dropbox/2/files/tags/add\nContent-Type: application/json\n\n{\n  \"path\": \"/document.pdf\",\n  \"tag_text\": \"important\"\n}\n\n\nReturns null on success.\n\nNote: Tag text must match pattern [\\w]+ (alphanumeric and underscores only, no hyphens or spaces).\n\nRemove Tag\nPOST /dropbox/2/files/tags/remove\nContent-Type: application/json\n\n{\n  \"path\": \"/document.pdf\",\n  \"tag_text\": \"important\"\n}\n\n\nReturns null on success.\n\nBatch Operations\nDelete Batch\nPOST /dropbox/2/files/delete_batch\nContent-Type: application/json\n\n{\n  \"entries\": [\n    {\"path\": \"/file1.pdf\"},\n    {\"path\": \"/file2.pdf\"}\n  ]\n}\n\n\nReturns async job ID. Check status with /files/delete_batch/check.\n\nCopy Batch\nPOST /dropbox/2/files/copy_batch_v2\nContent-Type: application/json\n\n{\n  \"entries\": [\n    {\"from_path\": \"/source/file1.pdf\", \"to_path\": \"/dest/file1.pdf\"},\n    {\"from_path\": \"/source/file2.pdf\", \"to_path\": \"/dest/file2.pdf\"}\n  ],\n  \"autorename\": false\n}\n\nMove Batch\nPOST /dropbox/2/files/move_batch_v2\nContent-Type: application/json\n\n{\n  \"entries\": [\n    {\"from_path\": \"/old/file1.pdf\", \"to_path\": \"/new/file1.pdf\"},\n    {\"from_path\": \"/old/file2.pdf\", \"to_path\": \"/new/file2.pdf\"}\n  ],\n  \"autorename\": false\n}\n\nPagination\n\nDropbox uses cursor-based pagination. When has_more is true, use the /continue endpoint with the returned cursor.\n\nimport os\nimport requests\n\nheaders = {\n    'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}',\n    'Content-Type': 'application/json'\n}\n\n# Initial request\nresponse = requests.post(\n    'https://gateway.maton.ai/dropbox/2/files/list_folder',\n    headers=headers,\n    json={'path': '', 'limit': 100}\n)\nresult = response.json()\nall_entries = result['entries']\n\n# Continue while has_more is True\nwhile result.get('has_more'):\n    response = requests.post(\n        'https://gateway.maton.ai/dropbox/2/files/list_folder/continue',\n        headers=headers,\n        json={'cursor': result['cursor']}\n    )\n    result = response.json()\n    all_entries.extend(result['entries'])\n\nprint(f\"Total entries: {len(all_entries)}\")\n\nCode Examples\nJavaScript\nconst response = await fetch(\n  'https://gateway.maton.ai/dropbox/2/files/list_folder',\n  {\n    method: 'POST',\n    headers: {\n      'Authorization': `Bearer ${process.env.MATON_API_KEY}`,\n      'Content-Type': 'application/json'\n    },\n    body: JSON.stringify({ path: '' })\n  }\n);\nconst data = await response.json();\nconsole.log(data.entries);\n\nPython\nimport os\nimport requests\n\nresponse = requests.post(\n    'https://gateway.maton.ai/dropbox/2/files/list_folder',\n    headers={\n        'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}',\n        'Content-Type': 'application/json'\n    },\n    json={'path': ''}\n)\ndata = response.json()\nprint(data['entries'])\n\nPython (Create Folder and Search)\nimport os\nimport requests\n\nheaders = {\n    'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}',\n    'Content-Type': 'application/json'\n}\n\n# Create folder\nresponse = requests.post(\n    'https://gateway.maton.ai/dropbox/2/files/create_folder_v2',\n    headers=headers,\n    json={'path': '/My New Folder', 'autorename': False}\n)\nfolder = response.json()\nprint(f\"Created folder: {folder['metadata']['path_display']}\")\n\n# Search for files\nresponse = requests.post(\n    'https://gateway.maton.ai/dropbox/2/files/search_v2',\n    headers=headers,\n    json={'query': 'document'}\n)\nresults = response.json()\nprint(f\"Found {len(results['matches'])} matches\")\n\nNotes\nAll Dropbox API v2 endpoints use HTTP POST method\nRequest bodies are JSON (not form-urlencoded)\nUse empty string \"\" for the root folder path\nPaths are case-insensitive but case-preserving\nFile IDs (e.g., id:Awe3Av8A8YYAAAAAAAAABQ) persist even when files are moved or renamed\nTag text must match pattern [\\w]+ (alphanumeric and underscores only)\nTemporary download links expire after 4 hours\nRate limits are generous and per-user\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 Dropbox connection or bad request\n401\tInvalid or missing Maton API key\n404\tResource not found\n409\tConflict (path doesn't exist, already exists, etc.)\n429\tRate limited\n4xx/5xx\tPassthrough error from Dropbox API\n\nError responses include details:\n\n{\n  \"error_summary\": \"path/not_found/...\",\n  \"error\": {\n    \".tag\": \"path\",\n    \"path\": {\n      \".tag\": \"not_found\"\n    }\n  }\n}\n\nTroubleshooting: Invalid API Key\n\nWhen you receive an \"Invalid API key\" error, ALWAYS follow these steps before concluding there is an issue:\n\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\nResources\nDropbox HTTP API Overview\nDropbox Developer Portal\nDropbox API Explorer\nDBX File Access Guide"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/byungkyu/dropbox-api",
    "publisherUrl": "https://clawhub.ai/byungkyu/dropbox-api",
    "owner": "byungkyu",
    "version": "1.0.2",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/dropbox-api",
    "downloadUrl": "https://openagent3.xyz/downloads/dropbox-api",
    "agentUrl": "https://openagent3.xyz/skills/dropbox-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/dropbox-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/dropbox-api/agent.md"
  }
}