Actions13
- AI/ML Actions
- ChatGPT Actions
- Communication Actions
- Data Processing Actions
- E-Commerce Actions
- Printing Actions
- Utility Actions
Overview
This node provides a utility operation to generate One-Time Passwords (OTPs) using the CustomJE API. It supports generating OTPs of different types—numeric, text-based, or a combination of both—with a customizable length. This is useful in scenarios requiring secure verification codes, such as user authentication, transaction validation, or password resets.
Practical examples:
- Generating a 6-digit numeric OTP for two-factor authentication.
- Creating an alphanumeric OTP of 8 characters for email verification.
- Producing a short 4-character text-only OTP for quick access codes.
Properties
| Name | Meaning |
|---|---|
| API Key | Your CustomJE API key required to authenticate requests to the OTP generation service. |
| Type | The type of OTP to generate. Options: Number (digits only), Text (letters only), Combine (alphanumeric). |
| Character Length | Number of characters for the OTP. Must be between 1 and 20. |
Output
The node outputs a JSON array where each item corresponds to the response from the CustomJE OTP generation API. The exact structure depends on the API response but typically includes the generated OTP string and possibly metadata about the request.
No binary data output is produced by this node.
Dependencies
- Requires an active internet connection to call the CustomJE API endpoint at
https://api.customje.com/generate-otp.php. - Requires a valid API key credential for authentication with the CustomJE service.
- No additional environment variables or n8n configurations are needed beyond providing the API key.
Troubleshooting
Common issues:
- Invalid or missing API key will cause authentication failures.
- Requesting an OTP length outside the allowed range (1–20) may result in errors.
- Network connectivity problems can prevent successful API calls.
Error messages:
"The operation "generate-otp" is not implemented yet!"— indicates a misconfiguration or unsupported operation; ensure the correct resource and operation are selected.- Errors returned from the API (e.g., invalid API key, parameter errors) will be passed through; verify API key validity and input parameters.
Resolution tips:
- Double-check the API key value and permissions.
- Ensure the character length is within the specified limits.
- Confirm network access to the CustomJE API endpoint.
Links and References
- CustomJE API Documentation (general reference for the API endpoints)
- n8n Documentation on Creating Custom Nodes