Use Directus with n8n for Automation
Connect Directus with n8n to automate workflows, sync data, and integrate your CMS with other services using the Directus community node.
Connect your Directus instance with n8n to automate workflows, sync data between systems, and build powerful integrations.
Quick Start
- Install the node: In n8n, go to Settings → Community Nodes → Install
@directus/n8n-nodes-directus - Configure credentials: Add your Directus URL and API token
- Start building: Use the Directus node for actions or Directus Trigger node for automation
Available Nodes
The Directus community node provides two components:
- Directus Node: Perform CRUD operations on items, users, and files
- Directus Trigger Node: Automatically start workflows when events occur in Directus
Installation
Install the Community Node
- In n8n, go to Settings → Community Nodes
- Click Install a community node
- Enter:
@directus/n8n-nodes-directus - Click Install
Configure Credentials
Before you can use the Directus nodes, you need to connect to your Directus instance:
- In any Directus node, click on Credential to connect with
- Click Create New Credential (or select an existing one)
- Fill in your connection details:
- Directus URL: Your Directus instance URL
- Token: Your Directus API token
- Click Save to store your credentials
Getting Your API Token
- In Directus, go to Users
- Select or create a user for n8n integration
- Open the user's detail page
- Scroll to Token section
- Click Generate Token
- Copy the token and paste into n8n
- Important: Click the checkmark (✓) to save
Permissions
Admin Token (Recommended for Getting Started)
Many operations, including creating webhooks for triggers, require Administrator permissions. Assign the Administrator role to the user for the easiest setup and full access to all collections and features.
Custom Role (For Production)
For better security, create a custom role with specific permissions. This allows you to limit access to only the collections and operations your workflows need. The token inherits the user's role permissions, so you can lock down access while still allowing necessary operations.
Admin Token (Recommended for Getting Started)
Many operations, including creating webhooks for triggers, require Administrator permissions. Assign the Administrator role to the user for the easiest setup and full access to all collections and features.
Custom Role (For Production)
For better security, create a custom role with specific permissions. This allows you to limit access to only the collections and operations your workflows need. The token inherits the user's role permissions, so you can lock down access while still allowing necessary operations.
Documentation
Working with Directus Actions →
Perform operations on your Directus data: create, read, update, and delete items, users, and files.
Set up automated workflows that trigger when events happen in Directus.
Use raw CRUD operations with Directus filter syntax, complex queries, and advanced query parameters.