{"templateId":"GuidePage","sharedDataIds":{"sidebar":"sidebar-miniapps/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Dropbox","description":"Developer API, partner integration, MCP, SDK, and customer help center.","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"dropbox","__idx":0},"children":["Dropbox"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A file storage integration with bearer token auth, 9 actions, and 5 triggers."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"javascript","header":{"controls":{"copy":{}}},"source":"const dropboxMiniApp = {\n  ns: 'dropbox',\n  name: 'dropbox',\n  type: 'dropbox',\n  title: 'Dropbox',\n  label: 'Dropbox',\n  description: 'Connect Dropbox to manage files dynamically.',\n  shortDescription: 'Cloud file storage management',\n  status: 'public',\n  version: '1.0.0',\n  category: 'storage',\n  icon: 'https://cdn.karzoun.com/miniapps/dropbox/icon.svg',\n  logo: 'https://cdn.karzoun.com/miniapps/dropbox/logo.svg',\n  docsUrl: 'https://www.dropbox.com/developers/documentation',\n\n  auth: {\n    type: 'bearer_token',\n    sensitiveKeys: ['accessToken'],\n    config: { accessToken: '' },\n    userDetails: {\n      url: 'https://api.dropboxapi.com/2/users/get_current_account',\n      method: 'POST',\n      headers: {\n        Authorization: 'Bearer [[accessToken]]',\n        'Content-Type': 'application/json',\n      },\n      bodyType: 'json',\n      body: null,\n      mapping: {\n        uid: '$.account_id',\n        name: '$.name.display_name',\n      },\n    },\n  },\n\n  // 5 webhook triggers\n  triggers: [\n    {\n      type: 'miniapps:dropbox',\n      event: 'file.added',\n      img: 'automation3.svg',\n      icon: 'file-plus',\n      label: 'Dropbox File Added',\n      description: 'Triggered when a new file is uploaded.',\n      isCustom: false,\n    },\n    {\n      type: 'miniapps:dropbox',\n      event: 'file.removed',\n      img: 'automation3.svg',\n      icon: 'file-minus',\n      label: 'Dropbox File Removed',\n      description: 'Triggered when a file is deleted.',\n      isCustom: false,\n    },\n    // ... more triggers\n  ],\n\n  // 9 actions\n  actions: [\n    {\n      name: 'createFolder',\n      title: 'Create Folder',\n      description: 'Create a new folder in Dropbox',\n      renderStrategy: 'auto',\n      parameters: {\n        type: 'object',\n        required: ['path'],\n        properties: {\n          path: {\n            type: 'string',\n            title: 'Folder Path',\n            description: 'Full path like /Documents/MyFolder',\n          },\n          autorename: {\n            type: 'boolean',\n            title: 'Auto Rename',\n            description: 'Rename if folder exists',\n            default: false,\n          },\n        },\n      },\n      requests: [\n        {\n          url: 'https://api.dropboxapi.com/2/files/create_folder_v2',\n          method: 'POST',\n          headers: {\n            Authorization: 'Bearer [[accessToken]]',\n            'Content-Type': 'application/json',\n          },\n          bodyType: 'json',\n          body: {\n            path: '{{path}}',\n            autorename: '{{autorename}}',\n          },\n          mapping: {\n            folderId: '$.metadata.id',\n            folderPath: '$.metadata.path_display',\n          },\n        },\n      ],\n    },\n    // ... more actions\n  ],\n\n  source: {},   // No RPC sources needed\n  webhook: null, // Simple triggers without webhook processing\n};\n","lang":"javascript"},"children":[]}]},"headings":[{"value":"Dropbox","id":"dropbox","depth":1}],"frontmatter":{"title":"Dropbox example","titleTranslationKey":"sidebar.miniapps.exampleDropbox","audience":"developer","status":"published","locales":["en"],"template":"GuidePage","seo":{"title":"Dropbox"}},"lastModified":"2026-06-23T12:06:12.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/miniapps/examples/dropbox","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}