Actions22
- Chat Actions
- Channel Actions
- Message Actions
- Contact Actions
- OTP Code Actions
- OTP Link Actions
Overview
This node interacts with the CrunchzApp API to request a One-Time Password (OTP) link for a specified contact. It is useful in scenarios where you need to send an OTP link to a user’s contact for authentication, verification, or secure access purposes. For example, a service might use this node to generate and send an OTP link to a customer’s WhatsApp contact to verify their identity before allowing sensitive operations.
Properties
| Name | Meaning |
|---|---|
| Contact Id | The Contact ID for which the OTP link is being requested (e.g., 6281357541789@c.us). |
| Expires | The expiration time for the OTP link in seconds. |
| Message | A JSON object representing the message content to be sent along with the OTP link. |
| Callback | A JSON object defining callback information related to the OTP link request. |
| Name | The name of the company or service requesting the OTP link. |
Output
The node outputs JSON data containing the response from the CrunchzApp API after requesting the OTP link. This typically includes details about the OTP link generation status, any identifiers, and metadata returned by the API. There is no indication that binary data is output by this node.
Dependencies
- Requires an active API key credential for CrunchzApp API authentication.
- The node sends requests to
https://api.crunchz.app/api. - The node expects JSON-formatted input for the
messageandcallbackproperties, which it parses before sending.
Troubleshooting
- Invalid Contact Id: If the contact ID format is incorrect or the contact does not exist, the API may return an error. Ensure the contact ID follows the expected format (e.g., including country code and domain).
- Expired or Zero Expiration: Setting the expiration time (
expires) to zero or a very low value might cause the OTP link to expire immediately or be rejected. - Malformed JSON in Message or Callback: Since these fields expect JSON strings that are parsed, invalid JSON syntax will cause errors. Validate JSON formatting before input.
- Authentication Errors: Missing or invalid API credentials will prevent the node from successfully calling the API.
- API Rate Limits or Downtime: The CrunchzApp API might throttle requests or be temporarily unavailable; handle such errors gracefully.
Links and References
- CrunchzApp API Documentation (assumed URL based on baseURL)
- n8n Documentation on Creating Custom Nodes