The Dropbox API allows developers to work with files in Dropbox, including advanced functionality like full-text search, thumbnails, and sharing. The Dropbox API explorer is the easiest way to get started making API calls.
In general, the Dropbox API uses HTTP POST requests with JSON arguments and JSON responses. Request authentication is via OAuth 2.0 using the Authorization request header or authorization URL parameter.
These endpoints accept arguments as JSON in the request body and return results as JSON in the response body. RPC endpoints are on the api.dropboxapi.com domain.
These endpoints accept file content in the request body, so their arguments are instead passed as JSON in the Dropbox-API-Arg request header or arg URL parameter. These endpoints are on the content.dropboxapi.com domain.
As with content-upload endpoints, arguments are passed in the Dropbox-API-Arg request header or arg URL parameter. The response body contains file content, so the result will appear as JSON in the Dropbox-API-Result response header. These endpoints are also on the content.dropboxapi.com domain.
These endpoints also support HTTP GET along with ETag-based caching (If-None-Match) and HTTP range requests.
When browser-based JavaScript code makes a cross-site HTTP request, the browser must sometimes send a "pre-flight" check to make sure the server allows cross-site requests. You can avoid the extra round-trip by ensuring your request meets the CORS definition of a "simple cross-site request".
arg and authorization instead of HTTP headers Dropbox-API-Arg and Authorization.Content-Type to "text/plain; charset=dropbox-cors-hack" instead of "application/json" or "application/octet-stream".reject_cors_preflight=true. This makes it easier to catch cases where your code is unintentionally triggering a pre-flight check.All dates in the API use UTC and are strings in the ISO 8601 "combined date and time representation" format:
2015-05-15T15:50:38Z
Paths are relative to an application's root (either an app folder or the root of a user's Dropbox, depending on the app's access type). The empty string ("") represents the root folder. All other paths must start with a slash (e.g. "/hello/world.txt").
Every file and folder in Dropbox also has an ID (e.g. "id:abc123xyz") that can be obtained from any endpoint that returns metadata. Some endpoints, as noted in the individual endpoint documentation below, can accept IDs in addition to normal paths. A path relative to a folder's ID can be constructed by using a slash (e.g. "id:abc123xyz/hello.txt").
For endpoints that accept performing actions on behalf of a team administrator using the Dropbox-API-Select-Admin header, files may be referenced using a namespace-relative path (e.g. "ns:123456/cupcake.png"). In this case, the namespace ID, "123456", would be the shared_folder_id or team_folder_id of the shared folder or the team folder containing the file or folder, and the path, "/cupcake.png", would be the logical path to the content relative to its shared folder or team folder container.
Like Dropbox itself, the Dropbox API is case-insensitive, meaning that /A/B/c.txt is the same file as /a/b/C.txt and is the same file as /a/B/c.txt.
This can cause problems for apps that store file metadata from users in case-sensitive databases (such as SQLite or Postgres). Case insensitive collations should be used when storing Dropbox metadata in such databases. Alternatively, developers need to make sure their query operators are explicitly case insensitive.
Also, while Dropbox is case-insensitive, it makes efforts to be case-preserving. Metadata.name will contain the correct case. Metadata.path_display usually will contain the correct case, but sometimes only in the last path component. If your app needs the correct case for all components, it can get it from the Metadata.name or last path component of each relevant Metadata.path_display entry.
Dropbox supports OAuth 2.0 for authorizing API requests. Find out more in our OAuth guide. Authorized requests to the API should use an Authorization header with the value Bearer <TOKEN>, where <TOKEN> is an access token obtained through the OAuth flow.
Note: OAuth is an authorization protocol, not an authentication protocol. Dropbox should not be used as an identity provider.
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:
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.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.
https://www.dropbox.com/oauth2/authorize
Note: This is the only step that requires an endpoint on www.dropbox.com. All other API requests are done via api.dropboxapi.com, content.dropboxapi.com, or notify.dropboxapi.com.
response_type String The grant type requested, either token or code.
client_id String The app's key, found in the App Console.
redirect_uri String? Where to redirect the user after authorization has completed. This must be the exact URI registered in the App Console; 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 token flow, but optional for the code flow. If the redirect URI is omitted, the code will be presented directly to the user and they will be invited to enter the information in your app.
state 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 4.4.1.8 and 4.4.2.5 of the OAuth 2.0 threat model spec.
require_role String? If this parameter is specified, the user will be asked to authorize with a particular type of Dropbox account, either work for a team account or personal for a personal account. Your app should still verify the type of Dropbox account after authorization since the user could modify or remove the require_role parameter.
force_reapprove Boolean? Whether or not to force the user to approve the app again if they've already done so. If false (default), a user who has already approved the application may be automatically redirected to the URI specified by redirect_uri. If true, the user will not be automatically redirected and will have to approve the app again.
disable_signup 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.
Because /oauth2/authorize is a website, there is no direct return value. However, after the user authorizes your app, they will be sent to your redirect URI. The type of response varies based on the response_type.
These parameters are passed in the query string (after the ? in the URL):
code String The authorization code, which can be used to attain a bearer token by calling /oauth2/token.
state String The state content, if any, originally passed to /oauth2/authorize.
Sample response
[REDIRECT_URI]?code=ABCDEFG&state=[STATE]
These parameters are passed in the URL fragment (after the # in the URL).
Note: as fragments, these parameters can be modified by the user and must not be trusted server-side. If any of these fields are being used server-side, please consider using the Code flow, or alternatively using the fields returned from /get_current_account instead.
access_token String A token which can be used to make calls to the Dropbox API.
token_type String The type of token, which will always be bearer.
account_id String A user's account identifier used by API v2.
team_id String A team's identifier used by API v2.
uid String Deprecated. The API v1 user/team identifier. Please use account_id instead, or if using the Dropbox Business API, team_id.
state String The state content, if any, originally passed to /oauth2/authorize.
Sample response
[REDIRECT_URI]#access_token=ABCDEFG&token_type=bearer&account_id=dbid%3AAAH4f99T0taONIb-OurWxbNQ6ywGRopQngc&uid=12345&state=[STATE]
In either flow, if an error occurs, including if the user has chosen not to authorize the app, the following parameters will be included in the redirect URI:
error String An error code per Section 4.1.2.1 of the OAuth 2.0 spec.
error_description String A user-friendly description of the error that occurred.
state String The state content, if any, originally passed to /oauth2/authorize.
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 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.
https://api.dropboxapi.com/oauth2/token
code String The code acquired by directing users to /oauth2/authorize?response_type=code.
grant_type String The grant type, which must be authorization_code.
client_id String? If credentials are passed in POST parameters, this parameter should be present and should be the app's key (found in the App Console).
client_secret String? If credentials are passed in POST parameters, this parameter should be present and should be the app's secret.
redirect_uri String? Only used to validate that it matches the original /oauth2/authorize, not used to redirect again.
A JSON-encoded dictionary including an access token (access_token), token type (token_type), an API v2 user ID (account_id), or if team-linked, an API v2 team ID (team_id) instead. The API v1 identifier value (uid) is deprecated and should no longer be used. The token type will always be "bearer".
Sample response
{"access_token": "ABCDEFG", "token_type": "bearer", "account_id": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc", "uid": "12345"}
Errors are returned using standard HTTP error code syntax. Depending on the status code, the response body may be in JSON or plaintext.
| Code | Description |
|---|---|
| 400 | Bad input parameter. The response body is a plaintext message with more information. |
| 401 | Bad or expired token. This can happen if the access token is expired or if the access token has been revoked by Dropbox or the user. To fix this, you should re-authenticate the user. |
| 409 | Endpoint-specific error. Look to the JSON response body for the specifics of the error. |
| 429 | Your app is making too many requests for the given user or team and is being rate limited. Your app should wait for the number of seconds specified in the "Retry-After" response header before trying again. The Content-Type of the response can be JSON or plaintext. If it is JSON, it will have a reason field with one of the following values:too_many_requests Void Your app has been making too many requests in the past few minutes.
too_many_write_operations Void They are too many write operations happening in the user's Dropbox.
|
| 5xx | An error occurred on the Dropbox servers. Check status.dropbox.com for announcements about Dropbox service issues. |
| Key | Description |
|---|---|
| error | A value that conforms to the error data type schema defined in the definition of each route. |
| error_summary | A string that summarizes the value of the "error" key. It is a concatenation of the hierarchy of union tags that make up the error. While this provides a human-readable error string, "error_summary" should not be used for programmatic error handling. To disincentive this, we append a random number of "." characters at the end of the string. |
| user_message | An optional field. If present, it includes a message that can be shown directly to the end user of your app. You should show this message if your app is unprepared to programmatically handle the error returned by an endpoint. |
Use the dropdown to select which app to make API calls with. An access token for the chosen app will be generated and inserted into the examples below.
By generating an access token, you will be able to make API calls for your own account without going through the authorization flow. To obtain access tokens for other users, use the standard OAuth flow.
Use the dropdown to select which app to make API calls with. An access token for the chosen app will be generated and inserted into the examples below.
By generating an access token, you will be able to make API calls for your own account without going through the authorization flow. To obtain access tokens for other users, use the standard OAuth flow.
Creates an OAuth 2.0 access token from the supplied OAuth 1.0 access token.
https://api.dropboxapi.com/2/auth/token/from_oauth1
curl -X POST https://api.dropboxapi.com/2/auth/token/from_oauth1 \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"oauth1_token\": \"qievr8hamyg6ndck\",\"oauth1_token_secret\": \"qomoftv0472git7\"}"
{
"oauth1_token": "qievr8hamyg6ndck",
"oauth1_token_secret": "qomoftv0472git7"
}oauth1_token String(min_length=1) The supplied OAuth 1.0 access token.
oauth1_token_secret String(min_length=1) The token secret associated with the supplied access token.
{
"oauth2_token": "9mCrkS7BIdAAAAAAAAAAHHS0TsSnpYvKQVtKdBnN5IuzhYOGblSgTcHgBFKFMmFn"
}oauth2_token String(min_length=1) The OAuth 2.0 token generated from the supplied OAuth 1.0 token.
{
"error_summary": "invalid_oauth1_token_info/...",
"error": {
".tag": "invalid_oauth1_token_info"
}
}
{
"error_summary": "app_id_mismatch/...",
"error": {
".tag": "app_id_mismatch"
}
}
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}invalid_oauth1_token_info Void Part or all of the OAuth 1.0 access token info is invalid.
app_id_mismatch Void The authorized app does not match the app associated with the supplied access token.
Disables the access token used to authenticate the call.
https://api.dropboxapi.com/2/auth/token/revoke
curl -X POST https://api.dropboxapi.com/2/auth/token/revoke \
--header "Authorization: Bearer "
No parameters.
No return values.
No errors.
This namespace contains endpoints and data types for basic file operations.
Copy a file or folder to a different location in the user's Dropbox.
If the source path is a folder all its contents will be copied.
https://api.dropboxapi.com/2/files/copy
curl -X POST https://api.dropboxapi.com/2/files/copy \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"from_path\": \"/Homework/math\",\"to_path\": \"/Homework/algebra\",\"allow_shared_folder\": false,\"autorename\": false}"
{
"from_path": "/Homework/math",
"to_path": "/Homework/algebra",
"allow_shared_folder": false,
"autorename": false
}from_path String(pattern="(/(.|[\r\n])*)|(ns:[0-9]+(/.*)?)") Path in the user's Dropbox to be copied or moved.
to_path String(pattern="(/(.|[\r\n])*)|(ns:[0-9]+(/.*)?)") Path in the user's Dropbox that is the destination.
allow_shared_folder Boolean If true, copy will copy contents in shared folder, otherwise RelocationError.cant_copy_shared_folder will be returned if from_path contains shared folder. This field is always true for move. The default for this field is False.
autorename Boolean If there's a conflict, have the Dropbox server try to autorename the file to avoid the conflict. The default for this field is False.
{
".tag": "file",
"name": "Prime_Numbers.txt",
"id": "id:a4ayc_80_OEAAAAAAAAAXw",
"client_modified": "2015-05-12T15:50:38Z",
"server_modified": "2015-05-12T15:50:38Z",
"rev": "a1c10ce0dd78",
"size": 7212,
"path_lower": "/homework/math/prime_numbers.txt",
"path_display": "/Homework/math/Prime_Numbers.txt",
"sharing_info": {
"read_only": true,
"parent_shared_folder_id": "84528192421",
"modified_by": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc"
},
"property_groups": [
{
"template_id": "ptid:1a5n2i6d3OYEAAAAAAAAAYa",
"fields": [
{
"name": "Security Policy",
"value": "Confidential"
}
]
}
],
"has_explicit_shared_members": false
}{
".tag": "folder",
"name": "math",
"id": "id:a4ayc_80_OEAAAAAAAAAXz",
"path_lower": "/homework/math",
"path_display": "/Homework/math",
"sharing_info": {
"read_only": false,
"parent_shared_folder_id": "84528192421",
"traverse_only": false,
"no_access": false
},
"property_groups": [
{
"template_id": "ptid:1a5n2i6d3OYEAAAAAAAAAYa",
"fields": [
{
"name": "Security Policy",
"value": "Confidential"
}
]
}
]
}file FileMetadata name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the file.
client_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") For files, this is the modification time set by the desktop client when the file was added to Dropbox. Since this time is not verified (the Dropbox server stores whatever the desktop client sends up), this should only be used for display purposes (such as sorting) and not, for example, to determine if a file has changed or not.
server_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") The last time the file was modified on Dropbox.
rev String(min_length=9, pattern="[0-9a-f]+") A unique identifier for the current revision of a file. This field is the same rev as elsewhere in the API and can be used to detect changes and avoid conflicts.
size UInt64 The file size in bytes.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
media_info MediaInfo? Additional information if the file is a photo or video. This field is optional.pending Void Indicate the photo/video is still under processing and metadata is not available yet.
metadata MediaMetadata The metadata for the photo/video.photo PhotoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
video VideoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
duration UInt64? The duration of the video in milliseconds. This field is optional.
sharing_info FileSharingInfo? Set if this file is contained in a shared folder. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+") ID of shared folder that holds this file.
modified_by String(min_length=40, max_length=40)? The last user who modified the file. This field will be null if the user's account has been deleted. This field is optional.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
has_explicit_shared_members Boolean? This flag will only be present if include_has_explicit_shared_members is true in list_folder or get_metadata. If this flag is present, it will be true if this file has any explicit shared members. This is different from sharing_info in that this could be true in the case where a file has explicit members but is not contained within a shared folder. This field is optional.
folder FolderMetadata name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the folder.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use sharing_info instead. This field is optional.
sharing_info FolderSharingInfo? Set if the folder is contained in a shared folder or is a shared folder mount point. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Set if the folder is contained by a shared folder. This field is optional.
shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? If this folder is a shared folder mount point, the ID of the shared folder mounted at this location. This field is optional.
traverse_only Boolean Specifies that the folder can only be traversed and the user can only see a limited subset of the contents of this folder because they don't have read access to this folder. They do, however, have access to some sub folder. The default for this field is False.
no_access Boolean Specifies that the folder cannot be accessed by the user. The default for this field is False.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
deleted DeletedMetadata name String The last component of the path (including extension). This never contains a slash.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
{
"error_summary": "cant_copy_shared_folder/...",
"error": {
".tag": "cant_copy_shared_folder"
}
}
{
"error_summary": "cant_nest_shared_folder/...",
"error": {
".tag": "cant_nest_shared_folder"
}
}
{
"error_summary": "cant_move_folder_into_itself/...",
"error": {
".tag": "cant_move_folder_into_itself"
}
}
{
"error_summary": "too_many_files/...",
"error": {
".tag": "too_many_files"
}
}
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}from_lookup LookupError malformed_path String? This field is optional.
not_found Void There is nothing at the given path.
not_file Void We were expecting a file, but the given path refers to something that isn't a file.
not_folder Void We were expecting a folder, but the given path refers to something that isn't a folder.
restricted_content Void The file cannot be transferred because the content is restricted. For example, sometimes there are legal restrictions due to copyright claims.
invalid_path_root PathRootError The path root parameter provided is invalid.path_root String? The user's latest path root value. None if the user no longer has a path root. This field is optional.
from_write WriteError malformed_path String? This field is optional.
conflict WriteConflictError Couldn't write to the target path because there was something in the way.file Void There's a file in the way.
folder Void There's a folder in the way.
file_ancestor Void There's a file at an ancestor path, so we couldn't create the required parent folders.
no_write_permission Void The user doesn't have permissions to write to the target location.
insufficient_space Void The user doesn't have enough available space (bytes) to write more data.
disallowed_name Void Dropbox will not save the file or folder because of its name.
to WriteError malformed_path String? This field is optional.
conflict WriteConflictError Couldn't write to the target path because there was something in the way.file Void There's a file in the way.
folder Void There's a folder in the way.
file_ancestor Void There's a file at an ancestor path, so we couldn't create the required parent folders.
no_write_permission Void The user doesn't have permissions to write to the target location.
insufficient_space Void The user doesn't have enough available space (bytes) to write more data.
disallowed_name Void Dropbox will not save the file or folder because of its name.
cant_copy_shared_folder Void Shared folders can't be copied.
cant_nest_shared_folder Void Your move operation would result in nested shared folders. This is not allowed.
cant_move_folder_into_itself Void You cannot move a folder into itself.
too_many_files Void The operation would involve more than 10,000 files and folders.
Copy multiple files or folders to different locations at once in the user's Dropbox.
If RelocationBatchArg.allow_shared_folder is false, this route is atomic. If on entry failes, the whole transaction will abort. If RelocationBatchArg.allow_shared_folder is true, not atomicity is guaranteed, but you will be able to copy the contents of shared folders to new locations.
This route will return job ID immediately and do the async copy job in background. Please use copy_batch/check to check the job status.
https://api.dropboxapi.com/2/files/copy_batch
curl -X POST https://api.dropboxapi.com/2/files/copy_batch \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"entries\": [{\"from_path\": \"/Homework/math\",\"to_path\": \"/Homework/algebra\"}],\"allow_shared_folder\": false,\"autorename\": false}"
{
"entries": [
{
"from_path": "/Homework/math",
"to_path": "/Homework/algebra"
}
],
"allow_shared_folder": false,
"autorename": false
}entries List of (RelocationPath) List of entries to be moved or copied. Each entry is RelocationPath.from_path String(pattern="(/(.|[\r\n])*)|(ns:[0-9]+(/.*)?)") Path in the user's Dropbox to be copied or moved.
to_path String(pattern="(/(.|[\r\n])*)|(ns:[0-9]+(/.*)?)") Path in the user's Dropbox that is the destination.
allow_shared_folder Boolean If true, copy_batch will copy contents in shared folder, otherwise RelocationError.cant_copy_shared_folder will be returned if RelocationPath.from_path contains shared folder. This field is always true for move_batch. The default for this field is False.
autorename Boolean If there's a conflict with any file, have the Dropbox server try to autorename that file to avoid the conflict. The default for this field is False.
{
".tag": "complete",
"entries": [
{
"metadata": {
".tag": "file",
"name": "Prime_Numbers.txt",
"id": "id:a4ayc_80_OEAAAAAAAAAXw",
"client_modified": "2015-05-12T15:50:38Z",
"server_modified": "2015-05-12T15:50:38Z",
"rev": "a1c10ce0dd78",
"size": 7212,
"path_lower": "/homework/math/prime_numbers.txt",
"path_display": "/Homework/math/Prime_Numbers.txt",
"sharing_info": {
"read_only": true,
"parent_shared_folder_id": "84528192421",
"modified_by": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc"
},
"property_groups": [
{
"template_id": "ptid:1a5n2i6d3OYEAAAAAAAAAYa",
"fields": [
{
"name": "Security Policy",
"value": "Confidential"
}
]
}
],
"has_explicit_shared_members": false
}
}
]
}
{
".tag": "async_job_id",
"async_job_id": "34g93hh34h04y384084"
}
{
".tag": "other"
}async_job_id String(min_length=1) This response indicates that the processing is asynchronous. The string is an id that can be used to obtain the status of the asynchronous job.
complete RelocationBatchResult entries List of (RelocationResult) metadata Metadata file FileMetadata name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the file.
client_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") For files, this is the modification time set by the desktop client when the file was added to Dropbox. Since this time is not verified (the Dropbox server stores whatever the desktop client sends up), this should only be used for display purposes (such as sorting) and not, for example, to determine if a file has changed or not.
server_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") The last time the file was modified on Dropbox.
rev String(min_length=9, pattern="[0-9a-f]+") A unique identifier for the current revision of a file. This field is the same rev as elsewhere in the API and can be used to detect changes and avoid conflicts.
size UInt64 The file size in bytes.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
media_info MediaInfo? Additional information if the file is a photo or video. This field is optional.pending Void Indicate the photo/video is still under processing and metadata is not available yet.
metadata MediaMetadata The metadata for the photo/video.photo PhotoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
video VideoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
duration UInt64? The duration of the video in milliseconds. This field is optional.
sharing_info FileSharingInfo? Set if this file is contained in a shared folder. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+") ID of shared folder that holds this file.
modified_by String(min_length=40, max_length=40)? The last user who modified the file. This field will be null if the user's account has been deleted. This field is optional.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
has_explicit_shared_members Boolean? This flag will only be present if include_has_explicit_shared_members is true in list_folder or get_metadata. If this flag is present, it will be true if this file has any explicit shared members. This is different from sharing_info in that this could be true in the case where a file has explicit members but is not contained within a shared folder. This field is optional.
folder FolderMetadata name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the folder.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use sharing_info instead. This field is optional.
sharing_info FolderSharingInfo? Set if the folder is contained in a shared folder or is a shared folder mount point. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Set if the folder is contained by a shared folder. This field is optional.
shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? If this folder is a shared folder mount point, the ID of the shared folder mounted at this location. This field is optional.
traverse_only Boolean Specifies that the folder can only be traversed and the user can only see a limited subset of the contents of this folder because they don't have read access to this folder. They do, however, have access to some sub folder. The default for this field is False.
no_access Boolean Specifies that the folder cannot be accessed by the user. The default for this field is False.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
deleted DeletedMetadata name String The last component of the path (including extension). This never contains a slash.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
No errors.
Returns the status of an asynchronous job for copy_batch. If success, it returns list of results for each entry.
https://api.dropboxapi.com/2/files/copy_batch/check
curl -X POST https://api.dropboxapi.com/2/files/copy_batch/check \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"async_job_id\": \"34g93hh34h04y384084\"}"
{
"async_job_id": "34g93hh34h04y384084"
}async_job_id String(min_length=1) Id of the asynchronous job. This is the value of a response returned from the method that launched the job.
{
".tag": "complete",
"entries": [
{
"metadata": {
".tag": "file",
"name": "Prime_Numbers.txt",
"id": "id:a4ayc_80_OEAAAAAAAAAXw",
"client_modified": "2015-05-12T15:50:38Z",
"server_modified": "2015-05-12T15:50:38Z",
"rev": "a1c10ce0dd78",
"size": 7212,
"path_lower": "/homework/math/prime_numbers.txt",
"path_display": "/Homework/math/Prime_Numbers.txt",
"sharing_info": {
"read_only": true,
"parent_shared_folder_id": "84528192421",
"modified_by": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc"
},
"property_groups": [
{
"template_id": "ptid:1a5n2i6d3OYEAAAAAAAAAYa",
"fields": [
{
"name": "Security Policy",
"value": "Confidential"
}
]
}
],
"has_explicit_shared_members": false
}
}
]
}
{
".tag": "in_progress"
}in_progress Void The asynchronous job is still in progress.
complete RelocationBatchResult The copy or move batch job has finished.entries List of (RelocationResult) metadata Metadata file FileMetadata name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the file.
client_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") For files, this is the modification time set by the desktop client when the file was added to Dropbox. Since this time is not verified (the Dropbox server stores whatever the desktop client sends up), this should only be used for display purposes (such as sorting) and not, for example, to determine if a file has changed or not.
server_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") The last time the file was modified on Dropbox.
rev String(min_length=9, pattern="[0-9a-f]+") A unique identifier for the current revision of a file. This field is the same rev as elsewhere in the API and can be used to detect changes and avoid conflicts.
size UInt64 The file size in bytes.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
media_info MediaInfo? Additional information if the file is a photo or video. This field is optional.pending Void Indicate the photo/video is still under processing and metadata is not available yet.
metadata MediaMetadata The metadata for the photo/video.photo PhotoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
video VideoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
duration UInt64? The duration of the video in milliseconds. This field is optional.
sharing_info FileSharingInfo? Set if this file is contained in a shared folder. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+") ID of shared folder that holds this file.
modified_by String(min_length=40, max_length=40)? The last user who modified the file. This field will be null if the user's account has been deleted. This field is optional.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
has_explicit_shared_members Boolean? This flag will only be present if include_has_explicit_shared_members is true in list_folder or get_metadata. If this flag is present, it will be true if this file has any explicit shared members. This is different from sharing_info in that this could be true in the case where a file has explicit members but is not contained within a shared folder. This field is optional.
folder FolderMetadata name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the folder.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use sharing_info instead. This field is optional.
sharing_info FolderSharingInfo? Set if the folder is contained in a shared folder or is a shared folder mount point. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Set if the folder is contained by a shared folder. This field is optional.
shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? If this folder is a shared folder mount point, the ID of the shared folder mounted at this location. This field is optional.
traverse_only Boolean Specifies that the folder can only be traversed and the user can only see a limited subset of the contents of this folder because they don't have read access to this folder. They do, however, have access to some sub folder. The default for this field is False.
no_access Boolean Specifies that the folder cannot be accessed by the user. The default for this field is False.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
deleted DeletedMetadata name String The last component of the path (including extension). This never contains a slash.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
failed RelocationBatchError The copy or move batch job has failed with exception.from_lookup LookupError malformed_path String? This field is optional.
not_found Void There is nothing at the given path.
not_file Void We were expecting a file, but the given path refers to something that isn't a file.
not_folder Void We were expecting a folder, but the given path refers to something that isn't a folder.
restricted_content Void The file cannot be transferred because the content is restricted. For example, sometimes there are legal restrictions due to copyright claims.
invalid_path_root PathRootError The path root parameter provided is invalid.path_root String? The user's latest path root value. None if the user no longer has a path root. This field is optional.
from_write WriteError malformed_path String? This field is optional.
conflict WriteConflictError Couldn't write to the target path because there was something in the way.file Void There's a file in the way.
folder Void There's a folder in the way.
file_ancestor Void There's a file at an ancestor path, so we couldn't create the required parent folders.
no_write_permission Void The user doesn't have permissions to write to the target location.
insufficient_space Void The user doesn't have enough available space (bytes) to write more data.
disallowed_name Void Dropbox will not save the file or folder because of its name.
to WriteError malformed_path String? This field is optional.
conflict WriteConflictError Couldn't write to the target path because there was something in the way.file Void There's a file in the way.
folder Void There's a folder in the way.
file_ancestor Void There's a file at an ancestor path, so we couldn't create the required parent folders.
no_write_permission Void The user doesn't have permissions to write to the target location.
insufficient_space Void The user doesn't have enough available space (bytes) to write more data.
disallowed_name Void Dropbox will not save the file or folder because of its name.
cant_copy_shared_folder Void Shared folders can't be copied.
cant_nest_shared_folder Void Your move operation would result in nested shared folders. This is not allowed.
cant_move_folder_into_itself Void You cannot move a folder into itself.
too_many_files Void The operation would involve more than 10,000 files and folders.
duplicated_or_nested_paths Void There are duplicated/nested paths among RelocationArg.from_path and RelocationArg.to_path.
too_many_write_operations Void There are too many write operations in user's Dropbox. Please retry this request.
{
"error_summary": "invalid_async_job_id/...",
"error": {
".tag": "invalid_async_job_id"
}
}
{
"error_summary": "internal_error/...",
"error": {
".tag": "internal_error"
}
}
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}invalid_async_job_id Void The job ID is invalid.
internal_error Void Something went wrong with the job on Dropbox's end. You'll need to verify that the action you were taking succeeded, and if not, try again. This should happen very rarely.
Get a copy reference to a file or folder. This reference string can be used to save that file or folder to another user's Dropbox by passing it to copy_reference/save.
https://api.dropboxapi.com/2/files/copy_reference/get
curl -X POST https://api.dropboxapi.com/2/files/copy_reference/get \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"path\": \"/video.mp4\"}"
{
"path": "/video.mp4"
}path String(pattern="(/(.|[\r\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)") The path to the file or folder you want to get a copy reference to.
{
"metadata": {
".tag": "file",
"name": "Prime_Numbers.txt",
"id": "id:a4ayc_80_OEAAAAAAAAAXw",
"client_modified": "2015-05-12T15:50:38Z",
"server_modified": "2015-05-12T15:50:38Z",
"rev": "a1c10ce0dd78",
"size": 7212,
"path_lower": "/homework/math/prime_numbers.txt",
"path_display": "/Homework/math/Prime_Numbers.txt",
"sharing_info": {
"read_only": true,
"parent_shared_folder_id": "84528192421",
"modified_by": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc"
},
"property_groups": [
{
"template_id": "ptid:1a5n2i6d3OYEAAAAAAAAAYa",
"fields": [
{
"name": "Security Policy",
"value": "Confidential"
}
]
}
],
"has_explicit_shared_members": false
},
"copy_reference": "z1X6ATl6aWtzOGq0c3g5Ng",
"expires": "2045-05-12T15:50:38Z"
}metadata Metadata Metadata of the file or folder.file FileMetadata name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the file.
client_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") For files, this is the modification time set by the desktop client when the file was added to Dropbox. Since this time is not verified (the Dropbox server stores whatever the desktop client sends up), this should only be used for display purposes (such as sorting) and not, for example, to determine if a file has changed or not.
server_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") The last time the file was modified on Dropbox.
rev String(min_length=9, pattern="[0-9a-f]+") A unique identifier for the current revision of a file. This field is the same rev as elsewhere in the API and can be used to detect changes and avoid conflicts.
size UInt64 The file size in bytes.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
media_info MediaInfo? Additional information if the file is a photo or video. This field is optional.pending Void Indicate the photo/video is still under processing and metadata is not available yet.
metadata MediaMetadata The metadata for the photo/video.photo PhotoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
video VideoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
duration UInt64? The duration of the video in milliseconds. This field is optional.
sharing_info FileSharingInfo? Set if this file is contained in a shared folder. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+") ID of shared folder that holds this file.
modified_by String(min_length=40, max_length=40)? The last user who modified the file. This field will be null if the user's account has been deleted. This field is optional.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
has_explicit_shared_members Boolean? This flag will only be present if include_has_explicit_shared_members is true in list_folder or get_metadata. If this flag is present, it will be true if this file has any explicit shared members. This is different from sharing_info in that this could be true in the case where a file has explicit members but is not contained within a shared folder. This field is optional.
folder FolderMetadata name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the folder.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use sharing_info instead. This field is optional.
sharing_info FolderSharingInfo? Set if the folder is contained in a shared folder or is a shared folder mount point. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Set if the folder is contained by a shared folder. This field is optional.
shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? If this folder is a shared folder mount point, the ID of the shared folder mounted at this location. This field is optional.
traverse_only Boolean Specifies that the folder can only be traversed and the user can only see a limited subset of the contents of this folder because they don't have read access to this folder. They do, however, have access to some sub folder. The default for this field is False.
no_access Boolean Specifies that the folder cannot be accessed by the user. The default for this field is False.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
deleted DeletedMetadata name String The last component of the path (including extension). This never contains a slash.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
copy_reference String A copy reference to the file or folder.
expires Timestamp(format="%Y-%m-%dT%H:%M:%SZ") The expiration date of the copy reference. This value is currently set to be far enough in the future so that expiration is effectively not an issue.
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}path LookupError malformed_path String? This field is optional.
not_found Void There is nothing at the given path.
not_file Void We were expecting a file, but the given path refers to something that isn't a file.
not_folder Void We were expecting a folder, but the given path refers to something that isn't a folder.
restricted_content Void The file cannot be transferred because the content is restricted. For example, sometimes there are legal restrictions due to copyright claims.
invalid_path_root PathRootError The path root parameter provided is invalid.path_root String? The user's latest path root value. None if the user no longer has a path root. This field is optional.
Save a copy reference returned by copy_reference/get to the user's Dropbox.
https://api.dropboxapi.com/2/files/copy_reference/save
curl -X POST https://api.dropboxapi.com/2/files/copy_reference/save \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"copy_reference\": \"z1X6ATl6aWtzOGq0c3g5Ng\",\"path\": \"/video.mp4\"}"
{
"copy_reference": "z1X6ATl6aWtzOGq0c3g5Ng",
"path": "/video.mp4"
}copy_reference String A copy reference returned by copy_reference/get.
path String(pattern="/(.|[\r\n])*") Path in the user's Dropbox that is the destination.
{
"metadata": {
".tag": "file",
"name": "Prime_Numbers.txt",
"id": "id:a4ayc_80_OEAAAAAAAAAXw",
"client_modified": "2015-05-12T15:50:38Z",
"server_modified": "2015-05-12T15:50:38Z",
"rev": "a1c10ce0dd78",
"size": 7212,
"path_lower": "/homework/math/prime_numbers.txt",
"path_display": "/Homework/math/Prime_Numbers.txt",
"sharing_info": {
"read_only": true,
"parent_shared_folder_id": "84528192421",
"modified_by": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc"
},
"property_groups": [
{
"template_id": "ptid:1a5n2i6d3OYEAAAAAAAAAYa",
"fields": [
{
"name": "Security Policy",
"value": "Confidential"
}
]
}
],
"has_explicit_shared_members": false
}
}metadata Metadata The metadata of the saved file or folder in the user's Dropbox.file FileMetadata name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the file.
client_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") For files, this is the modification time set by the desktop client when the file was added to Dropbox. Since this time is not verified (the Dropbox server stores whatever the desktop client sends up), this should only be used for display purposes (such as sorting) and not, for example, to determine if a file has changed or not.
server_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") The last time the file was modified on Dropbox.
rev String(min_length=9, pattern="[0-9a-f]+") A unique identifier for the current revision of a file. This field is the same rev as elsewhere in the API and can be used to detect changes and avoid conflicts.
size UInt64 The file size in bytes.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
media_info MediaInfo? Additional information if the file is a photo or video. This field is optional.pending Void Indicate the photo/video is still under processing and metadata is not available yet.
metadata MediaMetadata The metadata for the photo/video.photo PhotoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
video VideoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
duration UInt64? The duration of the video in milliseconds. This field is optional.
sharing_info FileSharingInfo? Set if this file is contained in a shared folder. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+") ID of shared folder that holds this file.
modified_by String(min_length=40, max_length=40)? The last user who modified the file. This field will be null if the user's account has been deleted. This field is optional.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
has_explicit_shared_members Boolean? This flag will only be present if include_has_explicit_shared_members is true in list_folder or get_metadata. If this flag is present, it will be true if this file has any explicit shared members. This is different from sharing_info in that this could be true in the case where a file has explicit members but is not contained within a shared folder. This field is optional.
folder FolderMetadata name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the folder.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use sharing_info instead. This field is optional.
sharing_info FolderSharingInfo? Set if the folder is contained in a shared folder or is a shared folder mount point. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Set if the folder is contained by a shared folder. This field is optional.
shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? If this folder is a shared folder mount point, the ID of the shared folder mounted at this location. This field is optional.
traverse_only Boolean Specifies that the folder can only be traversed and the user can only see a limited subset of the contents of this folder because they don't have read access to this folder. They do, however, have access to some sub folder. The default for this field is False.
no_access Boolean Specifies that the folder cannot be accessed by the user. The default for this field is False.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
deleted DeletedMetadata name String The last component of the path (including extension). This never contains a slash.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
{
"error_summary": "invalid_copy_reference/...",
"error": {
".tag": "invalid_copy_reference"
}
}
{
"error_summary": "no_permission/...",
"error": {
".tag": "no_permission"
}
}
{
"error_summary": "not_found/...",
"error": {
".tag": "not_found"
}
}
{
"error_summary": "too_many_files/...",
"error": {
".tag": "too_many_files"
}
}
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}path WriteError malformed_path String? This field is optional.
conflict WriteConflictError Couldn't write to the target path because there was something in the way.file Void There's a file in the way.
folder Void There's a folder in the way.
file_ancestor Void There's a file at an ancestor path, so we couldn't create the required parent folders.
no_write_permission Void The user doesn't have permissions to write to the target location.
insufficient_space Void The user doesn't have enough available space (bytes) to write more data.
disallowed_name Void Dropbox will not save the file or folder because of its name.
invalid_copy_reference Void The copy reference is invalid.
no_permission Void You don't have permission to save the given copy reference. Please make sure this app is same app which created the copy reference and the source user is still linked to the app.
not_found Void The file referenced by the copy reference cannot be found.
too_many_files Void The operation would involve more than 10,000 files and folders.
Create a folder at a given path.
https://api.dropboxapi.com/2/files/create_folder
curl -X POST https://api.dropboxapi.com/2/files/create_folder \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"path\": \"/Homework/math\",\"autorename\": false}"
{
"path": "/Homework/math",
"autorename": false
}path String(pattern="(/(.|[\r\n])*)|(ns:[0-9]+(/.*)?)") Path in the user's Dropbox to create.
autorename Boolean If there's a conflict, have the Dropbox server try to autorename the folder to avoid the conflict. The default for this field is False.
{
"name": "math",
"id": "id:a4ayc_80_OEAAAAAAAAAXz",
"path_lower": "/homework/math",
"path_display": "/Homework/math",
"sharing_info": {
"read_only": false,
"parent_shared_folder_id": "84528192421",
"traverse_only": false,
"no_access": false
},
"property_groups": [
{
"template_id": "ptid:1a5n2i6d3OYEAAAAAAAAAYa",
"fields": [
{
"name": "Security Policy",
"value": "Confidential"
}
]
}
]
}name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the folder.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use sharing_info instead. This field is optional.
sharing_info FolderSharingInfo? Set if the folder is contained in a shared folder or is a shared folder mount point. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Set if the folder is contained by a shared folder. This field is optional.
shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? If this folder is a shared folder mount point, the ID of the shared folder mounted at this location. This field is optional.
traverse_only Boolean Specifies that the folder can only be traversed and the user can only see a limited subset of the contents of this folder because they don't have read access to this folder. They do, however, have access to some sub folder. The default for this field is False.
no_access Boolean Specifies that the folder cannot be accessed by the user. The default for this field is False.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
path WriteError malformed_path String? This field is optional.
conflict WriteConflictError Couldn't write to the target path because there was something in the way.file Void There's a file in the way.
folder Void There's a folder in the way.
file_ancestor Void There's a file at an ancestor path, so we couldn't create the required parent folders.
no_write_permission Void The user doesn't have permissions to write to the target location.
insufficient_space Void The user doesn't have enough available space (bytes) to write more data.
disallowed_name Void Dropbox will not save the file or folder because of its name.
Delete the file or folder at a given path.
If the path is a folder, all its contents will be deleted too.
A successful response indicates that the file or folder was deleted. The returned metadata will be the corresponding FileMetadata or FolderMetadata for the item at time of deletion, and not a DeletedMetadata object.
https://api.dropboxapi.com/2/files/delete
curl -X POST https://api.dropboxapi.com/2/files/delete \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"path\": \"/Homework/math/Prime_Numbers.txt\"}"
{
"path": "/Homework/math/Prime_Numbers.txt"
}path String(pattern="(/(.|[\r\n])*)|(ns:[0-9]+(/.*)?)") Path in the user's Dropbox to delete.
{
".tag": "file",
"name": "Prime_Numbers.txt",
"id": "id:a4ayc_80_OEAAAAAAAAAXw",
"client_modified": "2015-05-12T15:50:38Z",
"server_modified": "2015-05-12T15:50:38Z",
"rev": "a1c10ce0dd78",
"size": 7212,
"path_lower": "/homework/math/prime_numbers.txt",
"path_display": "/Homework/math/Prime_Numbers.txt",
"sharing_info": {
"read_only": true,
"parent_shared_folder_id": "84528192421",
"modified_by": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc"
},
"property_groups": [
{
"template_id": "ptid:1a5n2i6d3OYEAAAAAAAAAYa",
"fields": [
{
"name": "Security Policy",
"value": "Confidential"
}
]
}
],
"has_explicit_shared_members": false
}{
".tag": "folder",
"name": "math",
"id": "id:a4ayc_80_OEAAAAAAAAAXz",
"path_lower": "/homework/math",
"path_display": "/Homework/math",
"sharing_info": {
"read_only": false,
"parent_shared_folder_id": "84528192421",
"traverse_only": false,
"no_access": false
},
"property_groups": [
{
"template_id": "ptid:1a5n2i6d3OYEAAAAAAAAAYa",
"fields": [
{
"name": "Security Policy",
"value": "Confidential"
}
]
}
]
}file FileMetadata name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the file.
client_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") For files, this is the modification time set by the desktop client when the file was added to Dropbox. Since this time is not verified (the Dropbox server stores whatever the desktop client sends up), this should only be used for display purposes (such as sorting) and not, for example, to determine if a file has changed or not.
server_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") The last time the file was modified on Dropbox.
rev String(min_length=9, pattern="[0-9a-f]+") A unique identifier for the current revision of a file. This field is the same rev as elsewhere in the API and can be used to detect changes and avoid conflicts.
size UInt64 The file size in bytes.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
media_info MediaInfo? Additional information if the file is a photo or video. This field is optional.pending Void Indicate the photo/video is still under processing and metadata is not available yet.
metadata MediaMetadata The metadata for the photo/video.photo PhotoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
video VideoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
duration UInt64? The duration of the video in milliseconds. This field is optional.
sharing_info FileSharingInfo? Set if this file is contained in a shared folder. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+") ID of shared folder that holds this file.
modified_by String(min_length=40, max_length=40)? The last user who modified the file. This field will be null if the user's account has been deleted. This field is optional.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
has_explicit_shared_members Boolean? This flag will only be present if include_has_explicit_shared_members is true in list_folder or get_metadata. If this flag is present, it will be true if this file has any explicit shared members. This is different from sharing_info in that this could be true in the case where a file has explicit members but is not contained within a shared folder. This field is optional.
folder FolderMetadata name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the folder.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use sharing_info instead. This field is optional.
sharing_info FolderSharingInfo? Set if the folder is contained in a shared folder or is a shared folder mount point. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Set if the folder is contained by a shared folder. This field is optional.
shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? If this folder is a shared folder mount point, the ID of the shared folder mounted at this location. This field is optional.
traverse_only Boolean Specifies that the folder can only be traversed and the user can only see a limited subset of the contents of this folder because they don't have read access to this folder. They do, however, have access to some sub folder. The default for this field is False.
no_access Boolean Specifies that the folder cannot be accessed by the user. The default for this field is False.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
deleted DeletedMetadata name String The last component of the path (including extension). This never contains a slash.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}path_lookup LookupError malformed_path String? This field is optional.
not_found Void There is nothing at the given path.
not_file Void We were expecting a file, but the given path refers to something that isn't a file.
not_folder Void We were expecting a folder, but the given path refers to something that isn't a folder.
restricted_content Void The file cannot be transferred because the content is restricted. For example, sometimes there are legal restrictions due to copyright claims.
invalid_path_root PathRootError The path root parameter provided is invalid.path_root String? The user's latest path root value. None if the user no longer has a path root. This field is optional.
path_write WriteError malformed_path String? This field is optional.
conflict WriteConflictError Couldn't write to the target path because there was something in the way.file Void There's a file in the way.
folder Void There's a folder in the way.
file_ancestor Void There's a file at an ancestor path, so we couldn't create the required parent folders.
no_write_permission Void The user doesn't have permissions to write to the target location.
insufficient_space Void The user doesn't have enough available space (bytes) to write more data.
disallowed_name Void Dropbox will not save the file or folder because of its name.
Delete multiple files/folders at once.
This route is asynchronous, which returns a job ID immediately and runs the delete batch asynchronously. Use delete_batch/check to check the job status.
https://api.dropboxapi.com/2/files/delete_batch
curl -X POST https://api.dropboxapi.com/2/files/delete_batch \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"entries\": [{\"path\": \"/Homework/math/Prime_Numbers.txt\"}]}"
{
"entries": [
{
"path": "/Homework/math/Prime_Numbers.txt"
}
]
}entries List of (DeleteArg) path String(pattern="(/(.|[\r\n])*)|(ns:[0-9]+(/.*)?)") Path in the user's Dropbox to delete.
{
".tag": "complete",
"entries": [
{
".tag": "success",
"metadata": {
".tag": "file",
"name": "Prime_Numbers.txt",
"id": "id:a4ayc_80_OEAAAAAAAAAXw",
"client_modified": "2015-05-12T15:50:38Z",
"server_modified": "2015-05-12T15:50:38Z",
"rev": "a1c10ce0dd78",
"size": 7212,
"path_lower": "/homework/math/prime_numbers.txt",
"path_display": "/Homework/math/Prime_Numbers.txt",
"sharing_info": {
"read_only": true,
"parent_shared_folder_id": "84528192421",
"modified_by": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc"
},
"property_groups": [
{
"template_id": "ptid:1a5n2i6d3OYEAAAAAAAAAYa",
"fields": [
{
"name": "Security Policy",
"value": "Confidential"
}
]
}
],
"has_explicit_shared_members": false
}
}
]
}
{
".tag": "async_job_id",
"async_job_id": "34g93hh34h04y384084"
}
{
".tag": "other"
}async_job_id String(min_length=1) This response indicates that the processing is asynchronous. The string is an id that can be used to obtain the status of the asynchronous job.
complete DeleteBatchResult entries List of (DeleteBatchResultEntry) success DeleteResult metadata Metadata file FileMetadata name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the file.
client_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") For files, this is the modification time set by the desktop client when the file was added to Dropbox. Since this time is not verified (the Dropbox server stores whatever the desktop client sends up), this should only be used for display purposes (such as sorting) and not, for example, to determine if a file has changed or not.
server_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") The last time the file was modified on Dropbox.
rev String(min_length=9, pattern="[0-9a-f]+") A unique identifier for the current revision of a file. This field is the same rev as elsewhere in the API and can be used to detect changes and avoid conflicts.
size UInt64 The file size in bytes.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
media_info MediaInfo? Additional information if the file is a photo or video. This field is optional.pending Void Indicate the photo/video is still under processing and metadata is not available yet.
metadata MediaMetadata The metadata for the photo/video.photo PhotoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
video VideoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
duration UInt64? The duration of the video in milliseconds. This field is optional.
sharing_info FileSharingInfo? Set if this file is contained in a shared folder. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+") ID of shared folder that holds this file.
modified_by String(min_length=40, max_length=40)? The last user who modified the file. This field will be null if the user's account has been deleted. This field is optional.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
has_explicit_shared_members Boolean? This flag will only be present if include_has_explicit_shared_members is true in list_folder or get_metadata. If this flag is present, it will be true if this file has any explicit shared members. This is different from sharing_info in that this could be true in the case where a file has explicit members but is not contained within a shared folder. This field is optional.
folder FolderMetadata name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the folder.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use sharing_info instead. This field is optional.
sharing_info FolderSharingInfo? Set if the folder is contained in a shared folder or is a shared folder mount point. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Set if the folder is contained by a shared folder. This field is optional.
shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? If this folder is a shared folder mount point, the ID of the shared folder mounted at this location. This field is optional.
traverse_only Boolean Specifies that the folder can only be traversed and the user can only see a limited subset of the contents of this folder because they don't have read access to this folder. They do, however, have access to some sub folder. The default for this field is False.
no_access Boolean Specifies that the folder cannot be accessed by the user. The default for this field is False.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
deleted DeletedMetadata name String The last component of the path (including extension). This never contains a slash.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
failure DeleteError path_lookup LookupError malformed_path String? This field is optional.
not_found Void There is nothing at the given path.
not_file Void We were expecting a file, but the given path refers to something that isn't a file.
not_folder Void We were expecting a folder, but the given path refers to something that isn't a folder.
restricted_content Void The file cannot be transferred because the content is restricted. For example, sometimes there are legal restrictions due to copyright claims.
invalid_path_root PathRootError The path root parameter provided is invalid.path_root String? The user's latest path root value. None if the user no longer has a path root. This field is optional.
path_write WriteError malformed_path String? This field is optional.
conflict WriteConflictError Couldn't write to the target path because there was something in the way.file Void There's a file in the way.
folder Void There's a folder in the way.
file_ancestor Void There's a file at an ancestor path, so we couldn't create the required parent folders.
no_write_permission Void The user doesn't have permissions to write to the target location.
insufficient_space Void The user doesn't have enough available space (bytes) to write more data.
disallowed_name Void Dropbox will not save the file or folder because of its name.
No errors.
Returns the status of an asynchronous job for delete_batch. If success, it returns list of result for each entry.
https://api.dropboxapi.com/2/files/delete_batch/check
curl -X POST https://api.dropboxapi.com/2/files/delete_batch/check \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"async_job_id\": \"34g93hh34h04y384084\"}"
{
"async_job_id": "34g93hh34h04y384084"
}async_job_id String(min_length=1) Id of the asynchronous job. This is the value of a response returned from the method that launched the job.
{
".tag": "complete",
"entries": [
{
".tag": "success",
"metadata": {
".tag": "file",
"name": "Prime_Numbers.txt",
"id": "id:a4ayc_80_OEAAAAAAAAAXw",
"client_modified": "2015-05-12T15:50:38Z",
"server_modified": "2015-05-12T15:50:38Z",
"rev": "a1c10ce0dd78",
"size": 7212,
"path_lower": "/homework/math/prime_numbers.txt",
"path_display": "/Homework/math/Prime_Numbers.txt",
"sharing_info": {
"read_only": true,
"parent_shared_folder_id": "84528192421",
"modified_by": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc"
},
"property_groups": [
{
"template_id": "ptid:1a5n2i6d3OYEAAAAAAAAAYa",
"fields": [
{
"name": "Security Policy",
"value": "Confidential"
}
]
}
],
"has_explicit_shared_members": false
}
}
]
}
{
".tag": "in_progress"
}
{
".tag": "other"
}in_progress Void The asynchronous job is still in progress.
complete DeleteBatchResult The batch delete has finished.entries List of (DeleteBatchResultEntry) success DeleteResult metadata Metadata file FileMetadata name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the file.
client_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") For files, this is the modification time set by the desktop client when the file was added to Dropbox. Since this time is not verified (the Dropbox server stores whatever the desktop client sends up), this should only be used for display purposes (such as sorting) and not, for example, to determine if a file has changed or not.
server_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") The last time the file was modified on Dropbox.
rev String(min_length=9, pattern="[0-9a-f]+") A unique identifier for the current revision of a file. This field is the same rev as elsewhere in the API and can be used to detect changes and avoid conflicts.
size UInt64 The file size in bytes.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
media_info MediaInfo? Additional information if the file is a photo or video. This field is optional.pending Void Indicate the photo/video is still under processing and metadata is not available yet.
metadata MediaMetadata The metadata for the photo/video.photo PhotoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
video VideoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
duration UInt64? The duration of the video in milliseconds. This field is optional.
sharing_info FileSharingInfo? Set if this file is contained in a shared folder. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+") ID of shared folder that holds this file.
modified_by String(min_length=40, max_length=40)? The last user who modified the file. This field will be null if the user's account has been deleted. This field is optional.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
has_explicit_shared_members Boolean? This flag will only be present if include_has_explicit_shared_members is true in list_folder or get_metadata. If this flag is present, it will be true if this file has any explicit shared members. This is different from sharing_info in that this could be true in the case where a file has explicit members but is not contained within a shared folder. This field is optional.
folder FolderMetadata name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the folder.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use sharing_info instead. This field is optional.
sharing_info FolderSharingInfo? Set if the folder is contained in a shared folder or is a shared folder mount point. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Set if the folder is contained by a shared folder. This field is optional.
shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? If this folder is a shared folder mount point, the ID of the shared folder mounted at this location. This field is optional.
traverse_only Boolean Specifies that the folder can only be traversed and the user can only see a limited subset of the contents of this folder because they don't have read access to this folder. They do, however, have access to some sub folder. The default for this field is False.
no_access Boolean Specifies that the folder cannot be accessed by the user. The default for this field is False.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
deleted DeletedMetadata name String The last component of the path (including extension). This never contains a slash.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
failure DeleteError path_lookup LookupError malformed_path String? This field is optional.
not_found Void There is nothing at the given path.
not_file Void We were expecting a file, but the given path refers to something that isn't a file.
not_folder Void We were expecting a folder, but the given path refers to something that isn't a folder.
restricted_content Void The file cannot be transferred because the content is restricted. For example, sometimes there are legal restrictions due to copyright claims.
invalid_path_root PathRootError The path root parameter provided is invalid.path_root String? The user's latest path root value. None if the user no longer has a path root. This field is optional.
path_write WriteError malformed_path String? This field is optional.
conflict WriteConflictError Couldn't write to the target path because there was something in the way.file Void There's a file in the way.
folder Void There's a folder in the way.
file_ancestor Void There's a file at an ancestor path, so we couldn't create the required parent folders.
no_write_permission Void The user doesn't have permissions to write to the target location.
insufficient_space Void The user doesn't have enough available space (bytes) to write more data.
disallowed_name Void Dropbox will not save the file or folder because of its name.
failed DeleteBatchError The batch delete has failed.too_many_write_operations Void There are too many write operations in user's Dropbox. Please retry this request.
{
"error_summary": "invalid_async_job_id/...",
"error": {
".tag": "invalid_async_job_id"
}
}
{
"error_summary": "internal_error/...",
"error": {
".tag": "internal_error"
}
}
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}invalid_async_job_id Void The job ID is invalid.
internal_error Void Something went wrong with the job on Dropbox's end. You'll need to verify that the action you were taking succeeded, and if not, try again. This should happen very rarely.
Download a file from a user's Dropbox.
https://content.dropboxapi.com/2/files/download
curl -X POST https://content.dropboxapi.com/2/files/download \
--header "Authorization: Bearer " \
--header "Dropbox-API-Arg: {\"path\": \"/Homework/math/Prime_Numbers.txt\"}"
{
"path": "/Homework/math/Prime_Numbers.txt"
}
{
"path": "id:a4ayc_80_OEAAAAAAAAAYa"
}
{
"path": "rev:a1c10ce0dd78"
}path String(pattern="(/(.|[\r\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)") The path of the file to download.
rev String(min_length=9, pattern="[0-9a-f]+")? Deprecated. Please specify revision in path instead. This field is optional.
{
"name": "Prime_Numbers.txt",
"id": "id:a4ayc_80_OEAAAAAAAAAXw",
"client_modified": "2015-05-12T15:50:38Z",
"server_modified": "2015-05-12T15:50:38Z",
"rev": "a1c10ce0dd78",
"size": 7212,
"path_lower": "/homework/math/prime_numbers.txt",
"path_display": "/Homework/math/Prime_Numbers.txt",
"sharing_info": {
"read_only": true,
"parent_shared_folder_id": "84528192421",
"modified_by": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc"
},
"property_groups": [
{
"template_id": "ptid:1a5n2i6d3OYEAAAAAAAAAYa",
"fields": [
{
"name": "Security Policy",
"value": "Confidential"
}
]
}
],
"has_explicit_shared_members": false
}name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the file.
client_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") For files, this is the modification time set by the desktop client when the file was added to Dropbox. Since this time is not verified (the Dropbox server stores whatever the desktop client sends up), this should only be used for display purposes (such as sorting) and not, for example, to determine if a file has changed or not.
server_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") The last time the file was modified on Dropbox.
rev String(min_length=9, pattern="[0-9a-f]+") A unique identifier for the current revision of a file. This field is the same rev as elsewhere in the API and can be used to detect changes and avoid conflicts.
size UInt64 The file size in bytes.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
media_info MediaInfo? Additional information if the file is a photo or video. This field is optional.pending Void Indicate the photo/video is still under processing and metadata is not available yet.
metadata MediaMetadata The metadata for the photo/video.photo PhotoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
video VideoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
duration UInt64? The duration of the video in milliseconds. This field is optional.
sharing_info FileSharingInfo? Set if this file is contained in a shared folder. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+") ID of shared folder that holds this file.
modified_by String(min_length=40, max_length=40)? The last user who modified the file. This field will be null if the user's account has been deleted. This field is optional.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
has_explicit_shared_members Boolean? This flag will only be present if include_has_explicit_shared_members is true in list_folder or get_metadata. If this flag is present, it will be true if this file has any explicit shared members. This is different from sharing_info in that this could be true in the case where a file has explicit members but is not contained within a shared folder. This field is optional.
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}path LookupError malformed_path String? This field is optional.
not_found Void There is nothing at the given path.
not_file Void We were expecting a file, but the given path refers to something that isn't a file.
not_folder Void We were expecting a folder, but the given path refers to something that isn't a folder.
restricted_content Void The file cannot be transferred because the content is restricted. For example, sometimes there are legal restrictions due to copyright claims.
invalid_path_root PathRootError The path root parameter provided is invalid.path_root String? The user's latest path root value. None if the user no longer has a path root. This field is optional.
Returns the metadata for a file or folder.
Note: Metadata for the root folder is unsupported.
https://api.dropboxapi.com/2/files/get_metadata
curl -X POST https://api.dropboxapi.com/2/files/get_metadata \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"path\": \"/Homework/math\",\"include_media_info\": false,\"include_deleted\": false,\"include_has_explicit_shared_members\": false}"
{
"path": "/Homework/math",
"include_media_info": false,
"include_deleted": false,
"include_has_explicit_shared_members": false
}
{
"path": "id:a4ayc_80_OEAAAAAAAAAYa",
"include_media_info": false,
"include_deleted": false,
"include_has_explicit_shared_members": false
}
{
"path": "rev:a1c10ce0dd78",
"include_media_info": false,
"include_deleted": false,
"include_has_explicit_shared_members": false
}path String(pattern="(/(.|[\r\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)") The path of a file or folder on Dropbox.
include_media_info Boolean If true, FileMetadata.media_info is set for photo and video. The default for this field is False.
include_deleted Boolean If true, DeletedMetadata will be returned for deleted file or folder, otherwise LookupError.not_found will be returned. The default for this field is False.
include_has_explicit_shared_members Boolean If true, the results will include a flag for each file indicating whether or not that file has any explicit members. The default for this field is False.
{
".tag": "file",
"name": "Prime_Numbers.txt",
"id": "id:a4ayc_80_OEAAAAAAAAAXw",
"client_modified": "2015-05-12T15:50:38Z",
"server_modified": "2015-05-12T15:50:38Z",
"rev": "a1c10ce0dd78",
"size": 7212,
"path_lower": "/homework/math/prime_numbers.txt",
"path_display": "/Homework/math/Prime_Numbers.txt",
"sharing_info": {
"read_only": true,
"parent_shared_folder_id": "84528192421",
"modified_by": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc"
},
"property_groups": [
{
"template_id": "ptid:1a5n2i6d3OYEAAAAAAAAAYa",
"fields": [
{
"name": "Security Policy",
"value": "Confidential"
}
]
}
],
"has_explicit_shared_members": false
}{
".tag": "folder",
"name": "math",
"id": "id:a4ayc_80_OEAAAAAAAAAXz",
"path_lower": "/homework/math",
"path_display": "/Homework/math",
"sharing_info": {
"read_only": false,
"parent_shared_folder_id": "84528192421",
"traverse_only": false,
"no_access": false
},
"property_groups": [
{
"template_id": "ptid:1a5n2i6d3OYEAAAAAAAAAYa",
"fields": [
{
"name": "Security Policy",
"value": "Confidential"
}
]
}
]
}file FileMetadata name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the file.
client_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") For files, this is the modification time set by the desktop client when the file was added to Dropbox. Since this time is not verified (the Dropbox server stores whatever the desktop client sends up), this should only be used for display purposes (such as sorting) and not, for example, to determine if a file has changed or not.
server_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") The last time the file was modified on Dropbox.
rev String(min_length=9, pattern="[0-9a-f]+") A unique identifier for the current revision of a file. This field is the same rev as elsewhere in the API and can be used to detect changes and avoid conflicts.
size UInt64 The file size in bytes.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
media_info MediaInfo? Additional information if the file is a photo or video. This field is optional.pending Void Indicate the photo/video is still under processing and metadata is not available yet.
metadata MediaMetadata The metadata for the photo/video.photo PhotoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
video VideoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
duration UInt64? The duration of the video in milliseconds. This field is optional.
sharing_info FileSharingInfo? Set if this file is contained in a shared folder. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+") ID of shared folder that holds this file.
modified_by String(min_length=40, max_length=40)? The last user who modified the file. This field will be null if the user's account has been deleted. This field is optional.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
has_explicit_shared_members Boolean? This flag will only be present if include_has_explicit_shared_members is true in list_folder or get_metadata. If this flag is present, it will be true if this file has any explicit shared members. This is different from sharing_info in that this could be true in the case where a file has explicit members but is not contained within a shared folder. This field is optional.
folder FolderMetadata name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the folder.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use sharing_info instead. This field is optional.
sharing_info FolderSharingInfo? Set if the folder is contained in a shared folder or is a shared folder mount point. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Set if the folder is contained by a shared folder. This field is optional.
shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? If this folder is a shared folder mount point, the ID of the shared folder mounted at this location. This field is optional.
traverse_only Boolean Specifies that the folder can only be traversed and the user can only see a limited subset of the contents of this folder because they don't have read access to this folder. They do, however, have access to some sub folder. The default for this field is False.
no_access Boolean Specifies that the folder cannot be accessed by the user. The default for this field is False.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
deleted DeletedMetadata name String The last component of the path (including extension). This never contains a slash.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
path LookupError malformed_path String? This field is optional.
not_found Void There is nothing at the given path.
not_file Void We were expecting a file, but the given path refers to something that isn't a file.
not_folder Void We were expecting a folder, but the given path refers to something that isn't a folder.
restricted_content Void The file cannot be transferred because the content is restricted. For example, sometimes there are legal restrictions due to copyright claims.
invalid_path_root PathRootError The path root parameter provided is invalid.path_root String? The user's latest path root value. None if the user no longer has a path root. This field is optional.
Get a preview for a file. Currently previews are only generated for the files with the following extensions: .doc, .docx, .docm, .ppt, .pps, .ppsx, .ppsm, .pptx, .pptm, .xls, .xlsx, .xlsm, .rtf.
https://content.dropboxapi.com/2/files/get_preview
curl -X POST https://content.dropboxapi.com/2/files/get_preview \
--header "Authorization: Bearer " \
--header "Dropbox-API-Arg: {\"path\": \"/word.docx\"}"
{
"path": "/word.docx"
}
{
"path": "id:a4ayc_80_OEAAAAAAAAAYa"
}
{
"path": "rev:a1c10ce0dd78"
}path String(pattern="(/(.|[\r\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)") The path of the file to preview.
rev String(min_length=9, pattern="[0-9a-f]+")? Deprecated. Please specify revision in path instead. This field is optional.
{
"name": "Prime_Numbers.txt",
"id": "id:a4ayc_80_OEAAAAAAAAAXw",
"client_modified": "2015-05-12T15:50:38Z",
"server_modified": "2015-05-12T15:50:38Z",
"rev": "a1c10ce0dd78",
"size": 7212,
"path_lower": "/homework/math/prime_numbers.txt",
"path_display": "/Homework/math/Prime_Numbers.txt",
"sharing_info": {
"read_only": true,
"parent_shared_folder_id": "84528192421",
"modified_by": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc"
},
"property_groups": [
{
"template_id": "ptid:1a5n2i6d3OYEAAAAAAAAAYa",
"fields": [
{
"name": "Security Policy",
"value": "Confidential"
}
]
}
],
"has_explicit_shared_members": false
}name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the file.
client_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") For files, this is the modification time set by the desktop client when the file was added to Dropbox. Since this time is not verified (the Dropbox server stores whatever the desktop client sends up), this should only be used for display purposes (such as sorting) and not, for example, to determine if a file has changed or not.
server_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") The last time the file was modified on Dropbox.
rev String(min_length=9, pattern="[0-9a-f]+") A unique identifier for the current revision of a file. This field is the same rev as elsewhere in the API and can be used to detect changes and avoid conflicts.
size UInt64 The file size in bytes.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
media_info MediaInfo? Additional information if the file is a photo or video. This field is optional.pending Void Indicate the photo/video is still under processing and metadata is not available yet.
metadata MediaMetadata The metadata for the photo/video.photo PhotoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
video VideoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
duration UInt64? The duration of the video in milliseconds. This field is optional.
sharing_info FileSharingInfo? Set if this file is contained in a shared folder. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+") ID of shared folder that holds this file.
modified_by String(min_length=40, max_length=40)? The last user who modified the file. This field will be null if the user's account has been deleted. This field is optional.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
has_explicit_shared_members Boolean? This flag will only be present if include_has_explicit_shared_members is true in list_folder or get_metadata. If this flag is present, it will be true if this file has any explicit shared members. This is different from sharing_info in that this could be true in the case where a file has explicit members but is not contained within a shared folder. This field is optional.
{
"error_summary": "in_progress/...",
"error": {
".tag": "in_progress"
}
}
{
"error_summary": "unsupported_extension/...",
"error": {
".tag": "unsupported_extension"
}
}
{
"error_summary": "unsupported_content/...",
"error": {
".tag": "unsupported_content"
}
}path LookupError An error occurs when downloading metadata for the file.malformed_path String? This field is optional.
not_found Void There is nothing at the given path.
not_file Void We were expecting a file, but the given path refers to something that isn't a file.
not_folder Void We were expecting a folder, but the given path refers to something that isn't a folder.
restricted_content Void The file cannot be transferred because the content is restricted. For example, sometimes there are legal restrictions due to copyright claims.
invalid_path_root PathRootError The path root parameter provided is invalid.path_root String? The user's latest path root value. None if the user no longer has a path root. This field is optional.
in_progress Void This preview generation is still in progress and the file is not ready for preview yet.
unsupported_extension Void The file extension is not supported preview generation.
unsupported_content Void The file content is not supported for preview generation.
Get a temporary link to stream content of a file. This link will expire in four hours and afterwards you will get 410 Gone. Content-Type of the link is determined automatically by the file's mime type.
https://api.dropboxapi.com/2/files/get_temporary_link
curl -X POST https://api.dropboxapi.com/2/files/get_temporary_link \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"path\": \"/video.mp4\"}"
{
"path": "/video.mp4"
}path String(pattern="(/(.|[\r\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)") The path to the file you want a temporary link to.
{
"metadata": {
"name": "Prime_Numbers.txt",
"id": "id:a4ayc_80_OEAAAAAAAAAXw",
"client_modified": "2015-05-12T15:50:38Z",
"server_modified": "2015-05-12T15:50:38Z",
"rev": "a1c10ce0dd78",
"size": 7212,
"path_lower": "/homework/math/prime_numbers.txt",
"path_display": "/Homework/math/Prime_Numbers.txt",
"sharing_info": {
"read_only": true,
"parent_shared_folder_id": "84528192421",
"modified_by": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc"
},
"property_groups": [
{
"template_id": "ptid:1a5n2i6d3OYEAAAAAAAAAYa",
"fields": [
{
"name": "Security Policy",
"value": "Confidential"
}
]
}
],
"has_explicit_shared_members": false
},
"link": "https://dl.dropboxusercontent.com/apitl/1/YXNkZmFzZGcyMzQyMzI0NjU2NDU2NDU2"
}metadata FileMetadata Metadata of the file.name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the file.
client_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") For files, this is the modification time set by the desktop client when the file was added to Dropbox. Since this time is not verified (the Dropbox server stores whatever the desktop client sends up), this should only be used for display purposes (such as sorting) and not, for example, to determine if a file has changed or not.
server_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") The last time the file was modified on Dropbox.
rev String(min_length=9, pattern="[0-9a-f]+") A unique identifier for the current revision of a file. This field is the same rev as elsewhere in the API and can be used to detect changes and avoid conflicts.
size UInt64 The file size in bytes.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
media_info MediaInfo? Additional information if the file is a photo or video. This field is optional.pending Void Indicate the photo/video is still under processing and metadata is not available yet.
metadata MediaMetadata The metadata for the photo/video.photo PhotoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
video VideoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
duration UInt64? The duration of the video in milliseconds. This field is optional.
sharing_info FileSharingInfo? Set if this file is contained in a shared folder. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+") ID of shared folder that holds this file.
modified_by String(min_length=40, max_length=40)? The last user who modified the file. This field will be null if the user's account has been deleted. This field is optional.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
has_explicit_shared_members Boolean? This flag will only be present if include_has_explicit_shared_members is true in list_folder or get_metadata. If this flag is present, it will be true if this file has any explicit shared members. This is different from sharing_info in that this could be true in the case where a file has explicit members but is not contained within a shared folder. This field is optional.
link String The temporary link which can be used to stream content the file.
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}path LookupError malformed_path String? This field is optional.
not_found Void There is nothing at the given path.
not_file Void We were expecting a file, but the given path refers to something that isn't a file.
not_folder Void We were expecting a folder, but the given path refers to something that isn't a folder.
restricted_content Void The file cannot be transferred because the content is restricted. For example, sometimes there are legal restrictions due to copyright claims.
invalid_path_root PathRootError The path root parameter provided is invalid.path_root String? The user's latest path root value. None if the user no longer has a path root. This field is optional.
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.
https://content.dropboxapi.com/2/files/get_thumbnail
curl -X POST https://content.dropboxapi.com/2/files/get_thumbnail \
--header "Authorization: Bearer " \
--header "Dropbox-API-Arg: {\"path\": \"/image.jpg\",\"format\": \"jpeg\",\"size\": \"w64h64\"}"
{
"path": "/image.jpg",
"format": "jpeg",
"size": "w64h64"
}
{
"path": "id:a4ayc_80_OEAAAAAAAAAYa",
"format": "jpeg",
"size": "w64h64"
}
{
"path": "rev:a1c10ce0dd78",
"format": "jpeg",
"size": "w64h64"
}path String(pattern="(/(.|[\r\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)") The path to the image file you want to thumbnail.
format ThumbnailFormat The format for the thumbnail image, jpeg (default) or png. For images that are photos, jpeg should be preferred, while png is better for screenshots and digital arts. The default for this union is jpeg.jpeg Void
png Void
size ThumbnailSize The size for the thumbnail image. The default for this union is w64h64.w32h32 Void 32 by 32 px.
w64h64 Void 64 by 64 px.
w128h128 Void 128 by 128 px.
w640h480 Void 640 by 480 px.
w1024h768 Void 1024 by 768.
{
"name": "Prime_Numbers.txt",
"id": "id:a4ayc_80_OEAAAAAAAAAXw",
"client_modified": "2015-05-12T15:50:38Z",
"server_modified": "2015-05-12T15:50:38Z",
"rev": "a1c10ce0dd78",
"size": 7212,
"path_lower": "/homework/math/prime_numbers.txt",
"path_display": "/Homework/math/Prime_Numbers.txt",
"sharing_info": {
"read_only": true,
"parent_shared_folder_id": "84528192421",
"modified_by": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc"
},
"property_groups": [
{
"template_id": "ptid:1a5n2i6d3OYEAAAAAAAAAYa",
"fields": [
{
"name": "Security Policy",
"value": "Confidential"
}
]
}
],
"has_explicit_shared_members": false
}name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the file.
client_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") For files, this is the modification time set by the desktop client when the file was added to Dropbox. Since this time is not verified (the Dropbox server stores whatever the desktop client sends up), this should only be used for display purposes (such as sorting) and not, for example, to determine if a file has changed or not.
server_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") The last time the file was modified on Dropbox.
rev String(min_length=9, pattern="[0-9a-f]+") A unique identifier for the current revision of a file. This field is the same rev as elsewhere in the API and can be used to detect changes and avoid conflicts.
size UInt64 The file size in bytes.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
media_info MediaInfo? Additional information if the file is a photo or video. This field is optional.pending Void Indicate the photo/video is still under processing and metadata is not available yet.
metadata MediaMetadata The metadata for the photo/video.photo PhotoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
video VideoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
duration UInt64? The duration of the video in milliseconds. This field is optional.
sharing_info FileSharingInfo? Set if this file is contained in a shared folder. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+") ID of shared folder that holds this file.
modified_by String(min_length=40, max_length=40)? The last user who modified the file. This field will be null if the user's account has been deleted. This field is optional.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
has_explicit_shared_members Boolean? This flag will only be present if include_has_explicit_shared_members is true in list_folder or get_metadata. If this flag is present, it will be true if this file has any explicit shared members. This is different from sharing_info in that this could be true in the case where a file has explicit members but is not contained within a shared folder. This field is optional.
{
"error_summary": "unsupported_extension/...",
"error": {
".tag": "unsupported_extension"
}
}
{
"error_summary": "unsupported_image/...",
"error": {
".tag": "unsupported_image"
}
}
{
"error_summary": "conversion_error/...",
"error": {
".tag": "conversion_error"
}
}path LookupError An error occurs when downloading metadata for the image.malformed_path String? This field is optional.
not_found Void There is nothing at the given path.
not_file Void We were expecting a file, but the given path refers to something that isn't a file.
not_folder Void We were expecting a folder, but the given path refers to something that isn't a folder.
restricted_content Void The file cannot be transferred because the content is restricted. For example, sometimes there are legal restrictions due to copyright claims.
invalid_path_root PathRootError The path root parameter provided is invalid.path_root String? The user's latest path root value. None if the user no longer has a path root. This field is optional.
unsupported_extension Void The file extension doesn't allow conversion to a thumbnail.
unsupported_image Void The image cannot be converted to a thumbnail.
conversion_error Void An error occurs during thumbnail conversion.
Starts returning the contents of a folder. If the result's ListFolderResult.has_more field is true, call list_folder/continue with the returned ListFolderResult.cursor to retrieve more entries.
If you're using ListFolderArg.recursive set to true to keep a local cache of the contents of a Dropbox account, iterate through each entry in order and process them as follows to keep your local state in sync:
For each FileMetadata, store the new entry at the given path in your local state. If the required parent folders don't exist yet, create them. If there's already something else at the given path, replace it and remove all its children.
For each FolderMetadata, store the new entry at the given path in your local state. If the required parent folders don't exist yet, create them. If there's already something else at the given path, replace it but leave the children as they are. Check the new entry's FolderSharingInfo.read_only and set all its children's read-only statuses to match.
For each DeletedMetadata, if your local state has something at the given path, remove it and all its children. If there's nothing at the given path, ignore this entry.
https://api.dropboxapi.com/2/files/list_folder
curl -X POST https://api.dropboxapi.com/2/files/list_folder \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"path\": \"/Homework/math\",\"recursive\": false,\"include_media_info\": false,\"include_deleted\": false,\"include_has_explicit_shared_members\": false}"
{
"path": "/Homework/math",
"recursive": false,
"include_media_info": false,
"include_deleted": false,
"include_has_explicit_shared_members": false
}path String(pattern="(/(.|[\r\n])*)?|(ns:[0-9]+(/.*)?)") The path to the folder you want to see the contents of.
recursive Boolean If true, the list folder operation will be applied recursively to all subfolders and the response will contain contents of all subfolders. The default for this field is False.
include_media_info Boolean If true, FileMetadata.media_info is set for photo and video. The default for this field is False.
include_deleted Boolean If true, the results will include entries for files and folders that used to exist but were deleted. The default for this field is False.
include_has_explicit_shared_members Boolean If true, the results will include a flag for each file indicating whether or not that file has any explicit members. The default for this field is False.
{
"entries": [
{
".tag": "file",
"name": "Prime_Numbers.txt",
"id": "id:a4ayc_80_OEAAAAAAAAAXw",
"client_modified": "2015-05-12T15:50:38Z",
"server_modified": "2015-05-12T15:50:38Z",
"rev": "a1c10ce0dd78",
"size": 7212,
"path_lower": "/homework/math/prime_numbers.txt",
"path_display": "/Homework/math/Prime_Numbers.txt",
"sharing_info": {
"read_only": true,
"parent_shared_folder_id": "84528192421",
"modified_by": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc"
},
"property_groups": [
{
"template_id": "ptid:1a5n2i6d3OYEAAAAAAAAAYa",
"fields": [
{
"name": "Security Policy",
"value": "Confidential"
}
]
}
],
"has_explicit_shared_members": false
},
{
".tag": "folder",
"name": "math",
"id": "id:a4ayc_80_OEAAAAAAAAAXz",
"path_lower": "/homework/math",
"path_display": "/Homework/math",
"sharing_info": {
"read_only": false,
"parent_shared_folder_id": "84528192421",
"traverse_only": false,
"no_access": false
},
"property_groups": [
{
"template_id": "ptid:1a5n2i6d3OYEAAAAAAAAAYa",
"fields": [
{
"name": "Security Policy",
"value": "Confidential"
}
]
}
]
}
],
"cursor": "ZtkX9_EHj3x7PMkVuFIhwKYXEpwpLwyxp9vMKomUhllil9q7eWiAu",
"has_more": false
}entries List of (Metadata) The files and (direct) subfolders in the folder.file FileMetadata name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the file.
client_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") For files, this is the modification time set by the desktop client when the file was added to Dropbox. Since this time is not verified (the Dropbox server stores whatever the desktop client sends up), this should only be used for display purposes (such as sorting) and not, for example, to determine if a file has changed or not.
server_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") The last time the file was modified on Dropbox.
rev String(min_length=9, pattern="[0-9a-f]+") A unique identifier for the current revision of a file. This field is the same rev as elsewhere in the API and can be used to detect changes and avoid conflicts.
size UInt64 The file size in bytes.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
media_info MediaInfo? Additional information if the file is a photo or video. This field is optional.pending Void Indicate the photo/video is still under processing and metadata is not available yet.
metadata MediaMetadata The metadata for the photo/video.photo PhotoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
video VideoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
duration UInt64? The duration of the video in milliseconds. This field is optional.
sharing_info FileSharingInfo? Set if this file is contained in a shared folder. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+") ID of shared folder that holds this file.
modified_by String(min_length=40, max_length=40)? The last user who modified the file. This field will be null if the user's account has been deleted. This field is optional.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
has_explicit_shared_members Boolean? This flag will only be present if include_has_explicit_shared_members is true in list_folder or get_metadata. If this flag is present, it will be true if this file has any explicit shared members. This is different from sharing_info in that this could be true in the case where a file has explicit members but is not contained within a shared folder. This field is optional.
folder FolderMetadata name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the folder.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use sharing_info instead. This field is optional.
sharing_info FolderSharingInfo? Set if the folder is contained in a shared folder or is a shared folder mount point. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Set if the folder is contained by a shared folder. This field is optional.
shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? If this folder is a shared folder mount point, the ID of the shared folder mounted at this location. This field is optional.
traverse_only Boolean Specifies that the folder can only be traversed and the user can only see a limited subset of the contents of this folder because they don't have read access to this folder. They do, however, have access to some sub folder. The default for this field is False.
no_access Boolean Specifies that the folder cannot be accessed by the user. The default for this field is False.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
deleted DeletedMetadata name String The last component of the path (including extension). This never contains a slash.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
cursor String(min_length=1) Pass the cursor into list_folder/continue to see what's changed in the folder since your previous query.
has_more Boolean If true, then there are more entries available. Pass the cursor to list_folder/continue to retrieve the rest.
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}path LookupError malformed_path String? This field is optional.
not_found Void There is nothing at the given path.
not_file Void We were expecting a file, but the given path refers to something that isn't a file.
not_folder Void We were expecting a folder, but the given path refers to something that isn't a folder.
restricted_content Void The file cannot be transferred because the content is restricted. For example, sometimes there are legal restrictions due to copyright claims.
invalid_path_root PathRootError The path root parameter provided is invalid.path_root String? The user's latest path root value. None if the user no longer has a path root. This field is optional.
Once a cursor has been retrieved from list_folder, use this to paginate through all files and retrieve updates to the folder, following the same rules as documented for list_folder.
https://api.dropboxapi.com/2/files/list_folder/continue
curl -X POST https://api.dropboxapi.com/2/files/list_folder/continue \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"cursor\": \"ZtkX9_EHj3x7PMkVuFIhwKYXEpwpLwyxp9vMKomUhllil9q7eWiAu\"}"
{
"cursor": "ZtkX9_EHj3x7PMkVuFIhwKYXEpwpLwyxp9vMKomUhllil9q7eWiAu"
}cursor String(min_length=1) The cursor returned by your last call to list_folder or list_folder/continue.
{
"entries": [
{
".tag": "file",
"name": "Prime_Numbers.txt",
"id": "id:a4ayc_80_OEAAAAAAAAAXw",
"client_modified": "2015-05-12T15:50:38Z",
"server_modified": "2015-05-12T15:50:38Z",
"rev": "a1c10ce0dd78",
"size": 7212,
"path_lower": "/homework/math/prime_numbers.txt",
"path_display": "/Homework/math/Prime_Numbers.txt",
"sharing_info": {
"read_only": true,
"parent_shared_folder_id": "84528192421",
"modified_by": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc"
},
"property_groups": [
{
"template_id": "ptid:1a5n2i6d3OYEAAAAAAAAAYa",
"fields": [
{
"name": "Security Policy",
"value": "Confidential"
}
]
}
],
"has_explicit_shared_members": false
},
{
".tag": "folder",
"name": "math",
"id": "id:a4ayc_80_OEAAAAAAAAAXz",
"path_lower": "/homework/math",
"path_display": "/Homework/math",
"sharing_info": {
"read_only": false,
"parent_shared_folder_id": "84528192421",
"traverse_only": false,
"no_access": false
},
"property_groups": [
{
"template_id": "ptid:1a5n2i6d3OYEAAAAAAAAAYa",
"fields": [
{
"name": "Security Policy",
"value": "Confidential"
}
]
}
]
}
],
"cursor": "ZtkX9_EHj3x7PMkVuFIhwKYXEpwpLwyxp9vMKomUhllil9q7eWiAu",
"has_more": false
}entries List of (Metadata) The files and (direct) subfolders in the folder.file FileMetadata name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the file.
client_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") For files, this is the modification time set by the desktop client when the file was added to Dropbox. Since this time is not verified (the Dropbox server stores whatever the desktop client sends up), this should only be used for display purposes (such as sorting) and not, for example, to determine if a file has changed or not.
server_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") The last time the file was modified on Dropbox.
rev String(min_length=9, pattern="[0-9a-f]+") A unique identifier for the current revision of a file. This field is the same rev as elsewhere in the API and can be used to detect changes and avoid conflicts.
size UInt64 The file size in bytes.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
media_info MediaInfo? Additional information if the file is a photo or video. This field is optional.pending Void Indicate the photo/video is still under processing and metadata is not available yet.
metadata MediaMetadata The metadata for the photo/video.photo PhotoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
video VideoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
duration UInt64? The duration of the video in milliseconds. This field is optional.
sharing_info FileSharingInfo? Set if this file is contained in a shared folder. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+") ID of shared folder that holds this file.
modified_by String(min_length=40, max_length=40)? The last user who modified the file. This field will be null if the user's account has been deleted. This field is optional.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
has_explicit_shared_members Boolean? This flag will only be present if include_has_explicit_shared_members is true in list_folder or get_metadata. If this flag is present, it will be true if this file has any explicit shared members. This is different from sharing_info in that this could be true in the case where a file has explicit members but is not contained within a shared folder. This field is optional.
folder FolderMetadata name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the folder.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use sharing_info instead. This field is optional.
sharing_info FolderSharingInfo? Set if the folder is contained in a shared folder or is a shared folder mount point. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Set if the folder is contained by a shared folder. This field is optional.
shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? If this folder is a shared folder mount point, the ID of the shared folder mounted at this location. This field is optional.
traverse_only Boolean Specifies that the folder can only be traversed and the user can only see a limited subset of the contents of this folder because they don't have read access to this folder. They do, however, have access to some sub folder. The default for this field is False.
no_access Boolean Specifies that the folder cannot be accessed by the user. The default for this field is False.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
deleted DeletedMetadata name String The last component of the path (including extension). This never contains a slash.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
cursor String(min_length=1) Pass the cursor into list_folder/continue to see what's changed in the folder since your previous query.
has_more Boolean If true, then there are more entries available. Pass the cursor to list_folder/continue to retrieve the rest.
{
"error_summary": "reset/...",
"error": {
".tag": "reset"
}
}
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}path LookupError malformed_path String? This field is optional.
not_found Void There is nothing at the given path.
not_file Void We were expecting a file, but the given path refers to something that isn't a file.
not_folder Void We were expecting a folder, but the given path refers to something that isn't a folder.
restricted_content Void The file cannot be transferred because the content is restricted. For example, sometimes there are legal restrictions due to copyright claims.
invalid_path_root PathRootError The path root parameter provided is invalid.path_root String? The user's latest path root value. None if the user no longer has a path root. This field is optional.
reset Void Indicates that the cursor has been invalidated. Call list_folder to obtain a new cursor.
A way to quickly get a cursor for the folder's state. Unlike list_folder, list_folder/get_latest_cursor doesn't return any entries. This endpoint is for app which only needs to know about new files and modifications and doesn't need to know about files that already exist in Dropbox.
https://api.dropboxapi.com/2/files/list_folder/get_latest_cursor
curl -X POST https://api.dropboxapi.com/2/files/list_folder/get_latest_cursor \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"path\": \"/Homework/math\",\"recursive\": false,\"include_media_info\": false,\"include_deleted\": false,\"include_has_explicit_shared_members\": false}"
{
"path": "/Homework/math",
"recursive": false,
"include_media_info": false,
"include_deleted": false,
"include_has_explicit_shared_members": false
}path String(pattern="(/(.|[\r\n])*)?|(ns:[0-9]+(/.*)?)") The path to the folder you want to see the contents of.
recursive Boolean If true, the list folder operation will be applied recursively to all subfolders and the response will contain contents of all subfolders. The default for this field is False.
include_media_info Boolean If true, FileMetadata.media_info is set for photo and video. The default for this field is False.
include_deleted Boolean If true, the results will include entries for files and folders that used to exist but were deleted. The default for this field is False.
include_has_explicit_shared_members Boolean If true, the results will include a flag for each file indicating whether or not that file has any explicit members. The default for this field is False.
{
"cursor": "ZtkX9_EHj3x7PMkVuFIhwKYXEpwpLwyxp9vMKomUhllil9q7eWiAu"
}cursor String(min_length=1) Pass the cursor into list_folder/continue to see what's changed in the folder since your previous query.
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}path LookupError malformed_path String? This field is optional.
not_found Void There is nothing at the given path.
not_file Void We were expecting a file, but the given path refers to something that isn't a file.
not_folder Void We were expecting a folder, but the given path refers to something that isn't a folder.
restricted_content Void The file cannot be transferred because the content is restricted. For example, sometimes there are legal restrictions due to copyright claims.
invalid_path_root PathRootError The path root parameter provided is invalid.path_root String? The user's latest path root value. None if the user no longer has a path root. This field is optional.
A longpoll endpoint to wait for changes on an account. In conjunction with list_folder/continue, this call gives you a low-latency way to monitor an account for file changes. The connection will block until there are changes available or a timeout occurs. This endpoint is useful mostly for client-side apps. If you're looking for server-side notifications, check out our webhooks documentation.
https://notify.dropboxapi.com/2/files/list_folder/longpoll
curl -X POST https://notify.dropboxapi.com/2/files/list_folder/longpoll \
--header "Content-Type: application/json" \
--data "{\"cursor\": \"ZtkX9_EHj3x7PMkVuFIhwKYXEpwpLwyxp9vMKomUhllil9q7eWiAu\",\"timeout\": 30}"
{
"cursor": "ZtkX9_EHj3x7PMkVuFIhwKYXEpwpLwyxp9vMKomUhllil9q7eWiAu",
"timeout": 30
}cursor String(min_length=1) A cursor as returned by list_folder or list_folder/continue. Cursors retrieved by setting ListFolderArg.include_media_info to true are not supported.
timeout UInt64 A timeout in seconds. The request will block for at most this length of time, plus up to 90 seconds of random jitter added to avoid the thundering herd problem. Care should be taken when using this parameter, as some network infrastructure does not support long timeouts. The default for this field is 30.
{
"changes": true
}changes Boolean Indicates whether new changes are available. If true, call list_folder/continue to retrieve the changes.
backoff UInt64? If present, backoff for at least this many seconds before calling list_folder/longpoll again. This field is optional.
{
"error_summary": "reset/...",
"error": {
".tag": "reset"
}
}
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}reset Void Indicates that the cursor has been invalidated. Call list_folder to obtain a new cursor.
Return revisions of a file.
https://api.dropboxapi.com/2/files/list_revisions
curl -X POST https://api.dropboxapi.com/2/files/list_revisions \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"path\": \"/root/word.docx\",\"limit\": 10}"
{
"path": "/root/word.docx",
"limit": 10
}path String(pattern="/(.|[\r\n])*|id:.*|(ns:[0-9]+(/.*)?)") The path to the file you want to see the revisions of.
limit UInt64 The maximum number of revision entries returned. The default for this field is 10.
{
"is_deleted": false,
"entries": [
{
"name": "Prime_Numbers.txt",
"id": "id:a4ayc_80_OEAAAAAAAAAXw",
"client_modified": "2015-05-12T15:50:38Z",
"server_modified": "2015-05-12T15:50:38Z",
"rev": "a1c10ce0dd78",
"size": 7212,
"path_lower": "/homework/math/prime_numbers.txt",
"path_display": "/Homework/math/Prime_Numbers.txt",
"sharing_info": {
"read_only": true,
"parent_shared_folder_id": "84528192421",
"modified_by": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc"
},
"property_groups": [
{
"template_id": "ptid:1a5n2i6d3OYEAAAAAAAAAYa",
"fields": [
{
"name": "Security Policy",
"value": "Confidential"
}
]
}
],
"has_explicit_shared_members": false
}
]
}is_deleted Boolean If the file is deleted.
entries List of (FileMetadata) The revisions for the file. Only non-delete revisions will show up here.name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the file.
client_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") For files, this is the modification time set by the desktop client when the file was added to Dropbox. Since this time is not verified (the Dropbox server stores whatever the desktop client sends up), this should only be used for display purposes (such as sorting) and not, for example, to determine if a file has changed or not.
server_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") The last time the file was modified on Dropbox.
rev String(min_length=9, pattern="[0-9a-f]+") A unique identifier for the current revision of a file. This field is the same rev as elsewhere in the API and can be used to detect changes and avoid conflicts.
size UInt64 The file size in bytes.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
media_info MediaInfo? Additional information if the file is a photo or video. This field is optional.pending Void Indicate the photo/video is still under processing and metadata is not available yet.
metadata MediaMetadata The metadata for the photo/video.photo PhotoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
video VideoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
duration UInt64? The duration of the video in milliseconds. This field is optional.
sharing_info FileSharingInfo? Set if this file is contained in a shared folder. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+") ID of shared folder that holds this file.
modified_by String(min_length=40, max_length=40)? The last user who modified the file. This field will be null if the user's account has been deleted. This field is optional.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
has_explicit_shared_members Boolean? This flag will only be present if include_has_explicit_shared_members is true in list_folder or get_metadata. If this flag is present, it will be true if this file has any explicit shared members. This is different from sharing_info in that this could be true in the case where a file has explicit members but is not contained within a shared folder. This field is optional.
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}path LookupError malformed_path String? This field is optional.
not_found Void There is nothing at the given path.
not_file Void We were expecting a file, but the given path refers to something that isn't a file.
not_folder Void We were expecting a folder, but the given path refers to something that isn't a folder.
restricted_content Void The file cannot be transferred because the content is restricted. For example, sometimes there are legal restrictions due to copyright claims.
invalid_path_root PathRootError The path root parameter provided is invalid.path_root String? The user's latest path root value. None if the user no longer has a path root. This field is optional.
Move a file or folder to a different location in the user's Dropbox.
If the source path is a folder all its contents will be moved.
https://api.dropboxapi.com/2/files/move
curl -X POST https://api.dropboxapi.com/2/files/move \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"from_path\": \"/Homework/math\",\"to_path\": \"/Homework/algebra\",\"allow_shared_folder\": false,\"autorename\": false}"
{
"from_path": "/Homework/math",
"to_path": "/Homework/algebra",
"allow_shared_folder": false,
"autorename": false
}from_path String(pattern="(/(.|[\r\n])*)|(ns:[0-9]+(/.*)?)") Path in the user's Dropbox to be copied or moved.
to_path String(pattern="(/(.|[\r\n])*)|(ns:[0-9]+(/.*)?)") Path in the user's Dropbox that is the destination.
allow_shared_folder Boolean If true, copy will copy contents in shared folder, otherwise RelocationError.cant_copy_shared_folder will be returned if from_path contains shared folder. This field is always true for move. The default for this field is False.
autorename Boolean If there's a conflict, have the Dropbox server try to autorename the file to avoid the conflict. The default for this field is False.
{
".tag": "file",
"name": "Prime_Numbers.txt",
"id": "id:a4ayc_80_OEAAAAAAAAAXw",
"client_modified": "2015-05-12T15:50:38Z",
"server_modified": "2015-05-12T15:50:38Z",
"rev": "a1c10ce0dd78",
"size": 7212,
"path_lower": "/homework/math/prime_numbers.txt",
"path_display": "/Homework/math/Prime_Numbers.txt",
"sharing_info": {
"read_only": true,
"parent_shared_folder_id": "84528192421",
"modified_by": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc"
},
"property_groups": [
{
"template_id": "ptid:1a5n2i6d3OYEAAAAAAAAAYa",
"fields": [
{
"name": "Security Policy",
"value": "Confidential"
}
]
}
],
"has_explicit_shared_members": false
}{
".tag": "folder",
"name": "math",
"id": "id:a4ayc_80_OEAAAAAAAAAXz",
"path_lower": "/homework/math",
"path_display": "/Homework/math",
"sharing_info": {
"read_only": false,
"parent_shared_folder_id": "84528192421",
"traverse_only": false,
"no_access": false
},
"property_groups": [
{
"template_id": "ptid:1a5n2i6d3OYEAAAAAAAAAYa",
"fields": [
{
"name": "Security Policy",
"value": "Confidential"
}
]
}
]
}file FileMetadata name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the file.
client_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") For files, this is the modification time set by the desktop client when the file was added to Dropbox. Since this time is not verified (the Dropbox server stores whatever the desktop client sends up), this should only be used for display purposes (such as sorting) and not, for example, to determine if a file has changed or not.
server_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") The last time the file was modified on Dropbox.
rev String(min_length=9, pattern="[0-9a-f]+") A unique identifier for the current revision of a file. This field is the same rev as elsewhere in the API and can be used to detect changes and avoid conflicts.
size UInt64 The file size in bytes.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
media_info MediaInfo? Additional information if the file is a photo or video. This field is optional.pending Void Indicate the photo/video is still under processing and metadata is not available yet.
metadata MediaMetadata The metadata for the photo/video.photo PhotoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
video VideoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
duration UInt64? The duration of the video in milliseconds. This field is optional.
sharing_info FileSharingInfo? Set if this file is contained in a shared folder. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+") ID of shared folder that holds this file.
modified_by String(min_length=40, max_length=40)? The last user who modified the file. This field will be null if the user's account has been deleted. This field is optional.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
has_explicit_shared_members Boolean? This flag will only be present if include_has_explicit_shared_members is true in list_folder or get_metadata. If this flag is present, it will be true if this file has any explicit shared members. This is different from sharing_info in that this could be true in the case where a file has explicit members but is not contained within a shared folder. This field is optional.
folder FolderMetadata name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the folder.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use sharing_info instead. This field is optional.
sharing_info FolderSharingInfo? Set if the folder is contained in a shared folder or is a shared folder mount point. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Set if the folder is contained by a shared folder. This field is optional.
shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? If this folder is a shared folder mount point, the ID of the shared folder mounted at this location. This field is optional.
traverse_only Boolean Specifies that the folder can only be traversed and the user can only see a limited subset of the contents of this folder because they don't have read access to this folder. They do, however, have access to some sub folder. The default for this field is False.
no_access Boolean Specifies that the folder cannot be accessed by the user. The default for this field is False.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
deleted DeletedMetadata name String The last component of the path (including extension). This never contains a slash.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
{
"error_summary": "cant_copy_shared_folder/...",
"error": {
".tag": "cant_copy_shared_folder"
}
}
{
"error_summary": "cant_nest_shared_folder/...",
"error": {
".tag": "cant_nest_shared_folder"
}
}
{
"error_summary": "cant_move_folder_into_itself/...",
"error": {
".tag": "cant_move_folder_into_itself"
}
}
{
"error_summary": "too_many_files/...",
"error": {
".tag": "too_many_files"
}
}
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}from_lookup LookupError malformed_path String? This field is optional.
not_found Void There is nothing at the given path.
not_file Void We were expecting a file, but the given path refers to something that isn't a file.
not_folder Void We were expecting a folder, but the given path refers to something that isn't a folder.
restricted_content Void The file cannot be transferred because the content is restricted. For example, sometimes there are legal restrictions due to copyright claims.
invalid_path_root PathRootError The path root parameter provided is invalid.path_root String? The user's latest path root value. None if the user no longer has a path root. This field is optional.
from_write WriteError malformed_path String? This field is optional.
conflict WriteConflictError Couldn't write to the target path because there was something in the way.file Void There's a file in the way.
folder Void There's a folder in the way.
file_ancestor Void There's a file at an ancestor path, so we couldn't create the required parent folders.
no_write_permission Void The user doesn't have permissions to write to the target location.
insufficient_space Void The user doesn't have enough available space (bytes) to write more data.
disallowed_name Void Dropbox will not save the file or folder because of its name.
to WriteError malformed_path String? This field is optional.
conflict WriteConflictError Couldn't write to the target path because there was something in the way.file Void There's a file in the way.
folder Void There's a folder in the way.
file_ancestor Void There's a file at an ancestor path, so we couldn't create the required parent folders.
no_write_permission Void The user doesn't have permissions to write to the target location.
insufficient_space Void The user doesn't have enough available space (bytes) to write more data.
disallowed_name Void Dropbox will not save the file or folder because of its name.
cant_copy_shared_folder Void Shared folders can't be copied.
cant_nest_shared_folder Void Your move operation would result in nested shared folders. This is not allowed.
cant_move_folder_into_itself Void You cannot move a folder into itself.
too_many_files Void The operation would involve more than 10,000 files and folders.
Move multiple files or folders to different locations at once in the user's Dropbox.
This route is 'all or nothing', which means if one entry fails, the whole transaction will abort.
This route will return job ID immediately and do the async moving job in background. Please use move_batch/check to check the job status.
https://api.dropboxapi.com/2/files/move_batch
curl -X POST https://api.dropboxapi.com/2/files/move_batch \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"entries\": [{\"from_path\": \"/Homework/math\",\"to_path\": \"/Homework/algebra\"}],\"allow_shared_folder\": false,\"autorename\": false}"
{
"entries": [
{
"from_path": "/Homework/math",
"to_path": "/Homework/algebra"
}
],
"allow_shared_folder": false,
"autorename": false
}entries List of (RelocationPath) List of entries to be moved or copied. Each entry is RelocationPath.from_path String(pattern="(/(.|[\r\n])*)|(ns:[0-9]+(/.*)?)") Path in the user's Dropbox to be copied or moved.
to_path String(pattern="(/(.|[\r\n])*)|(ns:[0-9]+(/.*)?)") Path in the user's Dropbox that is the destination.
allow_shared_folder Boolean If true, copy_batch will copy contents in shared folder, otherwise RelocationError.cant_copy_shared_folder will be returned if RelocationPath.from_path contains shared folder. This field is always true for move_batch. The default for this field is False.
autorename Boolean If there's a conflict with any file, have the Dropbox server try to autorename that file to avoid the conflict. The default for this field is False.
{
".tag": "complete",
"entries": [
{
"metadata": {
".tag": "file",
"name": "Prime_Numbers.txt",
"id": "id:a4ayc_80_OEAAAAAAAAAXw",
"client_modified": "2015-05-12T15:50:38Z",
"server_modified": "2015-05-12T15:50:38Z",
"rev": "a1c10ce0dd78",
"size": 7212,
"path_lower": "/homework/math/prime_numbers.txt",
"path_display": "/Homework/math/Prime_Numbers.txt",
"sharing_info": {
"read_only": true,
"parent_shared_folder_id": "84528192421",
"modified_by": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc"
},
"property_groups": [
{
"template_id": "ptid:1a5n2i6d3OYEAAAAAAAAAYa",
"fields": [
{
"name": "Security Policy",
"value": "Confidential"
}
]
}
],
"has_explicit_shared_members": false
}
}
]
}
{
".tag": "async_job_id",
"async_job_id": "34g93hh34h04y384084"
}
{
".tag": "other"
}async_job_id String(min_length=1) This response indicates that the processing is asynchronous. The string is an id that can be used to obtain the status of the asynchronous job.
complete RelocationBatchResult entries List of (RelocationResult) metadata Metadata file FileMetadata name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the file.
client_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") For files, this is the modification time set by the desktop client when the file was added to Dropbox. Since this time is not verified (the Dropbox server stores whatever the desktop client sends up), this should only be used for display purposes (such as sorting) and not, for example, to determine if a file has changed or not.
server_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") The last time the file was modified on Dropbox.
rev String(min_length=9, pattern="[0-9a-f]+") A unique identifier for the current revision of a file. This field is the same rev as elsewhere in the API and can be used to detect changes and avoid conflicts.
size UInt64 The file size in bytes.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
media_info MediaInfo? Additional information if the file is a photo or video. This field is optional.pending Void Indicate the photo/video is still under processing and metadata is not available yet.
metadata MediaMetadata The metadata for the photo/video.photo PhotoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
video VideoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
duration UInt64? The duration of the video in milliseconds. This field is optional.
sharing_info FileSharingInfo? Set if this file is contained in a shared folder. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+") ID of shared folder that holds this file.
modified_by String(min_length=40, max_length=40)? The last user who modified the file. This field will be null if the user's account has been deleted. This field is optional.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
has_explicit_shared_members Boolean? This flag will only be present if include_has_explicit_shared_members is true in list_folder or get_metadata. If this flag is present, it will be true if this file has any explicit shared members. This is different from sharing_info in that this could be true in the case where a file has explicit members but is not contained within a shared folder. This field is optional.
folder FolderMetadata name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the folder.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use sharing_info instead. This field is optional.
sharing_info FolderSharingInfo? Set if the folder is contained in a shared folder or is a shared folder mount point. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Set if the folder is contained by a shared folder. This field is optional.
shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? If this folder is a shared folder mount point, the ID of the shared folder mounted at this location. This field is optional.
traverse_only Boolean Specifies that the folder can only be traversed and the user can only see a limited subset of the contents of this folder because they don't have read access to this folder. They do, however, have access to some sub folder. The default for this field is False.
no_access Boolean Specifies that the folder cannot be accessed by the user. The default for this field is False.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
deleted DeletedMetadata name String The last component of the path (including extension). This never contains a slash.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
No errors.
Returns the status of an asynchronous job for move_batch. If success, it returns list of results for each entry.
https://api.dropboxapi.com/2/files/move_batch/check
curl -X POST https://api.dropboxapi.com/2/files/move_batch/check \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"async_job_id\": \"34g93hh34h04y384084\"}"
{
"async_job_id": "34g93hh34h04y384084"
}async_job_id String(min_length=1) Id of the asynchronous job. This is the value of a response returned from the method that launched the job.
{
".tag": "complete",
"entries": [
{
"metadata": {
".tag": "file",
"name": "Prime_Numbers.txt",
"id": "id:a4ayc_80_OEAAAAAAAAAXw",
"client_modified": "2015-05-12T15:50:38Z",
"server_modified": "2015-05-12T15:50:38Z",
"rev": "a1c10ce0dd78",
"size": 7212,
"path_lower": "/homework/math/prime_numbers.txt",
"path_display": "/Homework/math/Prime_Numbers.txt",
"sharing_info": {
"read_only": true,
"parent_shared_folder_id": "84528192421",
"modified_by": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc"
},
"property_groups": [
{
"template_id": "ptid:1a5n2i6d3OYEAAAAAAAAAYa",
"fields": [
{
"name": "Security Policy",
"value": "Confidential"
}
]
}
],
"has_explicit_shared_members": false
}
}
]
}
{
".tag": "in_progress"
}in_progress Void The asynchronous job is still in progress.
complete RelocationBatchResult The copy or move batch job has finished.entries List of (RelocationResult) metadata Metadata file FileMetadata name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the file.
client_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") For files, this is the modification time set by the desktop client when the file was added to Dropbox. Since this time is not verified (the Dropbox server stores whatever the desktop client sends up), this should only be used for display purposes (such as sorting) and not, for example, to determine if a file has changed or not.
server_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") The last time the file was modified on Dropbox.
rev String(min_length=9, pattern="[0-9a-f]+") A unique identifier for the current revision of a file. This field is the same rev as elsewhere in the API and can be used to detect changes and avoid conflicts.
size UInt64 The file size in bytes.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
media_info MediaInfo? Additional information if the file is a photo or video. This field is optional.pending Void Indicate the photo/video is still under processing and metadata is not available yet.
metadata MediaMetadata The metadata for the photo/video.photo PhotoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
video VideoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
duration UInt64? The duration of the video in milliseconds. This field is optional.
sharing_info FileSharingInfo? Set if this file is contained in a shared folder. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+") ID of shared folder that holds this file.
modified_by String(min_length=40, max_length=40)? The last user who modified the file. This field will be null if the user's account has been deleted. This field is optional.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
has_explicit_shared_members Boolean? This flag will only be present if include_has_explicit_shared_members is true in list_folder or get_metadata. If this flag is present, it will be true if this file has any explicit shared members. This is different from sharing_info in that this could be true in the case where a file has explicit members but is not contained within a shared folder. This field is optional.
folder FolderMetadata name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the folder.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use sharing_info instead. This field is optional.
sharing_info FolderSharingInfo? Set if the folder is contained in a shared folder or is a shared folder mount point. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Set if the folder is contained by a shared folder. This field is optional.
shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? If this folder is a shared folder mount point, the ID of the shared folder mounted at this location. This field is optional.
traverse_only Boolean Specifies that the folder can only be traversed and the user can only see a limited subset of the contents of this folder because they don't have read access to this folder. They do, however, have access to some sub folder. The default for this field is False.
no_access Boolean Specifies that the folder cannot be accessed by the user. The default for this field is False.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
deleted DeletedMetadata name String The last component of the path (including extension). This never contains a slash.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
failed RelocationBatchError The copy or move batch job has failed with exception.from_lookup LookupError malformed_path String? This field is optional.
not_found Void There is nothing at the given path.
not_file Void We were expecting a file, but the given path refers to something that isn't a file.
not_folder Void We were expecting a folder, but the given path refers to something that isn't a folder.
restricted_content Void The file cannot be transferred because the content is restricted. For example, sometimes there are legal restrictions due to copyright claims.
invalid_path_root PathRootError The path root parameter provided is invalid.path_root String? The user's latest path root value. None if the user no longer has a path root. This field is optional.
from_write WriteError malformed_path String? This field is optional.
conflict WriteConflictError Couldn't write to the target path because there was something in the way.file Void There's a file in the way.
folder Void There's a folder in the way.
file_ancestor Void There's a file at an ancestor path, so we couldn't create the required parent folders.
no_write_permission Void The user doesn't have permissions to write to the target location.
insufficient_space Void The user doesn't have enough available space (bytes) to write more data.
disallowed_name Void Dropbox will not save the file or folder because of its name.
to WriteError malformed_path String? This field is optional.
conflict WriteConflictError Couldn't write to the target path because there was something in the way.file Void There's a file in the way.
folder Void There's a folder in the way.
file_ancestor Void There's a file at an ancestor path, so we couldn't create the required parent folders.
no_write_permission Void The user doesn't have permissions to write to the target location.
insufficient_space Void The user doesn't have enough available space (bytes) to write more data.
disallowed_name Void Dropbox will not save the file or folder because of its name.
cant_copy_shared_folder Void Shared folders can't be copied.
cant_nest_shared_folder Void Your move operation would result in nested shared folders. This is not allowed.
cant_move_folder_into_itself Void You cannot move a folder into itself.
too_many_files Void The operation would involve more than 10,000 files and folders.
duplicated_or_nested_paths Void There are duplicated/nested paths among RelocationArg.from_path and RelocationArg.to_path.
too_many_write_operations Void There are too many write operations in user's Dropbox. Please retry this request.
{
"error_summary": "invalid_async_job_id/...",
"error": {
".tag": "invalid_async_job_id"
}
}
{
"error_summary": "internal_error/...",
"error": {
".tag": "internal_error"
}
}
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}invalid_async_job_id Void The job ID is invalid.
internal_error Void Something went wrong with the job on Dropbox's end. You'll need to verify that the action you were taking succeeded, and if not, try again. This should happen very rarely.
Permanently delete the file or folder at a given path (see https://www.dropbox.com/en/help/40).
Note: This endpoint is only available for Dropbox Business apps.
https://api.dropboxapi.com/2/files/permanently_delete
curl -X POST https://api.dropboxapi.com/2/files/permanently_delete \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"path\": \"/Homework/math/Prime_Numbers.txt\"}"
{
"path": "/Homework/math/Prime_Numbers.txt"
}path String(pattern="(/(.|[\r\n])*)|(ns:[0-9]+(/.*)?)") Path in the user's Dropbox to delete.
No return values.
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}path_lookup LookupError malformed_path String? This field is optional.
not_found Void There is nothing at the given path.
not_file Void We were expecting a file, but the given path refers to something that isn't a file.
not_folder Void We were expecting a folder, but the given path refers to something that isn't a folder.
restricted_content Void The file cannot be transferred because the content is restricted. For example, sometimes there are legal restrictions due to copyright claims.
invalid_path_root PathRootError The path root parameter provided is invalid.path_root String? The user's latest path root value. None if the user no longer has a path root. This field is optional.
path_write WriteError malformed_path String? This field is optional.
conflict WriteConflictError Couldn't write to the target path because there was something in the way.file Void There's a file in the way.
folder Void There's a folder in the way.
file_ancestor Void There's a file at an ancestor path, so we couldn't create the required parent folders.
no_write_permission Void The user doesn't have permissions to write to the target location.
insufficient_space Void The user doesn't have enough available space (bytes) to write more data.
disallowed_name Void Dropbox will not save the file or folder because of its name.
Restore a file to a specific revision.
https://api.dropboxapi.com/2/files/restore
curl -X POST https://api.dropboxapi.com/2/files/restore \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"path\": \"/root/word.docx\",\"rev\": \"a1c10ce0dd78\"}"
{
"path": "/root/word.docx",
"rev": "a1c10ce0dd78"
}path String(pattern="(/(.|[\r\n])*)|(ns:[0-9]+(/.*)?)") The path to the file you want to restore.
rev String(min_length=9, pattern="[0-9a-f]+") The revision to restore for the file.
{
"name": "Prime_Numbers.txt",
"id": "id:a4ayc_80_OEAAAAAAAAAXw",
"client_modified": "2015-05-12T15:50:38Z",
"server_modified": "2015-05-12T15:50:38Z",
"rev": "a1c10ce0dd78",
"size": 7212,
"path_lower": "/homework/math/prime_numbers.txt",
"path_display": "/Homework/math/Prime_Numbers.txt",
"sharing_info": {
"read_only": true,
"parent_shared_folder_id": "84528192421",
"modified_by": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc"
},
"property_groups": [
{
"template_id": "ptid:1a5n2i6d3OYEAAAAAAAAAYa",
"fields": [
{
"name": "Security Policy",
"value": "Confidential"
}
]
}
],
"has_explicit_shared_members": false
}name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the file.
client_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") For files, this is the modification time set by the desktop client when the file was added to Dropbox. Since this time is not verified (the Dropbox server stores whatever the desktop client sends up), this should only be used for display purposes (such as sorting) and not, for example, to determine if a file has changed or not.
server_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") The last time the file was modified on Dropbox.
rev String(min_length=9, pattern="[0-9a-f]+") A unique identifier for the current revision of a file. This field is the same rev as elsewhere in the API and can be used to detect changes and avoid conflicts.
size UInt64 The file size in bytes.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
media_info MediaInfo? Additional information if the file is a photo or video. This field is optional.pending Void Indicate the photo/video is still under processing and metadata is not available yet.
metadata MediaMetadata The metadata for the photo/video.photo PhotoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
video VideoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
duration UInt64? The duration of the video in milliseconds. This field is optional.
sharing_info FileSharingInfo? Set if this file is contained in a shared folder. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+") ID of shared folder that holds this file.
modified_by String(min_length=40, max_length=40)? The last user who modified the file. This field will be null if the user's account has been deleted. This field is optional.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
has_explicit_shared_members Boolean? This flag will only be present if include_has_explicit_shared_members is true in list_folder or get_metadata. If this flag is present, it will be true if this file has any explicit shared members. This is different from sharing_info in that this could be true in the case where a file has explicit members but is not contained within a shared folder. This field is optional.
{
"error_summary": "invalid_revision/...",
"error": {
".tag": "invalid_revision"
}
}
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}path_lookup LookupError An error occurs when downloading metadata for the file.malformed_path String? This field is optional.
not_found Void There is nothing at the given path.
not_file Void We were expecting a file, but the given path refers to something that isn't a file.
not_folder Void We were expecting a folder, but the given path refers to something that isn't a folder.
restricted_content Void The file cannot be transferred because the content is restricted. For example, sometimes there are legal restrictions due to copyright claims.
invalid_path_root PathRootError The path root parameter provided is invalid.path_root String? The user's latest path root value. None if the user no longer has a path root. This field is optional.
path_write WriteError An error occurs when trying to restore the file to that path.malformed_path String? This field is optional.
conflict WriteConflictError Couldn't write to the target path because there was something in the way.file Void There's a file in the way.
folder Void There's a folder in the way.
file_ancestor Void There's a file at an ancestor path, so we couldn't create the required parent folders.
no_write_permission Void The user doesn't have permissions to write to the target location.
insufficient_space Void The user doesn't have enough available space (bytes) to write more data.
disallowed_name Void Dropbox will not save the file or folder because of its name.
invalid_revision Void The revision is invalid. It may point to a different file.
Save a specified URL into a file in user's Dropbox. If the given path already exists, the file will be renamed to avoid the conflict (e.g. myfile (1).txt).
https://api.dropboxapi.com/2/files/save_url
curl -X POST https://api.dropboxapi.com/2/files/save_url \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"path\": \"/a.txt\",\"url\": \"http://example.com/a.txt\"}"
{
"path": "/a.txt",
"url": "http://example.com/a.txt"
}path String(pattern="/(.|[\r\n])*") The path in Dropbox where the URL will be saved to.
url String The URL to be saved.
async_job_id String(min_length=1) This response indicates that the processing is asynchronous. The string is an id that can be used to obtain the status of the asynchronous job.
complete FileMetadata Metadata of the file where the URL is saved to.name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the file.
client_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") For files, this is the modification time set by the desktop client when the file was added to Dropbox. Since this time is not verified (the Dropbox server stores whatever the desktop client sends up), this should only be used for display purposes (such as sorting) and not, for example, to determine if a file has changed or not.
server_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") The last time the file was modified on Dropbox.
rev String(min_length=9, pattern="[0-9a-f]+") A unique identifier for the current revision of a file. This field is the same rev as elsewhere in the API and can be used to detect changes and avoid conflicts.
size UInt64 The file size in bytes.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
media_info MediaInfo? Additional information if the file is a photo or video. This field is optional.pending Void Indicate the photo/video is still under processing and metadata is not available yet.
metadata MediaMetadata The metadata for the photo/video.photo PhotoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
video VideoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
duration UInt64? The duration of the video in milliseconds. This field is optional.
sharing_info FileSharingInfo? Set if this file is contained in a shared folder. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+") ID of shared folder that holds this file.
modified_by String(min_length=40, max_length=40)? The last user who modified the file. This field will be null if the user's account has been deleted. This field is optional.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
has_explicit_shared_members Boolean? This flag will only be present if include_has_explicit_shared_members is true in list_folder or get_metadata. If this flag is present, it will be true if this file has any explicit shared members. This is different from sharing_info in that this could be true in the case where a file has explicit members but is not contained within a shared folder. This field is optional.
{
"error_summary": "download_failed/...",
"error": {
".tag": "download_failed"
}
}
{
"error_summary": "invalid_url/...",
"error": {
".tag": "invalid_url"
}
}
{
"error_summary": "not_found/...",
"error": {
".tag": "not_found"
}
}
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}path WriteError malformed_path String? This field is optional.
conflict WriteConflictError Couldn't write to the target path because there was something in the way.file Void There's a file in the way.
folder Void There's a folder in the way.
file_ancestor Void There's a file at an ancestor path, so we couldn't create the required parent folders.
no_write_permission Void The user doesn't have permissions to write to the target location.
insufficient_space Void The user doesn't have enough available space (bytes) to write more data.
disallowed_name Void Dropbox will not save the file or folder because of its name.
download_failed Void Failed downloading the given URL.
invalid_url Void The given URL is invalid.
not_found Void The file where the URL is saved to no longer exists.
Check the status of a save_url job.
https://api.dropboxapi.com/2/files/save_url/check_job_status
curl -X POST https://api.dropboxapi.com/2/files/save_url/check_job_status \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"async_job_id\": \"34g93hh34h04y384084\"}"
{
"async_job_id": "34g93hh34h04y384084"
}async_job_id String(min_length=1) Id of the asynchronous job. This is the value of a response returned from the method that launched the job.
{
".tag": "in_progress"
}in_progress Void The asynchronous job is still in progress.
complete FileMetadata Metadata of the file where the URL is saved to.name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the file.
client_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") For files, this is the modification time set by the desktop client when the file was added to Dropbox. Since this time is not verified (the Dropbox server stores whatever the desktop client sends up), this should only be used for display purposes (such as sorting) and not, for example, to determine if a file has changed or not.
server_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") The last time the file was modified on Dropbox.
rev String(min_length=9, pattern="[0-9a-f]+") A unique identifier for the current revision of a file. This field is the same rev as elsewhere in the API and can be used to detect changes and avoid conflicts.
size UInt64 The file size in bytes.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
media_info MediaInfo? Additional information if the file is a photo or video. This field is optional.pending Void Indicate the photo/video is still under processing and metadata is not available yet.
metadata MediaMetadata The metadata for the photo/video.photo PhotoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
video VideoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
duration UInt64? The duration of the video in milliseconds. This field is optional.
sharing_info FileSharingInfo? Set if this file is contained in a shared folder. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+") ID of shared folder that holds this file.
modified_by String(min_length=40, max_length=40)? The last user who modified the file. This field will be null if the user's account has been deleted. This field is optional.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
has_explicit_shared_members Boolean? This flag will only be present if include_has_explicit_shared_members is true in list_folder or get_metadata. If this flag is present, it will be true if this file has any explicit shared members. This is different from sharing_info in that this could be true in the case where a file has explicit members but is not contained within a shared folder. This field is optional.
failed SaveUrlError path WriteError malformed_path String? This field is optional.
conflict WriteConflictError Couldn't write to the target path because there was something in the way.file Void There's a file in the way.
folder Void There's a folder in the way.
file_ancestor Void There's a file at an ancestor path, so we couldn't create the required parent folders.
no_write_permission Void The user doesn't have permissions to write to the target location.
insufficient_space Void The user doesn't have enough available space (bytes) to write more data.
disallowed_name Void Dropbox will not save the file or folder because of its name.
download_failed Void Failed downloading the given URL.
invalid_url Void The given URL is invalid.
not_found Void The file where the URL is saved to no longer exists.
{
"error_summary": "invalid_async_job_id/...",
"error": {
".tag": "invalid_async_job_id"
}
}
{
"error_summary": "internal_error/...",
"error": {
".tag": "internal_error"
}
}
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}invalid_async_job_id Void The job ID is invalid.
internal_error Void Something went wrong with the job on Dropbox's end. You'll need to verify that the action you were taking succeeded, and if not, try again. This should happen very rarely.
Searches for files and folders.
Note: Recent changes may not immediately be reflected in search results due to a short delay in indexing.
https://api.dropboxapi.com/2/files/search
curl -X POST https://api.dropboxapi.com/2/files/search \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"path\": \"\",\"query\": \"prime numbers\",\"start\": 0,\"max_results\": 100,\"mode\": \"filename\"}"
{
"path": "",
"query": "prime numbers",
"start": 0,
"max_results": 100,
"mode": "filename"
}path String(pattern="(/(.|[\r\n])*)?|(ns:[0-9]+(/.*)?)") The path in the user's Dropbox to search. Should probably be a folder.
query String The string to search for. The search string is split on spaces into multiple tokens. For file name searching, the last token is used for prefix matching (i.e. "bat c" matches "bat cave" but not "batman car").
start UInt64 The starting index within the search results (used for paging). The default for this field is 0.
max_results UInt64 The maximum number of search results to return. The default for this field is 100.
mode SearchMode The search mode (filename, filename_and_content, or deleted_filename). Note that searching file content is only available for Dropbox Business accounts. The default for this union is filename.filename Void Search file and folder names.
filename_and_content Void Search file and folder names as well as file contents.
deleted_filename Void Search for deleted file and folder names.
{
"matches": [
{
"match_type": {
".tag": "content"
},
"metadata": {
".tag": "file",
"name": "Prime_Numbers.txt",
"id": "id:a4ayc_80_OEAAAAAAAAAXw",
"client_modified": "2015-05-12T15:50:38Z",
"server_modified": "2015-05-12T15:50:38Z",
"rev": "a1c10ce0dd78",
"size": 7212,
"path_lower": "/homework/math/prime_numbers.txt",
"path_display": "/Homework/math/Prime_Numbers.txt",
"sharing_info": {
"read_only": true,
"parent_shared_folder_id": "84528192421",
"modified_by": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc"
},
"property_groups": [
{
"template_id": "ptid:1a5n2i6d3OYEAAAAAAAAAYa",
"fields": [
{
"name": "Security Policy",
"value": "Confidential"
}
]
}
],
"has_explicit_shared_members": false
}
}
],
"more": false,
"start": 1
}matches List of (SearchMatch) A list (possibly empty) of matches for the query.match_type SearchMatchType The type of the match.filename Void This item was matched on its file or folder name.
content Void This item was matched based on its file contents.
both Void This item was matched based on both its contents and its file name.
metadata Metadata The metadata for the matched file or folder.file FileMetadata name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the file.
client_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") For files, this is the modification time set by the desktop client when the file was added to Dropbox. Since this time is not verified (the Dropbox server stores whatever the desktop client sends up), this should only be used for display purposes (such as sorting) and not, for example, to determine if a file has changed or not.
server_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") The last time the file was modified on Dropbox.
rev String(min_length=9, pattern="[0-9a-f]+") A unique identifier for the current revision of a file. This field is the same rev as elsewhere in the API and can be used to detect changes and avoid conflicts.
size UInt64 The file size in bytes.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
media_info MediaInfo? Additional information if the file is a photo or video. This field is optional.pending Void Indicate the photo/video is still under processing and metadata is not available yet.
metadata MediaMetadata The metadata for the photo/video.photo PhotoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
video VideoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
duration UInt64? The duration of the video in milliseconds. This field is optional.
sharing_info FileSharingInfo? Set if this file is contained in a shared folder. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+") ID of shared folder that holds this file.
modified_by String(min_length=40, max_length=40)? The last user who modified the file. This field will be null if the user's account has been deleted. This field is optional.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
has_explicit_shared_members Boolean? This flag will only be present if include_has_explicit_shared_members is true in list_folder or get_metadata. If this flag is present, it will be true if this file has any explicit shared members. This is different from sharing_info in that this could be true in the case where a file has explicit members but is not contained within a shared folder. This field is optional.
folder FolderMetadata name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the folder.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use sharing_info instead. This field is optional.
sharing_info FolderSharingInfo? Set if the folder is contained in a shared folder or is a shared folder mount point. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Set if the folder is contained by a shared folder. This field is optional.
shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? If this folder is a shared folder mount point, the ID of the shared folder mounted at this location. This field is optional.
traverse_only Boolean Specifies that the folder can only be traversed and the user can only see a limited subset of the contents of this folder because they don't have read access to this folder. They do, however, have access to some sub folder. The default for this field is False.
no_access Boolean Specifies that the folder cannot be accessed by the user. The default for this field is False.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
deleted DeletedMetadata name String The last component of the path (including extension). This never contains a slash.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
more Boolean Used for paging. If true, indicates there is another page of results available that can be fetched by calling search again.
start UInt64 Used for paging. Value to set the start argument to when calling search to fetch the next page of results.
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}path LookupError malformed_path String? This field is optional.
not_found Void There is nothing at the given path.
not_file Void We were expecting a file, but the given path refers to something that isn't a file.
not_folder Void We were expecting a folder, but the given path refers to something that isn't a folder.
restricted_content Void The file cannot be transferred because the content is restricted. For example, sometimes there are legal restrictions due to copyright claims.
invalid_path_root PathRootError The path root parameter provided is invalid.path_root String? The user's latest path root value. None if the user no longer has a path root. This field is optional.
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.
https://content.dropboxapi.com/2/files/upload
curl -X POST https://content.dropboxapi.com/2/files/upload \
--header "Authorization: Bearer " \
--header "Dropbox-API-Arg: {\"path\": \"/Homework/math/Matrices.txt\",\"mode\": \"add\",\"autorename\": true,\"mute\": false}" \
--header "Content-Type: application/octet-stream" \
--data-binary @local_file.txt
{
"path": "/Homework/math/Matrices.txt",
"mode": "add",
"autorename": true,
"mute": false
}
{
"path": "/Homework/math/Matrices.txt",
"mode": {
".tag": "update",
"update": "a1c10ce0dd78"
},
"autorename": false,
"mute": false
}path String(pattern="(/(.|[\r\n])*)|(ns:[0-9]+(/.*)?)") Path in the user's Dropbox to save the file.
mode WriteMode Selects what to do if the file already exists. The default for this union is add.add Void Do not overwrite an existing file if there is a conflict. The autorename strategy is to append a number to the file name. For example, "document.txt" might become "document (2).txt".
overwrite Void Always overwrite the existing file. The autorename strategy is the same as it is for add.
update String(min_length=9, pattern="[0-9a-f]+") Overwrite if the given "rev" matches the existing file's "rev". The autorename strategy is to append the string "conflicted copy" to the file name. For example, "document.txt" might become "document (conflicted copy).txt" or "document (Panda's conflicted copy).txt".
autorename Boolean If there's a conflict, as determined by mode, have the Dropbox server try to autorename the file to avoid conflict. The default for this field is False.
client_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The value to store as the client_modified timestamp. Dropbox automatically records the time at which the file was written to the Dropbox servers. It can also record an additional timestamp, provided by Dropbox desktop clients, mobile clients, and API apps of when the file was actually created or modified. This field is optional.
mute Boolean Normally, users are made aware of any file modifications in their Dropbox account via notifications in the client software. If true, this tells the clients that this modification shouldn't result in a user notification. The default for this field is False.
{
"name": "Prime_Numbers.txt",
"id": "id:a4ayc_80_OEAAAAAAAAAXw",
"client_modified": "2015-05-12T15:50:38Z",
"server_modified": "2015-05-12T15:50:38Z",
"rev": "a1c10ce0dd78",
"size": 7212,
"path_lower": "/homework/math/prime_numbers.txt",
"path_display": "/Homework/math/Prime_Numbers.txt",
"sharing_info": {
"read_only": true,
"parent_shared_folder_id": "84528192421",
"modified_by": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc"
},
"property_groups": [
{
"template_id": "ptid:1a5n2i6d3OYEAAAAAAAAAYa",
"fields": [
{
"name": "Security Policy",
"value": "Confidential"
}
]
}
],
"has_explicit_shared_members": false
}name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the file.
client_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") For files, this is the modification time set by the desktop client when the file was added to Dropbox. Since this time is not verified (the Dropbox server stores whatever the desktop client sends up), this should only be used for display purposes (such as sorting) and not, for example, to determine if a file has changed or not.
server_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") The last time the file was modified on Dropbox.
rev String(min_length=9, pattern="[0-9a-f]+") A unique identifier for the current revision of a file. This field is the same rev as elsewhere in the API and can be used to detect changes and avoid conflicts.
size UInt64 The file size in bytes.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
media_info MediaInfo? Additional information if the file is a photo or video. This field is optional.pending Void Indicate the photo/video is still under processing and metadata is not available yet.
metadata MediaMetadata The metadata for the photo/video.photo PhotoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
video VideoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
duration UInt64? The duration of the video in milliseconds. This field is optional.
sharing_info FileSharingInfo? Set if this file is contained in a shared folder. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+") ID of shared folder that holds this file.
modified_by String(min_length=40, max_length=40)? The last user who modified the file. This field will be null if the user's account has been deleted. This field is optional.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
has_explicit_shared_members Boolean? This flag will only be present if include_has_explicit_shared_members is true in list_folder or get_metadata. If this flag is present, it will be true if this file has any explicit shared members. This is different from sharing_info in that this could be true in the case where a file has explicit members but is not contained within a shared folder. This field is optional.
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}path UploadWriteFailed Unable to save the uploaded contents to a file.reason WriteError The reason why the file couldn't be saved.malformed_path String? This field is optional.
conflict WriteConflictError Couldn't write to the target path because there was something in the way.file Void There's a file in the way.
folder Void There's a folder in the way.
file_ancestor Void There's a file at an ancestor path, so we couldn't create the required parent folders.
no_write_permission Void The user doesn't have permissions to write to the target location.
insufficient_space Void The user doesn't have enough available space (bytes) to write more data.
disallowed_name Void Dropbox will not save the file or folder because of its name.
upload_session_id String The upload session ID; this may be used to retry the commit.
Append more data to an upload session.
A single request should not upload more than 150 MB of file contents.
https://content.dropboxapi.com/2/files/upload_session/append
curl -X POST https://content.dropboxapi.com/2/files/upload_session/append \
--header "Authorization: Bearer " \
--header "Dropbox-API-Arg: {\"session_id\": \"1234faaf0678bcde\",\"offset\": 0}" \
--header "Content-Type: application/octet-stream" \
--data-binary @local_file.txt
{
"session_id": "1234faaf0678bcde",
"offset": 0
}session_id String The upload session ID (returned by upload_session/start).
offset UInt64 The amount of data that has been uploaded so far. We use this to make sure upload data isn't lost or duplicated in the event of a network error.
No return values.
{
"error_summary": "not_found/...",
"error": {
".tag": "not_found"
}
}
{
"error_summary": "closed/...",
"error": {
".tag": "closed"
}
}
{
"error_summary": "not_closed/...",
"error": {
".tag": "not_closed"
}
}
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}not_found Void The upload session id was not found.
incorrect_offset UploadSessionOffsetError The specified offset was incorrect. See the value for the correct offset. This error may occur when a previous request was received and processed successfully but the client did not receive the response, e.g. due to a network error.correct_offset UInt64 The offset up to which data has been collected.
closed Void You are attempting to append data to an upload session that has alread been closed (i.e. committed).
not_closed Void The session must be closed before calling upload_session/finish_batch.
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 of file contents.
https://content.dropboxapi.com/2/files/upload_session/append_v2
curl -X POST https://content.dropboxapi.com/2/files/upload_session/append_v2 \
--header "Authorization: Bearer " \
--header "Dropbox-API-Arg: {\"cursor\": {\"session_id\": \"1234faaf0678bcde\",\"offset\": 0},\"close\": false}" \
--header "Content-Type: application/octet-stream" \
--data-binary @local_file.txt
{
"cursor": {
"session_id": "1234faaf0678bcde",
"offset": 0
},
"close": false
}cursor UploadSessionCursor Contains the upload session ID and the offset.session_id String The upload session ID (returned by upload_session/start).
offset UInt64 The amount of data that has been uploaded so far. We use this to make sure upload data isn't lost or duplicated in the event of a network error.
close Boolean If true, the current session will be closed, at which point you won't be able to call upload_session/append_v2 anymore with the current session. The default for this field is False.
No return values.
{
"error_summary": "not_found/...",
"error": {
".tag": "not_found"
}
}
{
"error_summary": "closed/...",
"error": {
".tag": "closed"
}
}
{
"error_summary": "not_closed/...",
"error": {
".tag": "not_closed"
}
}
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}not_found Void The upload session id was not found.
incorrect_offset UploadSessionOffsetError The specified offset was incorrect. See the value for the correct offset. This error may occur when a previous request was received and processed successfully but the client did not receive the response, e.g. due to a network error.correct_offset UInt64 The offset up to which data has been collected.
closed Void You are attempting to append data to an upload session that has alread been closed (i.e. committed).
not_closed Void The session must be closed before calling upload_session/finish_batch.
Finish an upload session and save the uploaded data to the given file path.
A single request should not upload more than 150 MB of file contents.
https://content.dropboxapi.com/2/files/upload_session/finish
curl -X POST https://content.dropboxapi.com/2/files/upload_session/finish \
--header "Authorization: Bearer " \
--header "Dropbox-API-Arg: {\"cursor\": {\"session_id\": \"1234faaf0678bcde\",\"offset\": 0},\"commit\": {\"path\": \"/Homework/math/Matrices.txt\",\"mode\": \"add\",\"autorename\": true,\"mute\": false}}" \
--header "Content-Type: application/octet-stream" \
--data-binary @local_file.txt
{
"cursor": {
"session_id": "1234faaf0678bcde",
"offset": 0
},
"commit": {
"path": "/Homework/math/Matrices.txt",
"mode": "add",
"autorename": true,
"mute": false
}
}
{
"cursor": {
"session_id": "1234faaf0678bcde",
"offset": 0
},
"commit": {
"path": "/Homework/math/Matrices.txt",
"mode": {
".tag": "update",
"update": "a1c10ce0dd78"
},
"autorename": false,
"mute": false
}
}cursor UploadSessionCursor Contains the upload session ID and the offset.session_id String The upload session ID (returned by upload_session/start).
offset UInt64 The amount of data that has been uploaded so far. We use this to make sure upload data isn't lost or duplicated in the event of a network error.
commit CommitInfo Contains the path and other optional modifiers for the commit.path String(pattern="(/(.|[\r\n])*)|(ns:[0-9]+(/.*)?)") Path in the user's Dropbox to save the file.
mode WriteMode Selects what to do if the file already exists. The default for this union is add.add Void Do not overwrite an existing file if there is a conflict. The autorename strategy is to append a number to the file name. For example, "document.txt" might become "document (2).txt".
overwrite Void Always overwrite the existing file. The autorename strategy is the same as it is for add.
update String(min_length=9, pattern="[0-9a-f]+") Overwrite if the given "rev" matches the existing file's "rev". The autorename strategy is to append the string "conflicted copy" to the file name. For example, "document.txt" might become "document (conflicted copy).txt" or "document (Panda's conflicted copy).txt".
autorename Boolean If there's a conflict, as determined by mode, have the Dropbox server try to autorename the file to avoid conflict. The default for this field is False.
client_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The value to store as the client_modified timestamp. Dropbox automatically records the time at which the file was written to the Dropbox servers. It can also record an additional timestamp, provided by Dropbox desktop clients, mobile clients, and API apps of when the file was actually created or modified. This field is optional.
mute Boolean Normally, users are made aware of any file modifications in their Dropbox account via notifications in the client software. If true, this tells the clients that this modification shouldn't result in a user notification. The default for this field is False.
{
"name": "Prime_Numbers.txt",
"id": "id:a4ayc_80_OEAAAAAAAAAXw",
"client_modified": "2015-05-12T15:50:38Z",
"server_modified": "2015-05-12T15:50:38Z",
"rev": "a1c10ce0dd78",
"size": 7212,
"path_lower": "/homework/math/prime_numbers.txt",
"path_display": "/Homework/math/Prime_Numbers.txt",
"sharing_info": {
"read_only": true,
"parent_shared_folder_id": "84528192421",
"modified_by": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc"
},
"property_groups": [
{
"template_id": "ptid:1a5n2i6d3OYEAAAAAAAAAYa",
"fields": [
{
"name": "Security Policy",
"value": "Confidential"
}
]
}
],
"has_explicit_shared_members": false
}name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the file.
client_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") For files, this is the modification time set by the desktop client when the file was added to Dropbox. Since this time is not verified (the Dropbox server stores whatever the desktop client sends up), this should only be used for display purposes (such as sorting) and not, for example, to determine if a file has changed or not.
server_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") The last time the file was modified on Dropbox.
rev String(min_length=9, pattern="[0-9a-f]+") A unique identifier for the current revision of a file. This field is the same rev as elsewhere in the API and can be used to detect changes and avoid conflicts.
size UInt64 The file size in bytes.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
media_info MediaInfo? Additional information if the file is a photo or video. This field is optional.pending Void Indicate the photo/video is still under processing and metadata is not available yet.
metadata MediaMetadata The metadata for the photo/video.photo PhotoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
video VideoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
duration UInt64? The duration of the video in milliseconds. This field is optional.
sharing_info FileSharingInfo? Set if this file is contained in a shared folder. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+") ID of shared folder that holds this file.
modified_by String(min_length=40, max_length=40)? The last user who modified the file. This field will be null if the user's account has been deleted. This field is optional.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
has_explicit_shared_members Boolean? This flag will only be present if include_has_explicit_shared_members is true in list_folder or get_metadata. If this flag is present, it will be true if this file has any explicit shared members. This is different from sharing_info in that this could be true in the case where a file has explicit members but is not contained within a shared folder. This field is optional.
{
"error_summary": "too_many_shared_folder_targets/...",
"error": {
".tag": "too_many_shared_folder_targets"
}
}
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}lookup_failed UploadSessionLookupError The session arguments are incorrect; the value explains the reason.not_found Void The upload session id was not found.
incorrect_offset UploadSessionOffsetError The specified offset was incorrect. See the value for the correct offset. This error may occur when a previous request was received and processed successfully but the client did not receive the response, e.g. due to a network error.correct_offset UInt64 The offset up to which data has been collected.
closed Void You are attempting to append data to an upload session that has alread been closed (i.e. committed).
not_closed Void The session must be closed before calling upload_session/finish_batch.
path WriteError Unable to save the uploaded contents to a file.malformed_path String? This field is optional.
conflict WriteConflictError Couldn't write to the target path because there was something in the way.file Void There's a file in the way.
folder Void There's a folder in the way.
file_ancestor Void There's a file at an ancestor path, so we couldn't create the required parent folders.
no_write_permission Void The user doesn't have permissions to write to the target location.
insufficient_space Void The user doesn't have enough available space (bytes) to write more data.
disallowed_name Void Dropbox will not save the file or folder because of its name.
too_many_shared_folder_targets Void The batch request commits files into too many different shared folders. Please limit your batch request to files contained in a single shared folder.
This route helps you commit many files at once into a user's Dropbox. Use upload_session/start and upload_session/append_v2 to upload file contents. We recommend uploading many files in parallel to increase throughput. Once the file contents have been uploaded, rather than calling upload_session/finish, use this route to finish all your upload sessions in a single request.
UploadSessionStartArg.close or UploadSessionAppendArg.close needs to be true for the last upload_session/start or upload_session/append_v2 call.
This route will return a job_id immediately and do the async commit job in background. Use upload_session/finish_batch/check to check the job status.
For the same account, this route should be executed serially. That means you should not start the next job before current job finishes. We allow up to 1000 entries in a single request.
https://api.dropboxapi.com/2/files/upload_session/finish_batch
curl -X POST https://api.dropboxapi.com/2/files/upload_session/finish_batch \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"entries\": [{\"cursor\": {\"session_id\": \"1234faaf0678bcde\",\"offset\": 0},\"commit\": {\"path\": \"/Homework/math/Matrices.txt\",\"mode\": {\".tag\": \"add\"},\"autorename\": true,\"mute\": false}}]}"
{
"entries": [
{
"cursor": {
"session_id": "1234faaf0678bcde",
"offset": 0
},
"commit": {
"path": "/Homework/math/Matrices.txt",
"mode": {
".tag": "add"
},
"autorename": true,
"mute": false
}
}
]
}entries List of (UploadSessionFinishArg, max_items=1000) Commit information for each file in the batch.cursor UploadSessionCursor Contains the upload session ID and the offset.session_id String The upload session ID (returned by upload_session/start).
offset UInt64 The amount of data that has been uploaded so far. We use this to make sure upload data isn't lost or duplicated in the event of a network error.
commit CommitInfo Contains the path and other optional modifiers for the commit.path String(pattern="(/(.|[\r\n])*)|(ns:[0-9]+(/.*)?)") Path in the user's Dropbox to save the file.
mode WriteMode Selects what to do if the file already exists. The default for this union is add.add Void Do not overwrite an existing file if there is a conflict. The autorename strategy is to append a number to the file name. For example, "document.txt" might become "document (2).txt".
overwrite Void Always overwrite the existing file. The autorename strategy is the same as it is for add.
update String(min_length=9, pattern="[0-9a-f]+") Overwrite if the given "rev" matches the existing file's "rev". The autorename strategy is to append the string "conflicted copy" to the file name. For example, "document.txt" might become "document (conflicted copy).txt" or "document (Panda's conflicted copy).txt".
autorename Boolean If there's a conflict, as determined by mode, have the Dropbox server try to autorename the file to avoid conflict. The default for this field is False.
client_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The value to store as the client_modified timestamp. Dropbox automatically records the time at which the file was written to the Dropbox servers. It can also record an additional timestamp, provided by Dropbox desktop clients, mobile clients, and API apps of when the file was actually created or modified. This field is optional.
mute Boolean Normally, users are made aware of any file modifications in their Dropbox account via notifications in the client software. If true, this tells the clients that this modification shouldn't result in a user notification. The default for this field is False.
{
".tag": "complete",
"entries": [
{
".tag": "success",
"name": "Prime_Numbers.txt",
"id": "id:a4ayc_80_OEAAAAAAAAAXw",
"client_modified": "2015-05-12T15:50:38Z",
"server_modified": "2015-05-12T15:50:38Z",
"rev": "a1c10ce0dd78",
"size": 7212,
"path_lower": "/homework/math/prime_numbers.txt",
"path_display": "/Homework/math/Prime_Numbers.txt",
"sharing_info": {
"read_only": true,
"parent_shared_folder_id": "84528192421",
"modified_by": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc"
},
"property_groups": [
{
"template_id": "ptid:1a5n2i6d3OYEAAAAAAAAAYa",
"fields": [
{
"name": "Security Policy",
"value": "Confidential"
}
]
}
],
"has_explicit_shared_members": false
}
]
}
{
".tag": "async_job_id",
"async_job_id": "34g93hh34h04y384084"
}
{
".tag": "other"
}async_job_id String(min_length=1) This response indicates that the processing is asynchronous. The string is an id that can be used to obtain the status of the asynchronous job.
complete UploadSessionFinishBatchResult entries List of (UploadSessionFinishBatchResultEntry) Commit result for each file in the batch.success FileMetadata name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the file.
client_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") For files, this is the modification time set by the desktop client when the file was added to Dropbox. Since this time is not verified (the Dropbox server stores whatever the desktop client sends up), this should only be used for display purposes (such as sorting) and not, for example, to determine if a file has changed or not.
server_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") The last time the file was modified on Dropbox.
rev String(min_length=9, pattern="[0-9a-f]+") A unique identifier for the current revision of a file. This field is the same rev as elsewhere in the API and can be used to detect changes and avoid conflicts.
size UInt64 The file size in bytes.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
media_info MediaInfo? Additional information if the file is a photo or video. This field is optional.pending Void Indicate the photo/video is still under processing and metadata is not available yet.
metadata MediaMetadata The metadata for the photo/video.photo PhotoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
video VideoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
duration UInt64? The duration of the video in milliseconds. This field is optional.
sharing_info FileSharingInfo? Set if this file is contained in a shared folder. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+") ID of shared folder that holds this file.
modified_by String(min_length=40, max_length=40)? The last user who modified the file. This field will be null if the user's account has been deleted. This field is optional.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
has_explicit_shared_members Boolean? This flag will only be present if include_has_explicit_shared_members is true in list_folder or get_metadata. If this flag is present, it will be true if this file has any explicit shared members. This is different from sharing_info in that this could be true in the case where a file has explicit members but is not contained within a shared folder. This field is optional.
failure UploadSessionFinishError lookup_failed UploadSessionLookupError The session arguments are incorrect; the value explains the reason.not_found Void The upload session id was not found.
incorrect_offset UploadSessionOffsetError The specified offset was incorrect. See the value for the correct offset. This error may occur when a previous request was received and processed successfully but the client did not receive the response, e.g. due to a network error.correct_offset UInt64 The offset up to which data has been collected.
closed Void You are attempting to append data to an upload session that has alread been closed (i.e. committed).
not_closed Void The session must be closed before calling upload_session/finish_batch.
path WriteError Unable to save the uploaded contents to a file.malformed_path String? This field is optional.
conflict WriteConflictError Couldn't write to the target path because there was something in the way.file Void There's a file in the way.
folder Void There's a folder in the way.
file_ancestor Void There's a file at an ancestor path, so we couldn't create the required parent folders.
no_write_permission Void The user doesn't have permissions to write to the target location.
insufficient_space Void The user doesn't have enough available space (bytes) to write more data.
disallowed_name Void Dropbox will not save the file or folder because of its name.
too_many_shared_folder_targets Void The batch request commits files into too many different shared folders. Please limit your batch request to files contained in a single shared folder.
No errors.
Returns the status of an asynchronous job for upload_session/finish_batch. If success, it returns list of result for each entry.
https://api.dropboxapi.com/2/files/upload_session/finish_batch/check
curl -X POST https://api.dropboxapi.com/2/files/upload_session/finish_batch/check \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"async_job_id\": \"34g93hh34h04y384084\"}"
{
"async_job_id": "34g93hh34h04y384084"
}async_job_id String(min_length=1) Id of the asynchronous job. This is the value of a response returned from the method that launched the job.
{
".tag": "complete",
"entries": [
{
".tag": "success",
"name": "Prime_Numbers.txt",
"id": "id:a4ayc_80_OEAAAAAAAAAXw",
"client_modified": "2015-05-12T15:50:38Z",
"server_modified": "2015-05-12T15:50:38Z",
"rev": "a1c10ce0dd78",
"size": 7212,
"path_lower": "/homework/math/prime_numbers.txt",
"path_display": "/Homework/math/Prime_Numbers.txt",
"sharing_info": {
"read_only": true,
"parent_shared_folder_id": "84528192421",
"modified_by": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc"
},
"property_groups": [
{
"template_id": "ptid:1a5n2i6d3OYEAAAAAAAAAYa",
"fields": [
{
"name": "Security Policy",
"value": "Confidential"
}
]
}
],
"has_explicit_shared_members": false
}
]
}
{
".tag": "in_progress"
}in_progress Void The asynchronous job is still in progress.
complete UploadSessionFinishBatchResult The upload_session/finish_batch has finished.entries List of (UploadSessionFinishBatchResultEntry) Commit result for each file in the batch.success FileMetadata name String The last component of the path (including extension). This never contains a slash.
id String(min_length=1) A unique identifier for the file.
client_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") For files, this is the modification time set by the desktop client when the file was added to Dropbox. Since this time is not verified (the Dropbox server stores whatever the desktop client sends up), this should only be used for display purposes (such as sorting) and not, for example, to determine if a file has changed or not.
server_modified Timestamp(format="%Y-%m-%dT%H:%M:%SZ") The last time the file was modified on Dropbox.
rev String(min_length=9, pattern="[0-9a-f]+") A unique identifier for the current revision of a file. This field is the same rev as elsewhere in the API and can be used to detect changes and avoid conflicts.
size UInt64 The file size in bytes.
path_lower String? The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted. This field is optional.
path_display String? The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder/continue. This field will be null if the file or folder is not mounted. This field is optional.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+")? Deprecated. Please use FileSharingInfo.parent_shared_folder_id or FolderSharingInfo.parent_shared_folder_id instead. This field is optional.
media_info MediaInfo? Additional information if the file is a photo or video. This field is optional.pending Void Indicate the photo/video is still under processing and metadata is not available yet.
metadata MediaMetadata The metadata for the photo/video.photo PhotoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
video VideoMetadata dimensions Dimensions? Dimension of the photo/video. This field is optional.height UInt64 Height of the photo/video.
width UInt64 Width of the photo/video.
location GpsCoordinates? The GPS coordinate of the photo/video. This field is optional.latitude Float64 Latitude of the GPS coordinates.
longitude Float64 Longitude of the GPS coordinates.
time_taken Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? The timestamp when the photo/video is taken. This field is optional.
duration UInt64? The duration of the video in milliseconds. This field is optional.
sharing_info FileSharingInfo? Set if this file is contained in a shared folder. This field is optional.read_only Boolean True if the file or folder is inside a read-only shared folder.
parent_shared_folder_id String(pattern="[-_0-9a-zA-Z:]+") ID of shared folder that holds this file.
modified_by String(min_length=40, max_length=40)? The last user who modified the file. This field will be null if the user's account has been deleted. This field is optional.
property_groups List of (PropertyGroup)? Additional information if the file has custom properties with the property template specified. This field is optional.template_id String(min_length=1, pattern="(/|ptid:).*") A unique identifier for a property template type.
fields List of (PropertyField) This is a list of custom properties associated with a file. There can be up to 32 properties for a template.name String This is the name or key of a custom property in a property template. File property names can be up to 256 bytes.
value String Value of a custom property attached to a file. Values can be up to 1024 bytes.
has_explicit_shared_members Boolean? This flag will only be present if include_has_explicit_shared_members is true in list_folder or get_metadata. If this flag is present, it will be true if this file has any explicit shared members. This is different from sharing_info in that this could be true in the case where a file has explicit members but is not contained within a shared folder. This field is optional.
failure UploadSessionFinishError lookup_failed UploadSessionLookupError The session arguments are incorrect; the value explains the reason.not_found Void The upload session id was not found.
incorrect_offset UploadSessionOffsetError The specified offset was incorrect. See the value for the correct offset. This error may occur when a previous request was received and processed successfully but the client did not receive the response, e.g. due to a network error.correct_offset UInt64 The offset up to which data has been collected.
closed Void You are attempting to append data to an upload session that has alread been closed (i.e. committed).
not_closed Void The session must be closed before calling upload_session/finish_batch.
path WriteError Unable to save the uploaded contents to a file.malformed_path String? This field is optional.
conflict WriteConflictError Couldn't write to the target path because there was something in the way.file Void There's a file in the way.
folder Void There's a folder in the way.
file_ancestor Void There's a file at an ancestor path, so we couldn't create the required parent folders.
no_write_permission Void The user doesn't have permissions to write to the target location.
insufficient_space Void The user doesn't have enough available space (bytes) to write more data.
disallowed_name Void Dropbox will not save the file or folder because of its name.
too_many_shared_folder_targets Void The batch request commits files into too many different shared folders. Please limit your batch request to files contained in a single shared folder.
{
"error_summary": "invalid_async_job_id/...",
"error": {
".tag": "invalid_async_job_id"
}
}
{
"error_summary": "internal_error/...",
"error": {
".tag": "internal_error"
}
}
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}invalid_async_job_id Void The job ID is invalid.
internal_error Void Something went wrong with the job on Dropbox's end. You'll need to verify that the action you were taking succeeded, and if not, try again. This should happen very rarely.
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_v2 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 of file contents.
https://content.dropboxapi.com/2/files/upload_session/start
curl -X POST https://content.dropboxapi.com/2/files/upload_session/start \
--header "Authorization: Bearer " \
--header "Dropbox-API-Arg: {\"close\": false}" \
--header "Content-Type: application/octet-stream" \
--data-binary @local_file.txt
{
"close": false
}close Boolean If true, the current session will be closed, at which point you won't be able to call upload_session/append_v2 anymore with the current session. The default for this field is False.
{
"session_id": "1234faaf0678bcde"
}session_id String A unique identifier for the upload session. Pass this to upload_session/append_v2 and upload_session/finish.
No errors.
This namespace contains endpoints and data types for managing docs and folders in Dropbox Paper.
Marks the given Paper doc as deleted. This operation is non-destructive and the doc can be revived by the owner.
Note: This action can be performed only by the doc owner.
https://api.dropboxapi.com/2/paper/docs/archive
curl -X POST https://api.dropboxapi.com/2/paper/docs/archive \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"doc_id\": \"uaSvRuxvnkFa12PTkBv5q\"}"
{
"doc_id": "uaSvRuxvnkFa12PTkBv5q"
}doc_id String
No return values.
{
"error_summary": "insufficient_permissions/...",
"error": {
".tag": "insufficient_permissions"
}
}
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}
{
"error_summary": "doc_not_found/...",
"error": {
".tag": "doc_not_found"
}
}insufficient_permissions Void Your account does not have permissions to perform this action.
doc_not_found Void The required doc was not found.
Exports and downloads Paper doc either as HTML or markdown.
https://api.dropboxapi.com/2/paper/docs/download
curl -X POST https://api.dropboxapi.com/2/paper/docs/download \
--header "Authorization: Bearer " \
--header "Dropbox-API-Arg: {\"doc_id\": \"uaSvRuxvnkFa12PTkBv5q\",\"export_format\": \"markdown\"}"
{
"doc_id": "uaSvRuxvnkFa12PTkBv5q",
"export_format": "markdown"
}doc_id String
export_format ExportFormat html Void The HTML export format.
markdown Void The markdown export format.
{
"owner": "james@example.com",
"title": "Week one retention",
"revision": 456736745,
"mime_type": "text/x-markdown"
}owner String The Paper doc owner's email.
title String The Paper doc title.
revision Int64 The Paper doc revision. Simply an ever increasing number.
mime_type String MIME type of the export. This corresponds to ExportFormat specified in the request.
{
"error_summary": "insufficient_permissions/...",
"error": {
".tag": "insufficient_permissions"
}
}
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}
{
"error_summary": "doc_not_found/...",
"error": {
".tag": "doc_not_found"
}
}insufficient_permissions Void Your account does not have permissions to perform this action.
doc_not_found Void The required doc was not found.
Lists the users who are explicitly invited to the Paper folder in which the Paper doc is contained. For private folders all users (including owner) shared on the folder are listed and for team folders all non-team users shared on the folder are returned.
https://api.dropboxapi.com/2/paper/docs/folder_users/list
curl -X POST https://api.dropboxapi.com/2/paper/docs/folder_users/list \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"doc_id\": \"uaSvRuxvnkFa12PTkBv5q\",\"limit\": 100}"
{
"doc_id": "uaSvRuxvnkFa12PTkBv5q",
"limit": 100
}doc_id String
limit Int32 Size limit per batch. The maximum number of users that can be retrieved per batch is 1000. Higher value results in invalid arguments error. The default for this field is 1000.
{
"invitees": [
{
".tag": "email",
"email": "jessica@example.com"
}
],
"users": [
{
"account_id": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc",
"same_team": true,
"team_member_id": "dbmid:abcd1234"
}
],
"cursor": {
"value": "zHZvTPBnXilGgm1AmDgVyZ10zf7qb0qznd5sAVQbbIvoteSnWLjUdLU7aR25hb",
"expiration": "2016-08-07T14:56:15Z"
},
"has_more": false
}invitees List of (InviteeInfo) List of email addresses that are invited on the Paper folder.email String(max_length=255, pattern="^['&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*.[A-Za-z]{2,15}$") E-mail address of invited user.
users List of (UserInfo) List of users that are invited on the Paper folder.account_id String(min_length=40, max_length=40) The account ID of the user.
same_team Boolean If the user is in the same team as current user.
team_member_id String? The team member ID of the shared folder member. Only present if same_team is true. This field is optional.
cursor Cursor Pass the cursor into docs/folder_users/list/continue to paginate through all users. The cursor preserves all properties as specified in the original call to docs/folder_users/list.value String The actual cursor value.
expiration Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? Expiration time of value.has_more Boolean Will be set to True if a subsequent call with the provided cursor to docs/folder_users/list/continue returns immediately with some results. If set to False please allow some delay before making another call to docs/folder_users/list/continue.
{
"error_summary": "insufficient_permissions/...",
"error": {
".tag": "insufficient_permissions"
}
}
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}
{
"error_summary": "doc_not_found/...",
"error": {
".tag": "doc_not_found"
}
}insufficient_permissions Void Your account does not have permissions to perform this action.
doc_not_found Void The required doc was not found.
Once a cursor has been retrieved from docs/folder_users/list, use this to paginate through all users on the Paper folder.
https://api.dropboxapi.com/2/paper/docs/folder_users/list/continue
curl -X POST https://api.dropboxapi.com/2/paper/docs/folder_users/list/continue \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"doc_id\": \"uaSvRuxvnkFa12PTkBv5q\",\"cursor\": \"U60b6BxT43ySd5sAVQbbIvoteSnWLjUdLU7aR25hbt3ySd5sAVQbbIvoteSnWLjUd\"}"
{
"doc_id": "uaSvRuxvnkFa12PTkBv5q",
"cursor": "U60b6BxT43ySd5sAVQbbIvoteSnWLjUdLU7aR25hbt3ySd5sAVQbbIvoteSnWLjUd"
}doc_id String
cursor String The cursor obtained from docs/folder_users/list or docs/folder_users/list/continue. Allows for pagination.
{
"invitees": [
{
".tag": "email",
"email": "jessica@example.com"
}
],
"users": [
{
"account_id": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc",
"same_team": true,
"team_member_id": "dbmid:abcd1234"
}
],
"cursor": {
"value": "zHZvTPBnXilGgm1AmDgVyZ10zf7qb0qznd5sAVQbbIvoteSnWLjUdLU7aR25hb",
"expiration": "2016-08-07T14:56:15Z"
},
"has_more": false
}invitees List of (InviteeInfo) List of email addresses that are invited on the Paper folder.email String(max_length=255, pattern="^['&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*.[A-Za-z]{2,15}$") E-mail address of invited user.
users List of (UserInfo) List of users that are invited on the Paper folder.account_id String(min_length=40, max_length=40) The account ID of the user.
same_team Boolean If the user is in the same team as current user.
team_member_id String? The team member ID of the shared folder member. Only present if same_team is true. This field is optional.
cursor Cursor Pass the cursor into docs/folder_users/list/continue to paginate through all users. The cursor preserves all properties as specified in the original call to docs/folder_users/list.value String The actual cursor value.
expiration Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? Expiration time of value.has_more Boolean Will be set to True if a subsequent call with the provided cursor to docs/folder_users/list/continue returns immediately with some results. If set to False please allow some delay before making another call to docs/folder_users/list/continue.
{
"error_summary": "insufficient_permissions/...",
"error": {
".tag": "insufficient_permissions"
}
}
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}
{
"error_summary": "doc_not_found/...",
"error": {
".tag": "doc_not_found"
}
}insufficient_permissions Void Your account does not have permissions to perform this action.
doc_not_found Void The required doc was not found.
cursor_error PaperApiCursorError expired_cursor Void The provided cursor is expired.
invalid_cursor Void The provided cursor is invalid.
wrong_user_in_cursor Void The provided cursor contains invalid user.
reset Void Indicates that the cursor has been invalidated. Call the corresponding non-continue endpoint to obtain a new cursor.
Retrieves folder information for the given Paper doc. This includes:
- folder sharing policy; permissions for subfolders are set by the top-level folder.
- full 'filepath', i.e. the list of folders (both folderId and folderName) from the root folder to the folder directly containing the Paper doc.
Note: If the Paper doc is not in any folder (aka unfiled) the response will be empty.
https://api.dropboxapi.com/2/paper/docs/get_folder_info
curl -X POST https://api.dropboxapi.com/2/paper/docs/get_folder_info \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"doc_id\": \"uaSvRuxvnkFa12PTkBv5q\"}"
{
"doc_id": "uaSvRuxvnkFa12PTkBv5q"
}doc_id String
{
"folder_sharing_policy_type": {
".tag": "team"
},
"folders": [
{
"id": "e.gGYT6HSafpMej9bUv306oGm60vrHiCHgEFnzziioPGCvHf",
"name": "Design docs"
}
]
}folder_sharing_policy_type FolderSharingPolicyType? The sharing policy of the folder containing the Paper doc. This field is optional.team Void Everyone in your team and anyone directly invited can access this folder.
invite_only Void Only people directly invited can access this folder.
folders List of (Folder)? The folder path. If present the first folder is the root folder. This field is optional.id String Paper folder id. This id uniquely identifies the folder.
name String Paper folder name.
{
"error_summary": "insufficient_permissions/...",
"error": {
".tag": "insufficient_permissions"
}
}
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}
{
"error_summary": "doc_not_found/...",
"error": {
".tag": "doc_not_found"
}
}insufficient_permissions Void Your account does not have permissions to perform this action.
doc_not_found Void The required doc was not found.
Return the list of all Paper docs according to the argument specifications. To iterate over through the full pagination, pass the cursor to docs/list/continue.
https://api.dropboxapi.com/2/paper/docs/list
curl -X POST https://api.dropboxapi.com/2/paper/docs/list \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"filter_by\": \"docs_created\",\"sort_by\": \"modified\",\"sort_order\": \"descending\",\"limit\": 100}"
{
"filter_by": "docs_created",
"sort_by": "modified",
"sort_order": "descending",
"limit": 100
}filter_by ListPaperDocsFilterBy Allows user to specify how the Paper docs should be filtered. The default for this union is docs_accessed.docs_accessed Void Fetches all Paper doc ids that the user has ever accessed.
docs_created Void Fetches only the Paper doc ids that the user has created.
sort_by ListPaperDocsSortBy Allows user to specify how the Paper docs should be sorted. The default for this union is accessed.accessed Void Sorts the Paper docs by the time they were last accessed.
modified Void Sorts the Paper docs by the time they were last modified.
created Void Sorts the Paper docs by the creation time.
sort_order ListPaperDocsSortOrder Allows user to specify the sort order of the result. The default for this union is ascending.ascending Void Sorts the search result in ascending order.
descending Void Sorts the search result in descending order.
limit Int32 Size limit per batch. The maximum number of docs that can be retrieved per batch is 1000. Higher value results in invalid arguments error. The default for this field is 1000.
{
"doc_ids": [
"zO1E7coc54sE8IuMdUoxz",
"mm1AmDgVyZ10zf7qb0qzn",
"dByYHZvTPBnXilGgyc5mm"
],
"cursor": {
"value": "zHZvTPBnXilGgm1AmDgVyZ10zf7qb0qznd5sAVQbbIvoteSnWLjUdLU7aR25hb",
"expiration": "2016-08-07T14:56:15Z"
},
"has_more": true
}doc_ids List of (String) The list of Paper doc ids that can be used to access the given Paper docs or supplied to other API methods. The list is sorted in the order specified by the initial call to docs/list.
cursor Cursor Pass the cursor into docs/list/continue to paginate through all files. The cursor preserves all properties as specified in the original call to docs/list.value String The actual cursor value.
expiration Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? Expiration time of value.has_more Boolean Will be set to True if a subsequent call with the provided cursor to docs/list/continue returns immediately with some results. If set to False please allow some delay before making another call to docs/list/continue.
No errors.
Once a cursor has been retrieved from docs/list, use this to paginate through all Paper doc.
https://api.dropboxapi.com/2/paper/docs/list/continue
curl -X POST https://api.dropboxapi.com/2/paper/docs/list/continue \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"cursor\": \"U60b6BxT43ySd5sAVQbbIvoteSnWLjUdLU7aR25hbt3ySd5sAVQbbIvoteSnWLjUd\"}"
{
"cursor": "U60b6BxT43ySd5sAVQbbIvoteSnWLjUdLU7aR25hbt3ySd5sAVQbbIvoteSnWLjUd"
}{
"doc_ids": [
"zO1E7coc54sE8IuMdUoxz",
"mm1AmDgVyZ10zf7qb0qzn",
"dByYHZvTPBnXilGgyc5mm"
],
"cursor": {
"value": "zHZvTPBnXilGgm1AmDgVyZ10zf7qb0qznd5sAVQbbIvoteSnWLjUdLU7aR25hb",
"expiration": "2016-08-07T14:56:15Z"
},
"has_more": true
}doc_ids List of (String) The list of Paper doc ids that can be used to access the given Paper docs or supplied to other API methods. The list is sorted in the order specified by the initial call to docs/list.
cursor Cursor Pass the cursor into docs/list/continue to paginate through all files. The cursor preserves all properties as specified in the original call to docs/list.value String The actual cursor value.
expiration Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? Expiration time of value.has_more Boolean Will be set to True if a subsequent call with the provided cursor to docs/list/continue returns immediately with some results. If set to False please allow some delay before making another call to docs/list/continue.
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}cursor_error PaperApiCursorError expired_cursor Void The provided cursor is expired.
invalid_cursor Void The provided cursor is invalid.
wrong_user_in_cursor Void The provided cursor contains invalid user.
reset Void Indicates that the cursor has been invalidated. Call the corresponding non-continue endpoint to obtain a new cursor.
Permanently deletes the given Paper doc. This operation is final as the doc cannot be recovered.
Note: This action can be performed only by the doc owner.
https://api.dropboxapi.com/2/paper/docs/permanently_delete
curl -X POST https://api.dropboxapi.com/2/paper/docs/permanently_delete \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"doc_id\": \"uaSvRuxvnkFa12PTkBv5q\"}"
{
"doc_id": "uaSvRuxvnkFa12PTkBv5q"
}doc_id String
No return values.
{
"error_summary": "insufficient_permissions/...",
"error": {
".tag": "insufficient_permissions"
}
}
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}
{
"error_summary": "doc_not_found/...",
"error": {
".tag": "doc_not_found"
}
}insufficient_permissions Void Your account does not have permissions to perform this action.
doc_not_found Void The required doc was not found.
Gets the default sharing policy for the given Paper doc.
https://api.dropboxapi.com/2/paper/docs/sharing_policy/get
curl -X POST https://api.dropboxapi.com/2/paper/docs/sharing_policy/get \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"doc_id\": \"uaSvRuxvnkFa12PTkBv5q\"}"
{
"doc_id": "uaSvRuxvnkFa12PTkBv5q"
}doc_id String
{
"public_sharing_policy": {
".tag": "people_with_link_can_edit"
},
"team_sharing_policy": {
".tag": "people_with_link_can_edit"
}
}public_sharing_policy SharingPublicPolicyType? This value applies to the non-team members. This field is optional.people_with_link_can_edit Void Users who have a link to this doc can edit it.
people_with_link_can_view_and_comment Void Users who have a link to this doc can view and comment on it.
invite_only Void Users must be explicitly invited to this doc.
disabled Void Value used to indicate that doc sharing is enabled only within team.
team_sharing_policy SharingTeamPolicyType? This value applies to the team members only. The value is null for all personal accounts. This field is optional.people_with_link_can_edit Void Users who have a link to this doc can edit it.
people_with_link_can_view_and_comment Void Users who have a link to this doc can view and comment on it.
invite_only Void Users must be explicitly invited to this doc.
{
"error_summary": "insufficient_permissions/...",
"error": {
".tag": "insufficient_permissions"
}
}
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}
{
"error_summary": "doc_not_found/...",
"error": {
".tag": "doc_not_found"
}
}insufficient_permissions Void Your account does not have permissions to perform this action.
doc_not_found Void The required doc was not found.
Sets the default sharing policy for the given Paper doc. The default 'team_sharing_policy' can be changed only by teams, omit this field for personal accounts.
Note: 'public_sharing_policy' cannot be set to the value 'disabled' because this setting can be changed only via the team admin console.
https://api.dropboxapi.com/2/paper/docs/sharing_policy/set
curl -X POST https://api.dropboxapi.com/2/paper/docs/sharing_policy/set \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"doc_id\": \"uaSvRuxvnkFa12PTkBv5q\",\"sharing_policy\": {\"public_sharing_policy\": \"people_with_link_can_edit\",\"team_sharing_policy\": \"people_with_link_can_edit\"}}"
{
"doc_id": "uaSvRuxvnkFa12PTkBv5q",
"sharing_policy": {
"public_sharing_policy": "people_with_link_can_edit",
"team_sharing_policy": "people_with_link_can_edit"
}
}doc_id String
sharing_policy SharingPolicy The default sharing policy to be set for the Paper doc.public_sharing_policy SharingPublicPolicyType? This value applies to the non-team members. This field is optional.people_with_link_can_edit Void Users who have a link to this doc can edit it.
people_with_link_can_view_and_comment Void Users who have a link to this doc can view and comment on it.
invite_only Void Users must be explicitly invited to this doc.
disabled Void Value used to indicate that doc sharing is enabled only within team.
team_sharing_policy SharingTeamPolicyType? This value applies to the team members only. The value is null for all personal accounts. This field is optional.people_with_link_can_edit Void Users who have a link to this doc can edit it.
people_with_link_can_view_and_comment Void Users who have a link to this doc can view and comment on it.
invite_only Void Users must be explicitly invited to this doc.
No return values.
{
"error_summary": "insufficient_permissions/...",
"error": {
".tag": "insufficient_permissions"
}
}
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}
{
"error_summary": "doc_not_found/...",
"error": {
".tag": "doc_not_found"
}
}insufficient_permissions Void Your account does not have permissions to perform this action.
doc_not_found Void The required doc was not found.
Allows an owner or editor to add users to a Paper doc or change their permissions using their email or Dropbox account id.
Note: The Doc owner's permissions cannot be changed.
https://api.dropboxapi.com/2/paper/docs/users/add
curl -X POST https://api.dropboxapi.com/2/paper/docs/users/add \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"doc_id\": \"uaSvRuxvnkFa12PTkBv5q\",\"members\": [{\"member\": {\".tag\": \"email\",\"email\": \"justin@example.com\"},\"permission_level\": {\".tag\": \"view_and_comment\"}}],\"custom_message\": \"Welcome to Paper.\",\"quiet\": false}"
{
"doc_id": "uaSvRuxvnkFa12PTkBv5q",
"members": [
{
"member": {
".tag": "email",
"email": "justin@example.com"
},
"permission_level": {
".tag": "view_and_comment"
}
}
],
"custom_message": "Welcome to Paper.",
"quiet": false
}doc_id String
members List of (AddMember, max_items=20) User which should be added to the Paper doc. Specify only email or Dropbox account id.member MemberSelector User which should be added to the Paper doc. Specify only email or Dropbox account id.dropbox_id String(min_length=1) Dropbox account, team member, or group ID of member.
email String(max_length=255, pattern="^['&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*.[A-Za-z]{2,15}$") E-mail address of member.
permission_level PaperDocPermissionLevel Permission for the user. The default for this union is edit.edit Void User will be granted edit permissions.
view_and_comment Void User will be granted view and comment permissions.
custom_message String? A personal message that will be emailed to each successfully added member. This field is optional.
quiet Boolean Clients should set this to true if no email shall be sent to added users. The default for this field is False.
member MemberSelector One of specified input members.dropbox_id String(min_length=1) Dropbox account, team member, or group ID of member.
email String(max_length=255, pattern="^['&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*.[A-Za-z]{2,15}$") E-mail address of member.
result AddPaperDocUserResult The outcome of the action on this member.success Void User was successfully added to the Paper doc.
unknown_error Void Something unexpected happened when trying to add the user to the Paper doc.
sharing_outside_team_disabled Void The Paper doc can be shared only with team members.
daily_limit_reached Void The daily limit of how many users can be added to the Paper doc was reached.
user_is_owner Void Owner's permissions cannot be changed.
failed_user_data_retrieval Void User data could not be retrieved. Clients should retry.
permission_already_granted Void This user already has the correct permission to the Paper doc.
{
"error_summary": "insufficient_permissions/...",
"error": {
".tag": "insufficient_permissions"
}
}
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}
{
"error_summary": "doc_not_found/...",
"error": {
".tag": "doc_not_found"
}
}insufficient_permissions Void Your account does not have permissions to perform this action.
doc_not_found Void The required doc was not found.
Lists all users who visited the Paper doc or users with explicit access. This call excludes users who have been removed. The list is sorted by the date of the visit or the share date.
The list will include both users, the explicitly shared ones as well as those who came in using the Paper url link.
https://api.dropboxapi.com/2/paper/docs/users/list
curl -X POST https://api.dropboxapi.com/2/paper/docs/users/list \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"doc_id\": \"uaSvRuxvnkFa12PTkBv5q\",\"limit\": 100,\"filter_by\": \"shared\"}"
{
"doc_id": "uaSvRuxvnkFa12PTkBv5q",
"limit": 100,
"filter_by": "shared"
}doc_id String
limit Int32 Size limit per batch. The maximum number of users that can be retrieved per batch is 1000. Higher value results in invalid arguments error. The default for this field is 1000.
filter_by UserOnPaperDocFilter Specify this attribute if you want to obtain users that have already accessed the Paper doc. The default for this union is shared.visited Void all users who have visited the Paper doc.
shared Void All uses who are shared on the Paper doc. This includes all users who have visited the Paper doc as well as those who have not.
{
"invitees": [
{
"invitee": {
".tag": "email",
"email": "jessica@example.com"
},
"permission_level": {
".tag": "edit"
}
}
],
"users": [
{
"user": {
"account_id": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc",
"same_team": true,
"team_member_id": "dbmid:abcd1234"
},
"permission_level": {
".tag": "view_and_comment"
}
}
],
"doc_owner": {
"account_id": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc",
"same_team": true,
"team_member_id": "dbmid:abcd1234"
},
"cursor": {
"value": "zHZvTPBnXilGgm1AmDgVyZ10zf7qb0qznd5sAVQbbIvoteSnWLjUdLU7aR25hb",
"expiration": "2016-08-07T14:56:15Z"
},
"has_more": false
}invitees List of (InviteeInfoWithPermissionLevel) List of email addresses with their respective permission levels that are invited on the Paper doc.invitee InviteeInfo Email invited to the Paper doc.email String(max_length=255, pattern="^['&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*.[A-Za-z]{2,15}$") E-mail address of invited user.
permission_level PaperDocPermissionLevel Permission level for the invitee.edit Void User will be granted edit permissions.
view_and_comment Void User will be granted view and comment permissions.
users List of (UserInfoWithPermissionLevel) List of users with their respective permission levels that are invited on the Paper folder.user UserInfo User shared on the Paper doc.account_id String(min_length=40, max_length=40) The account ID of the user.
same_team Boolean If the user is in the same team as current user.
team_member_id String? The team member ID of the shared folder member. Only present if same_team is true. This field is optional.
permission_level PaperDocPermissionLevel Permission level for the user.edit Void User will be granted edit permissions.
view_and_comment Void User will be granted view and comment permissions.
doc_owner UserInfo The Paper doc owner. This field is populated on every single response.account_id String(min_length=40, max_length=40) The account ID of the user.
same_team Boolean If the user is in the same team as current user.
team_member_id String? The team member ID of the shared folder member. Only present if same_team is true. This field is optional.
cursor Cursor Pass the cursor into docs/users/list/continue to paginate through all users. The cursor preserves all properties as specified in the original call to docs/users/list.value String The actual cursor value.
expiration Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? Expiration time of value.has_more Boolean Will be set to True if a subsequent call with the provided cursor to docs/users/list/continue returns immediately with some results. If set to False please allow some delay before making another call to docs/users/list/continue.
{
"error_summary": "insufficient_permissions/...",
"error": {
".tag": "insufficient_permissions"
}
}
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}
{
"error_summary": "doc_not_found/...",
"error": {
".tag": "doc_not_found"
}
}insufficient_permissions Void Your account does not have permissions to perform this action.
doc_not_found Void The required doc was not found.
Once a cursor has been retrieved from docs/users/list, use this to paginate through all users on the Paper doc.
https://api.dropboxapi.com/2/paper/docs/users/list/continue
curl -X POST https://api.dropboxapi.com/2/paper/docs/users/list/continue \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"doc_id\": \"uaSvRuxvnkFa12PTkBv5q\",\"cursor\": \"U60b6BxT43ySd5sAVQbbIvoteSnWLjUdLU7aR25hbt3ySd5sAVQbbIvoteSnWLjUd\"}"
{
"doc_id": "uaSvRuxvnkFa12PTkBv5q",
"cursor": "U60b6BxT43ySd5sAVQbbIvoteSnWLjUdLU7aR25hbt3ySd5sAVQbbIvoteSnWLjUd"
}doc_id String
cursor String The cursor obtained from docs/users/list or docs/users/list/continue. Allows for pagination.
{
"invitees": [
{
"invitee": {
".tag": "email",
"email": "jessica@example.com"
},
"permission_level": {
".tag": "edit"
}
}
],
"users": [
{
"user": {
"account_id": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc",
"same_team": true,
"team_member_id": "dbmid:abcd1234"
},
"permission_level": {
".tag": "view_and_comment"
}
}
],
"doc_owner": {
"account_id": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc",
"same_team": true,
"team_member_id": "dbmid:abcd1234"
},
"cursor": {
"value": "zHZvTPBnXilGgm1AmDgVyZ10zf7qb0qznd5sAVQbbIvoteSnWLjUdLU7aR25hb",
"expiration": "2016-08-07T14:56:15Z"
},
"has_more": false
}invitees List of (InviteeInfoWithPermissionLevel) List of email addresses with their respective permission levels that are invited on the Paper doc.invitee InviteeInfo Email invited to the Paper doc.email String(max_length=255, pattern="^['&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*.[A-Za-z]{2,15}$") E-mail address of invited user.
permission_level PaperDocPermissionLevel Permission level for the invitee.edit Void User will be granted edit permissions.
view_and_comment Void User will be granted view and comment permissions.
users List of (UserInfoWithPermissionLevel) List of users with their respective permission levels that are invited on the Paper folder.user UserInfo User shared on the Paper doc.account_id String(min_length=40, max_length=40) The account ID of the user.
same_team Boolean If the user is in the same team as current user.
team_member_id String? The team member ID of the shared folder member. Only present if same_team is true. This field is optional.
permission_level PaperDocPermissionLevel Permission level for the user.edit Void User will be granted edit permissions.
view_and_comment Void User will be granted view and comment permissions.
doc_owner UserInfo The Paper doc owner. This field is populated on every single response.account_id String(min_length=40, max_length=40) The account ID of the user.
same_team Boolean If the user is in the same team as current user.
team_member_id String? The team member ID of the shared folder member. Only present if same_team is true. This field is optional.
cursor Cursor Pass the cursor into docs/users/list/continue to paginate through all users. The cursor preserves all properties as specified in the original call to docs/users/list.value String The actual cursor value.
expiration Timestamp(format="%Y-%m-%dT%H:%M:%SZ")? Expiration time of value.has_more Boolean Will be set to True if a subsequent call with the provided cursor to docs/users/list/continue returns immediately with some results. If set to False please allow some delay before making another call to docs/users/list/continue.
{
"error_summary": "insufficient_permissions/...",
"error": {
".tag": "insufficient_permissions"
}
}
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}
{
"error_summary": "doc_not_found/...",
"error": {
".tag": "doc_not_found"
}
}insufficient_permissions Void Your account does not have permissions to perform this action.
doc_not_found Void The required doc was not found.
cursor_error PaperApiCursorError expired_cursor Void The provided cursor is expired.
invalid_cursor Void The provided cursor is invalid.
wrong_user_in_cursor Void The provided cursor contains invalid user.
reset Void Indicates that the cursor has been invalidated. Call the corresponding non-continue endpoint to obtain a new cursor.
Allows an owner or editor to remove users from a Paper doc using their email or Dropbox account id.
Note: Doc owner cannot be removed.
https://api.dropboxapi.com/2/paper/docs/users/remove
curl -X POST https://api.dropboxapi.com/2/paper/docs/users/remove \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"doc_id\": \"uaSvRuxvnkFa12PTkBv5q\",\"member\": {\".tag\": \"email\",\"email\": \"justin@example.com\"}}"
{
"doc_id": "uaSvRuxvnkFa12PTkBv5q",
"member": {
".tag": "email",
"email": "justin@example.com"
}
}doc_id String
member MemberSelector User which should be removed from the Paper doc. Specify only email or Dropbox account id.dropbox_id String(min_length=1) Dropbox account, team member, or group ID of member.
email String(max_length=255, pattern="^['&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*.[A-Za-z]{2,15}$") E-mail address of member.
No return values.
{
"error_summary": "insufficient_permissions/...",
"error": {
".tag": "insufficient_permissions"
}
}
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}
{
"error_summary": "doc_not_found/...",
"error": {
".tag": "doc_not_found"
}
}insufficient_permissions Void Your account does not have permissions to perform this action.
doc_not_found Void The required doc was not found.
This namespace contains endpoints and data types for user management.
Get information about a user's account.
https://api.dropboxapi.com/2/users/get_account
curl -X POST https://api.dropboxapi.com/2/users/get_account \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"account_id\": \"dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc\"}"
{
"account_id": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc"
}account_id String(min_length=40, max_length=40) A user's account identifier.
{
"account_id": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc",
"name": {
"given_name": "Franz",
"surname": "Ferdinand",
"familiar_name": "Franz",
"display_name": "Franz Ferdinand (Personal)",
"abbreviated_name": "FF"
},
"email": "franz@dropbox.com",
"email_verified": true,
"disabled": false,
"is_teammate": false,
"profile_photo_url": "https://dl-web.dropbox.com/account_photo/get/dbid%3AAAH4f99T0taONIb-OurWxbNQ6ywGRopQngc?vers=1453416696524&size=128x128"
}
{
"account_id": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc",
"name": {
"given_name": "Franz",
"surname": "Ferdinand",
"familiar_name": "Franz",
"display_name": "Franz Ferdinand (Personal)",
"abbreviated_name": "FF"
},
"email": "franz@dropbox.com",
"email_verified": true,
"disabled": false,
"is_teammate": true,
"profile_photo_url": "https://dl-web.dropbox.com/account_photo/get/dbid%3AAAH4f99T0taONIb-OurWxbNQ6ywGRopQngc?vers=1453416696524&size=128x128",
"team_member_id": "dbmid:AAHhy7WsR0x-u4ZCqiDl5Fz5zvuL3kmspwU"
}account_id String(min_length=40, max_length=40) The user's unique Dropbox ID.
name Name Details of a user's name.given_name String Also known as a first name.
surname String Also known as a last name or family name.
familiar_name String Locale-dependent name. In the US, a person's familiar name is their given_name, but elsewhere, it could be any combination of a person's given_name and surname.
display_name String A name that can be used directly to represent the name of a user's Dropbox account.
abbreviated_name String An abbreviated form of the person's name. Their initials in most locales.
email String The user's e-mail address. Do not rely on this without checking the email_verified field. Even then, it's possible that the user has since lost access to their e-mail.
email_verified Boolean Whether the user has verified their e-mail address.
disabled Boolean Whether the user has been disabled.
is_teammate Boolean Whether this user is a teammate of the current user. If this account is the current user's account, then this will be true.
profile_photo_url String? URL for the photo representing the user, if one is set. This field is optional.
team_member_id String? The user's unique team member id. This field will only be present if the user is part of a team and is_teammate is true. This field is optional.
{
"error_summary": "no_account/...",
"error": {
".tag": "no_account"
}
}
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}no_account Void The specified GetAccountArg.account_id does not exist.
Get information about multiple user accounts. At most 300 accounts may be queried per request.
https://api.dropboxapi.com/2/users/get_account_batch
curl -X POST https://api.dropboxapi.com/2/users/get_account_batch \
--header "Authorization: Bearer " \
--header "Content-Type: application/json" \
--data "{\"account_ids\": [\"dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc\",\"dbid:AAH1Vcz-DVoRDeixtr_OA8oUGgiqhs4XPOQ\"]}"
{
"account_ids": [
"dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc",
"dbid:AAH1Vcz-DVoRDeixtr_OA8oUGgiqhs4XPOQ"
]
}account_ids List of (String(min_length=40, max_length=40), min_items=1) List of user account identifiers. Should not contain any duplicate account IDs.
account_id String(min_length=40, max_length=40) The user's unique Dropbox ID.
name Name Details of a user's name.given_name String Also known as a first name.
surname String Also known as a last name or family name.
familiar_name String Locale-dependent name. In the US, a person's familiar name is their given_name, but elsewhere, it could be any combination of a person's given_name and surname.
display_name String A name that can be used directly to represent the name of a user's Dropbox account.
abbreviated_name String An abbreviated form of the person's name. Their initials in most locales.
email String The user's e-mail address. Do not rely on this without checking the email_verified field. Even then, it's possible that the user has since lost access to their e-mail.
email_verified Boolean Whether the user has verified their e-mail address.
disabled Boolean Whether the user has been disabled.
is_teammate Boolean Whether this user is a teammate of the current user. If this account is the current user's account, then this will be true.
profile_photo_url String? URL for the photo representing the user, if one is set. This field is optional.
team_member_id String? The user's unique team member id. This field will only be present if the user is part of a team and is_teammate is true. This field is optional.
{
"error_summary": "no_account/...",
"error": {
".tag": "no_account",
"no_account": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc"
}
}
{
"error_summary": "other/...",
"error": {
".tag": "other"
}
}no_account String(min_length=40, max_length=40) The value is an account ID specified in GetAccountBatchArg.account_ids that does not exist.
Get information about the current user's account.
https://api.dropboxapi.com/2/users/get_current_account
curl -X POST https://api.dropboxapi.com/2/users/get_current_account \
--header "Authorization: Bearer "
No parameters.
{
"account_id": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc",
"name": {
"given_name": "Franz",
"surname": "Ferdinand",
"familiar_name": "Franz",
"display_name": "Franz Ferdinand (Personal)",
"abbreviated_name": "FF"
},
"email": "franz@dropbox.com",
"email_verified": true,
"disabled": false,
"locale": "en",
"referral_link": "https://db.tt/ZITNuhtI",
"is_paired": true,
"account_type": {
".tag": "business"
},
"country": "US",
"team": {
"id": "dbtid:AAFdgehTzw7WlXhZJsbGCLePe8RvQGYDr-I",
"name": "Acme, Inc.",
"sharing_policies": {
"shared_folder_member_policy": {
".tag": "team"
},
"shared_folder_join_policy": {
".tag": "from_anyone"
},
"shared_link_create_policy": {
".tag": "team_only"
}
}
},
"team_member_id": "dbmid:AAHhy7WsR0x-u4ZCqiDl5Fz5zvuL3kmspwU"
}
{
"account_id": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc",
"name": {
"given_name": "Franz",
"surname": "Ferdinand",
"familiar_name": "Franz",
"display_name": "Franz Ferdinand (Personal)",
"abbreviated_name": "FF"
},
"email": "franz@gmail.com",
"email_verified": false,
"disabled": false,
"locale": "en",
"referral_link": "https://db.tt/ZITNuhtI",
"is_paired": false,
"account_type": {
".tag": "basic"
},
"profile_photo_url": "https://dl-web.dropbox.com/account_photo/get/dbid%3AAAH4f99T0taONIb-OurWxbNQ6ywGRopQngc?vers=1453416673259&size=128x128",
"country": "US"
}account_id String(min_length=40, max_length=40) The user's unique Dropbox ID.
name Name Details of a user's name.given_name String Also known as a first name.
surname String Also known as a last name or family name.
familiar_name String Locale-dependent name. In the US, a person's familiar name is their given_name, but elsewhere, it could be any combination of a person's given_name and surname.
display_name String A name that can be used directly to represent the name of a user's Dropbox account.
abbreviated_name String An abbreviated form of the person's name. Their initials in most locales.
email String The user's e-mail address. Do not rely on this without checking the email_verified field. Even then, it's possible that the user has since lost access to their e-mail.
email_verified Boolean Whether the user has verified their e-mail address.
disabled Boolean Whether the user has been disabled.
locale String(min_length=2) The language that the user specified. Locale tags will be IETF language tags.
referral_link String The user's referral link.
is_paired Boolean Whether the user has a personal and work account. If the current account is personal, then team will always be None, but is_paired will indicate if a work account is linked.
account_type AccountType What type of account this user has.basic Void The basic account type.
pro Void The Dropbox Pro account type.
business Void The Dropbox Business account type.
profile_photo_url String? URL for the photo representing the user, if one is set. This field is optional.
country String(min_length=2, max_length=2)? The user's two-letter country code, if available. Country codes are based on ISO 3166-1. This field is optional.
team FullTeam? If this account is a member of a team, information about that team. This field is optional.id String The team's unique ID.
name String The name of the team.
sharing_policies TeamSharingPolicies Team policies governing sharing.shared_link_create_policy SharedLinkCreatePolicy What is the visibility of newly created shared links.team_member_id String? This account's unique team member id. This field will only be present if team is present. This field is optional.
No errors.
Get the space usage information for the current user's account.
https://api.dropboxapi.com/2/users/get_space_usage
curl -X POST https://api.dropboxapi.com/2/users/get_space_usage \
--header "Authorization: Bearer "
No parameters.
{
"used": 314159265,
"allocation": {
".tag": "individual",
"allocated": 10000000000
}
}used UInt64 The user's total space usage (bytes).
allocation SpaceAllocation The user's space allocation.individual IndividualSpaceAllocation The user's space allocation applies only to their individual account.allocated UInt64 The total space allocated to the user's account (bytes).
team TeamSpaceAllocation The user shares space with other members of their team.used UInt64 The total space currently used by the user's team (bytes).
allocated UInt64 The total space allocated to the user's team (bytes).
No errors.