Directus (denkhaus) icon

Directus (denkhaus)

Consume Directus API

Overview

This node implements the Authentication → Reset Password operation. It allows users to reset their password by providing a one-time use JWT token and a new password. This is typically used in password recovery workflows, where a user receives a reset link (containing the token) via email and then sets a new password.

Common scenarios:

  • User forgets their password and requests a password reset.
  • Automated systems that need to programmatically reset user passwords for security or onboarding purposes.

Practical example:
A user clicks "Forgot Password" on your app, receives an email with a reset link, and uses this node (via n8n workflow) to set a new password using the provided token.

Properties

Name Type Meaning
Token String One-time use JWT token sent to the user, used to verify their identity for password reset.
Password String The new password to be set for the user.
JSON/RAW Parameters Boolean Determines if parameters should be set via key-value UI or as raw JSON input.

Output

The output will be a json object containing the result of the password reset operation. The exact structure depends on the API response, but typically includes:

  • Status of the reset operation (e.g., success/failure)
  • Any relevant messages or error details

Note: This node does not output binary data.

Dependencies

  • Requires access to the Directus API endpoint configured for authentication operations.
  • The JWT token must be valid and unexpired.
  • No additional n8n configuration or environment variables are specified in the static code.

Troubleshooting

Common issues:

  • Invalid or expired token: If the token is incorrect or has expired, the API will reject the request. Ensure the token is fresh and correctly copied from the reset email.
  • Weak password: Some APIs enforce password strength requirements. Make sure the new password meets all criteria.
  • Missing required fields: Both Token and Password are required. Omitting either will cause the operation to fail.

Error messages you might encounter:

  • "Invalid token": The provided token is not recognized or has expired. Request a new password reset.
  • "Password does not meet requirements": Choose a stronger password according to the system's policy.
  • "Missing parameter": Ensure both Token and Password fields are filled.

Links and References

Discussion