Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

File → Get

AI-generated

Overview

This node retrieves a file object from the Directus system using a unique file ID. It is useful in scenarios where you need to access specific file metadata or content stored in Directus, such as fetching an image or document by its ID for further processing or display.

Use Case Examples

  1. Fetching a file's metadata by its unique ID to display file details in a dashboard.
  2. Retrieving a file to download or process it in an automation workflow.

Properties

Name Meaning
ID Unique ID of the file object to retrieve

Output

JSON

  • id - The unique identifier of the file.
  • filename_download - The filename to be used when downloading the file.
  • title - The title or name of the file.
  • type - The MIME type of the file.
  • size - The size of the file in bytes.
  • url - The URL to access the file.

Dependencies

  • Directus API access with appropriate authentication credentials

Troubleshooting

  • Ensure the provided file ID is correct and exists in the Directus system to avoid 'file not found' errors.
  • Verify that the API credentials have sufficient permissions to access file data.
  • Check network connectivity to the Directus API endpoint if requests fail.

Links

Discussion