
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
@datafire/dropbox_content
Advanced tools
Client library for Dropbox API
npm install --save @datafire/dropbox_content
let dropbox_content = require('@datafire/dropbox_content').create({
access_token: "",
refresh_token: "",
client_id: "",
client_secret: "",
redirect_uri: ""
});
.then(data => {
console.log(data);
});
Dropbox API
Exchange the code passed to your redirect URI for an access_token
dropbox_content.oauthCallback({
"code": ""
}, context)
object
string
object
string
string
string
string
string
Exchange a refresh_token for an access_token
dropbox_content.oauthRefresh(null, context)
This action has no parameters
object
string
string
string
string
string
Download a folder from the user's Dropbox, as a zip file. The folder must be less than 20 GB in size and have fewer than 10,000 total files. The input cannot be a single file. Any single file must be less than 4GB in size.
dropbox_content.files.download_zip.post({}, context)
object
string
: {"properties": ["path"]}object
object
string
string
string
object
boolean
string
boolean
boolean
array
object
array
object
string
string
This endpoint only applies to apps using the authorization code flow . An app calls this endpoint to acquire a bearer token once the user has authorized the app. Calls to /oauth2/token need to be authenticated using the apps's key and secret. These can either be passed as application/x-www-form-urlencoded POST parameters (see parameters below) or via HTTP basic authentication . If basic authentication is used, the app key should be provided as the username, and the app secret should be provided as the password.
dropbox_content.oauth2.token.post({}, context)
object
string
: The code acquired by directing users to .string
: The grant type, which must be .string
: If credentials are passed in parameters, this parameter should be present and should be the app's key (found in the ).string
: If credentials are passed in parameters, this parameter should be present and should be the app's secret.string
: Only used to validate that it matches the original , not used to redirect again.object
string
string
string
string
Finish an upload session and save the uploaded data to the given file path. A single request should not upload more than 150 MB. The maximum size of a file one can upload to an upload session is 350 GB. Calls to this endpoint will count as data transport calls for any Dropbox Business teams with a limit on the number of data transport calls allowed per month. For more information, see the Data transport limit page .
dropbox_content.files.upload_session.finish.post({}, context)
object
string
: {"properties": ["cursor", "commit"]}string
, object
string
string
(values: ascii, utf8, utf16le, base64, binary, hex)string
string
object
string
string
string
string
boolean
string
string
object
boolean
string
string
array
object
array
object
string
string
string
string
string
integer
Get a preview for a file. Currently, PDF previews are generated for files with the following extensions: .ai, .doc, .docm, .docx, .eps, .odp, .odt, .pps, .ppsm, .ppsx, .ppt, .pptm, .pptx, .rtf. HTML previews are generated for files with the following extensions: .csv, .ods, .xls, .xlsm, .xlsx. Other formats will return an unsupported extension error.
dropbox_content.files.get_preview.post({}, context)
object
string
: {"properties": ["path", "rev deprecated"]}object
string
string
string
string
boolean
string
string
object
boolean
string
string
array
object
array
object
string
string
string
string
string
integer
This starts the OAuth 2.0 authorization flow. This isn't an API call—it's the web page that lets the user sign in to Dropbox and authorize your app. After the user decides whether or not to authorize your app, they will be redirected to the URI specified by redirect_uri . OAuth 2.0 supports two authorization flows: The code flow returns a code via the redirect_uri callback which should then be converted into a bearer token using the /oauth2/token call . This is the recommended flow for apps that are running on a server. The token or implicit grant flow returns the bearer token via the redirect_uri callback, rather than requiring your app to make a second call to a server. This is useful for pure client-side apps, such as mobile apps or JavaScript-based apps. For more information on the two flows, see Section 1.3 of the OAuth 2 spec . If the user isn't already signed in to the Dropbox web site, they will be prompted to do so on this web page. Note that some users use their Google account to sign in to Dropbox. In order to comply with Google's policy against processing the OAuth flow inside a web-view , you should not display this web page inside a web-view.
dropbox_content.oauth2.authorize.get({}, context)
object
string
: The grant type requested, either or .string
: The app's key, found in the .string
: Where to redirect the user after authorization has completed. This must be the exact URI registered in the ; even 'localhost' must be listed if it is used for testing. All redirect URIs must be HTTPS except for localhost URIs. A redirect URI is required for the flow, but optional for the flow. If the redirect URI is omitted, the will be presented directly to the user and they will be invited to enter the information in your app.string
: Up to 500 bytes of arbitrary data that will be passed back to your redirect URI. This parameter should be used to protect against cross-site request forgery (CSRF). See Sections and of the OAuth 2.0 threat model spec.string
: If this parameter is specified, the user will be asked to authorize with a particular type of Dropbox account, either for a team account or for a personal account. Your app should still verify the type of Dropbox account after authorization since the user could modify or remove the parameter.boolean
: Whether or not to force the user to approve the app again if they've already done so. If (default), a user who has already approved the application may be automatically redirected to the URI specified by . If , the user will not be automatically redirected and will have to approve the app again.boolean
: When true (default is false) users will not be able to sign up for a Dropbox account via the authorization page. Instead, the authorization page will show a link to the Dropbox iOS app in the App Store. This is only intended for use when necessary for compliance with App Store policies.string
: If the locale specified is a , Dropbox will direct users to a translated version of the authorization website. Locale tags should be .boolean
: When (default is ) users will be signed out if they are currently signed in. This will make sure the user is brought to a page where they can create a new account or sign in to another account. This should only be used when there is a definite reason to believe that the user needs to sign in to a new or different account.Output schema unknown
Creates a new Paper doc with the provided content.
dropbox_content.paper.docs.create.post({}, context)
object
string
: {"properties": ["import_format", "parent_folder_id"]}string
, object
string
string
(values: ascii, utf8, utf16le, base64, binary, hex)string
string
object
string
string
integer
Download a file from a user's Dropbox.
dropbox_content.files.download.post({}, context)
object
string
: {"properties": ["path", "rev deprecated"]}object
string
string
string
string
boolean
string
string
object
boolean
string
string
array
object
array
object
string
string
string
string
string
integer
Append more data to an upload session. When the parameter close is set, this call will close the session. A single request should not upload more than 150 MB. The maximum size of a file one can upload to an upload session is 350 GB. Calls to this endpoint will count as data transport calls for any Dropbox Business teams with a limit on the number of data transport calls allowed per month. For more information, see the Data transport limit page .
dropbox_content.files.upload_session.append.post({}, context)
object
string
: {"properties": ["cursor", "close"]}string
, object
string
string
(values: ascii, utf8, utf16le, base64, binary, hex)string
string
Output schema unknown
Create a new file with the contents provided in the request. Note that this endpoint is part of the properties API alpha and is slightly different from upload . Do not use this to upload a file larger than 150 MB. Instead, create an upload session with upload_session/start .
dropbox_content.deprecated.alpha.upload.post({}, context)
object
string
: {"properties": ["path", "mode", "autorename", "client_modified", "mute", "property_groups", "strict_conflict"]}string
, object
string
string
(values: ascii, utf8, utf16le, base64, binary, hex)string
string
object
string
string
string
string
boolean
string
string
object
boolean
string
string
array
object
array
object
string
string
string
string
string
integer
Download the shared link's file from a user's Dropbox.
dropbox_content.sharing.get_shared_link_file.post({}, context)
object
string
: {"properties": ["url", "path", "link_password"]}object
string
string
string
string
string
string
string
object
object
string
boolean
object
string
object
string
string
object
string
string
string
integer
Exports and downloads Paper doc either as HTML or markdown.
dropbox_content.paper.docs.download.post({}, context)
object
string
: {"properties": ["doc_id", "export_format"]}object
string
integer
string
string
Get a thumbnail for an image. This method currently supports files with the following file extensions: jpg, jpeg, png, tiff, tif, gif and bmp. Photos that are larger than 20MB in size won't be converted to a thumbnail.
dropbox_content.files.get_thumbnail.post({}, context)
object
string
: {"properties": ["path", "format", "size", "mode"]}object
string
string
string
string
boolean
string
string
object
boolean
string
string
array
object
array
object
string
string
string
string
string
integer
Create a new file with the contents provided in the request. Do not use this to upload a file larger than 150 MB. Instead, create an upload session with upload_session/start . Calls to this endpoint will count as data transport calls for any Dropbox Business teams with a limit on the number of data transport calls allowed per month. For more information, see the Data transport limit page .
dropbox_content.files.upload.post({}, context)
object
string
: {"properties": ["path", "mode", "autorename", "client_modified", "mute", "property_groups", "strict_conflict"]}string
, object
string
string
(values: ascii, utf8, utf16le, base64, binary, hex)string
string
object
string
string
string
string
boolean
string
string
object
boolean
string
string
array
object
array
object
string
string
string
string
string
integer
Upload sessions allow you to upload a single file in one or more requests, for example where the size of the file is greater than 150 MB. This call starts a new upload session with the given data. You can then use upload_session/append:2 to add more data and upload_session/finish to save all the data to a file in Dropbox. A single request should not upload more than 150 MB. The maximum size of a file one can upload to an upload session is 350 GB. An upload session can be used for a maximum of 48 hours. Attempting to use an UploadSessionStartResult.session_id with upload_session/append:2 or upload_session/finish more than 48 hours after its creation will return a UploadSessionLookupError.not_found. Calls to this endpoint will count as data transport calls for any Dropbox Business teams with a limit on the number of data transport calls allowed per month. For more information, see the Data transport limit page .
dropbox_content.files.upload_session.start.post({}, context)
object
string
: {"properties": ["close"]}string
, object
string
string
(values: ascii, utf8, utf16le, base64, binary, hex)string
string
object
string
Updates an existing Paper doc with the provided content.
dropbox_content.paper.docs.update.post({}, context)
object
string
: {"properties": ["doc_id", "doc_update_policy", "revision", "import_format"]}string
, object
string
string
(values: ascii, utf8, utf16le, base64, binary, hex)string
string
object
string
string
integer
This integration has no definitions
FAQs
DataFire integration for Dropbox API
The npm package @datafire/dropbox_content receives a total of 9 weekly downloads. As such, @datafire/dropbox_content popularity was classified as not popular.
We found that @datafire/dropbox_content demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.