In this guide

Get File or Folder Details

Name, path, size and revision of a file or folder.

Action referenceRead

What this action does #

First, connect Dropbox in Services. Then open Actions → + → Dropbox and choose Get File or Folder Details.

More about this action

The root folder has no metadata. Choose a file or folder by searching, or supply its path or id: identifier.

Inputs to fill in #

Open an input to choose its value. Keep a fixed value with Text, receive it from Shortcuts, ask when the action runs, or use an Earlier Step. Read how input sources work.

File or folder

RequiredText

An absolute Dropbox path or id: identifier. Root-folder metadata is unsupported.

This input offers a picker for file or folder from your connected account. You can also supply its value directly.

Example value (replace with your own):
/Homework/report.pdf

What comes back #

In the action editor, open Output → Returned Value to choose fields for your shortcut. These are the response fields described by the app; a service may omit an optional field or return an empty list. JSON File contains the full response.

Returned fieldTypeMeaning
namestringText value.
idstringText value.
path_displaystringText value.
path_lowerstringText value.
sizeintegerFile size in bytes; absent for folders.
revstringText value.
server_modifiedstringText value.
client_modifiedstringText value.
is_downloadablebooleanTrue or false.
content_hashstringText value.

Run it from Shortcuts #

  1. Give the action a recognizable name and tap Save.
  2. In Apple Shortcuts, add Shortcutify’s Execute Action and select the saved action.
  3. Supply any Param or File slots you bound in the inputs, then run the shortcut.

If the result is unexpected, open Logs in Shortcutify, select the run, and inspect this step’s inputs and response.

Advanced reference #

Request, permissions, and identifiers

Request: POST https://api.dropboxapi.com/2/files/get_metadata

Action identifier: dropbox.metadata.get.v1

Permissions declared for this action: files.metadata.read. The account’s own access rules also apply.

InputRequest keyLocation
File or folderpathbody

Dropbox API reference