Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

Collection → List

AI-generated

Overview

This node operation lists collections from a Directus API. It is useful for retrieving a list of available collections in a Directus project, which can then be used for further processing or integration in workflows. For example, it can be used to dynamically fetch collections for data synchronization or reporting purposes.

Use Case Examples

  1. List all collections in a Directus project to display their names and IDs.
  2. Fetch collections and split the output so each collection is processed individually in subsequent workflow steps.

Properties

Name Meaning
Split Into Items Determines whether to output each element of the collections array as its own item, allowing individual processing of each collection.

Output

JSON

  • collections - An array of collection objects retrieved from the Directus API.

Dependencies

  • Directus API access with appropriate authentication

Troubleshooting

  • Ensure the API credentials are correctly configured to avoid authentication errors.
  • If no collections are returned, verify that the Directus project has collections defined and the user has permission to access them.
  • If 'Split Into Items' is enabled but the output is not splitting, check that the response data is correctly formatted as an array.

Links

Discussion