Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

Collection → Get

AI-generated

Overview

This node retrieves data from a specified collection in a Directus CMS instance. It is useful for scenarios where you need to fetch records from a particular collection, such as articles, users, or any custom data stored in Directus. For example, you might use this node to get a list of articles to display on a website or to process user data in an automation workflow.

Use Case Examples

  1. Fetch all records from the 'articles' collection to display on a blog.
  2. Retrieve user data from the 'users' collection for processing in a CRM integration.

Properties

Name Meaning
Collection Name Unique name of the collection to retrieve data from

Output

JSON

  • data - Array of records retrieved from the specified collection

Dependencies

  • Directus CMS API access

Troubleshooting

  • Ensure the collection name is correct and exists in the Directus instance.
  • Verify that the API credentials have permission to read from the specified collection.
  • Common errors include authentication failures and collection not found errors, which can be resolved by checking credentials and collection names respectively.

Links

Discussion