Actions109
- Activity Actions
- Assets Actions
- Authentication Actions
- Collections Actions
- Extensions Actions
- Fields Actions
- Files Actions
- Folders Actions
- Items Actions
- Permissions Actions
- Presets Actions
- Relations Actions
- Revisions Actions
- Roles Actions
- Settings Actions
- Users Actions
- Utilities Actions
- Webhooks Actions
Overview
This node integrates with the Directus API to perform various operations on different resources. Specifically, for the Authentication resource and the Request Password Reset operation, it allows you to request a password reset email for a user by providing their email address. This triggers Directus to send a password reset link to the specified email.
Common scenarios where this node is beneficial include:
- Automating user password reset workflows in your applications.
- Integrating password reset requests into larger automation pipelines.
- Managing user authentication flows without manual intervention.
For example, you can use this node to trigger a password reset email when a user submits a "Forgot Password" form on your website, or as part of an admin workflow to assist users in resetting their passwords.
Properties
| Name | Meaning |
|---|---|
| The email address of the user for whom you want to request a password reset. This is required. | |
| Additional Fields | Optional additional parameters for the request: |
| - Reset URL | A custom URL that the password reset link in the email will direct to. The reset token will be appended as a parameter to this URL. Note that enabling this requires configuring a specific environment variable in Directus. |
Output
The output of this operation is a JSON object representing the response from the Directus API after requesting the password reset. Typically, this includes confirmation that the reset request was accepted.
The structure generally looks like:
{
"response": {
// API response details, e.g., success message or status
}
}
No binary data is produced by this operation.
Dependencies
- Requires a valid connection to the Directus API, authenticated via an API key or token credential configured in n8n.
- If using the custom Reset URL feature, the Directus instance must have the
PASSWORD_RESET_URL_ALLOW_LISTenvironment variable configured to allow the specified URL.
Troubleshooting
- Invalid Email Address: If the provided email does not correspond to any user in Directus, the API may return an error or silently fail. Ensure the email is correct and exists in the system.
- Missing or Invalid Credentials: Authentication failures occur if the API credentials are missing or invalid. Verify that the API key/token is correctly set up in n8n.
- Reset URL Not Working: If you provide a custom Reset URL but haven't configured the allow list environment variable in Directus, the reset link may not work. Check Directus documentation on setting
PASSWORD_RESET_URL_ALLOW_LIST. - API Errors: Any other errors returned by the Directus API (e.g., rate limits, server errors) will be passed through. Use the error messages to diagnose issues.