Actions26
- Item Actions
- User Actions
- File Actions
File → Get (Raw JSON)
AI-generatedSummary
Fetches raw JSON file data from Directus by ID, with optional query parameters.
Inputs
- fileId (required) — The Directus file ID to retrieve. Supports expressions.
- queryParameters — Raw JSON query parameters (fields, filter, sort, limit, etc.) appended to the GET request. Defaults to an empty object.
Output shape
array
One output item per input item; each contains a
jsonfield with the raw file object returned by Directus (not simplified).
Examples
Example 1: Get basic file metadata
fileId={{ $json[“fileId”] }}, queryParameters={}
Example 2: Retrieve only specific fields and limit results
fileId=123, queryParameters={“fields”: [“id”, “filename”, “filesize”], “limit”: 1}